- Open Info.plist
- Add a new key "Application is agent (UIElement)"
- set its value to YES
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 |
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
#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
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
struct StructExample{ | |
let text: String | |
let author: String | |
static let all: [Quote] = [ | |
StructExample(text:"Enjoy the little things", author:"me"), | |
StructExample(text:"The best is yet to come", author:"you"), | |
StructExample(text:"No excuses", author:"she"), | |
StructExample(text:"The master has failed more times than the beginner has even tried", author:"he"), | |
StructExample(text:"One day can change everything", author:"not me"), |
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
{% if template == 'index' %} | |
{% endif %} |
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
#include <driver/adc.h> | |
#include <M5Stack.h> | |
const int _bufSize = 128; | |
int _buf[_bufSize]; // adc buffer for suppress speaker noise | |
int _pos = 0; | |
int _old = 0; | |
int _count = 0; | |
int _offset = 0; |
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
#list all hosts in .ssh/config | |
#if you add an argument, it lists all hosts that contain that word | |
whatssh(){ | |
if [[ $# -eq 0 ]]; then | |
grep -w -i "Host" ~/.ssh/config | sed 's/[Hh]ost//' | |
else | |
grep -i "^Host\s\+.*$1.*$" ~/.ssh/config | sed 's/[Hh]ost//' | |
fi | |
} |
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
//p5 js example | |
function setup() { | |
createCanvas(200, 100); | |
frameRate(24); | |
} | |
let angle = 0; | |
let sin1 = 0; | |
let sin2 = 0; | |
let angle_inc = .2; |
OlderNewer