This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func showNotification(title : String, informativeText: String) -> Void { | |
let notification = NSUserNotification() | |
notification.identifier = "\(NSDate().timeIntervalSince1970)" | |
notification.title = title | |
notification.informativeText = informativeText | |
notification.soundName = NSUserNotificationDefaultSoundName | |
NSUserNotificationCenter.default.deliver(notification) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#delete logs | |
sudo rm -rf /private/var/log/asl/*.asl | |
#and make it faster | |
rm ~/Library/Preferences/com.apple.finder.plist&&killall Finder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -mtime -7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install putty-tools | |
#private keys | |
puttygen your_private_key.ppk -O private-openssh -o your_new_key | |
chmod 600 your_new_key | |
#public keys | |
puttygen your_public_key.ppk -O public-openssh | |
#based on answer at superuser |
NewerOlder