- id_rsa is a privateky
- id_rsa.pub is a public key
- authorized_keys is a list of public keys that are allowed to connect to the server
- When you have a new computer
gh pr list -A @me
date -j -v-24H +"%Y-%m-%dT%H:00"
``` | |
git branch -a | egrep "(bitrise)"| sed 's/remotes\/origin\///' | xargs git push --delete origin | |
``` | |
```shell | |
gh pr list --limit 100 --json number,title,url --jq '.[] | .url' --search "is:pr is:open yml" | while read URL; do\ngh pr close ${URL} -c "duplicate pr"\ndone | |
``` |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# Gemfile for iOS project | |
source "https://rubygems.org" | |
gem 'cocoapods' | |
# Folder reorganizer | |
gem 'synx' | |
# Task Automation | |
gem 'fastlane' |
git-nuke multiple feature branches
for i in {1..10}\ndo\ngit-nuke feature/\#${i}\ndone
Show all download url
sudo sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent' | more
quicklook files or directories with preview
qlmanage -p
I hereby claim:
To claim this, I am signing this object:
##calendar.h
#import <Foundation/Foundation.h>
@interface myCalender : NSObject{
NSCalendar *gcal;
NSInteger year;
NSInteger month;
}
### 二つの点の距離 | |
``` swift | |
func distance(pointA: CGPoint, pontB: CGPoint) -> Float { | |
let dx: Float = abs(pointA.x - pontB.x) | |
let dy: Float = abs(pointA.y - pontB.y) | |
let dist = sqrt(dx*dx + dy*dy) | |
return dist | |
} |