Chsh -s mismatch with how to shell the rescue?

With the wrong default environment is not terrible,Well matched back like a big deal。

Obviously,He says such things there is no story。

In short,If you find that your vps One day suddenly can not log in,The content is not being given no authority,But the certificate is to determine the right - then you might be wrong with the last exit before the shell。At this time, even if you use the console to log on,After logging will find immediately flashed back to the login screen - finished,You thought,Just with a good environment, we have to do it all again。

use chsh Silent switch[……]

Click link to continue reading...

Fail2Ban protection of Nginx Advanced Configuration Services

existAfter purchasing a VPS you should spare security measuresAs we mentioned with fail2ban To protect ssh ,So even without changingsshPort (default is22),Also can be done to avoid brute force password,of course,We have opened the credentials to log in and closed the ssh password login option,But with fail2ban Kill those who keep trying to make us feel bot is also a pleasant thing。

In fact,apart from Use fail2ban Bind9 be used to prevent DNS amplification attacksouter,We can also[……]

Click link to continue reading...

UserNotifications user-created using sound as a tone

Use custom sounds as notification sounds

In iOS 10 after,iOS uses a new UserNotifications As the notification API,This allows developers to use images、video、Sound and other rich media content as the notification,While further,You can also use the Notification Content Extension Size customize the content and layout of notice。
If you are self-defined tone notification,Then you can give [cray[……]

Click link to continue reading...

Item “xxx” is used by macOS and cannot be opened.

When restoring data,You may need to use U disk copy data,But macOS default is read-only mount ntfs,of course,We have a way to use the command line to become re-mount it read-write。But this is likely to cause ntfs permission error,The result is that when plugged into another computer's,This file mayGrayed

If you use this time to force it open decompression software,Then you will get a similar error:

Item “xxx” is used by macOS and canno[……]

Click link to continue reading...

Talk Shadowrocket and Quantumult

Since I replaced the United States District Apple ID,Originally purchased the Surge will not be used again - of course,Now Surge also updated the new version,to me,Spend millions to buy an advanced network debugging tools and then simply used over the wall,Think I felt very stupid。

Fortunately,macOS version of the Surge 2 Authorization is still,After all, this does not follow Apple ID,I can continue to use。Surge future 2 Stop updating of the maintenance,I would consider continue to adhere to a few years to buy new。

In short,In iOS[……]

Click link to continue reading...

How pocketed input method macOS is how to handle ascii 0x01 compatibility issues -macOS input settings correct buffer

As early as last year,Off the grid user input methods have reported pocketed Chinese input method macOS can not type in normal mode MarkDown proper way cloud notes,After testing proved true,Embodied in the text when hit,buffer refresh will be strange delete a character before the cursor - on,no more, no less,To delete a。

Fiddle for a long time failed,Finally, I did not move all the contents out of print,Discover the mystery:

When I get input cursor to the left of the text printed out,I found behind the text is appended a strange character[……]

Click link to continue reading...

Pocketed input method is how to share anti-piracy accounts on iOS

For iOS developers,The face of app piracy,The biggest problem is not a technical break,Instead, more and more sharing of pirated Apple ID,Some people might say that piracy is equivalent to a "trial" of the,Like people will naturally go into positive ...... but in fact,Because of penny share account of piracy,Led to numerous independent developers and ultimately to the vote resume。

In short,last year,Surge authors published such an article Surge 2.0 It is how to achieve the anti-piracy on iOS His theory was purchased from the app[……]

Click link to continue reading...

In NSView 10.12 Detailed problem does not show shadow

On iOS,If we want to display a shadow View,So basically do:

but,To the macOS,This would not work - no effect。

The answer lies in the macOS a View If you want to use layer ,You must manually mark,For example, this:
[crayon-67bb8[……]

Click link to continue reading...

Road Less Traveled:How independent developers that find resources

In fact, two months ago, this one should be written,However, there are some things to delay so they now。A few days ago to discuss the concept and friend to the independent development of the "small minority" of,I feel the need to further detailed definition of what。What independent developers do this minority is,The so-called market segmentation,Exactly how should subdivision。

Mind niche

When it comes to niche segments and,It may be the first impression a lot of people are those things nobody cares about, such as a handful of students in a small school needs,In some lawyer or needs work ...... Here we recallMarket segments:How independent developers that determine the development projectmiddle[……]

Click link to continue reading...