Filter by tag Linux
-
Linux & Server Administration
11 commentsFinding files $ grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n adds line numbers, -w stands for match the whole word, -l (lower-case L) can be added to just give the file name of matching files Ref: How do I find …
Read More -
Quartz Sheduler - Cron Trigger
11 commentsCron is a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. The CronTrigger class is based on the scheduling capabilities of cron. CronTrigger uses “cron expressions”, which are able to create firing schedules such a …
Read More -
SSH key
11 commentsGenerate SSH keys via the 'ssh-keygen' command. SSH settings are stored in the '~/.ssh/' directory. Run ssh-keygen Keep the name 'id_rsa' and type a password Generating our public key Upload the public key on BitBucket Set SSH url to SourceTree Ref: …
Read More -
Crack WEP Wi-FI via aircrack-ng in Mac OS X
11 commentsDisplay all network interfaces ifconfig Display nearby networks with additional parameters airport -s Sniff packets on a network interface and a channel, save it to /tmp/airport*.cap sudo airport {networkInterface} sniff {channel} e.g. sudo airport en0 sniff 6 …
Read More -
Sign automatically git commits
11 commentsEdit a git config file in $HOME/.gitconfig or in a project folder .git/config like following: [user] email = YourEmail name = YourName signingkey = YourSigningKey [commit] gpgsign = true [gpg] program = /Applications/SourceTree.app/Contents/Resources/bin/stgpg.sh Ref …
Read More