These are a list of usages of shell commands I can't live without on UNIX-based systems.
Using Homebrew (yes, I am opinionated) you can install the following tools with the following packages:
| function mycd() | |
| { | |
| #if this directory is writable then write to directory-based history file | |
| #otherwise write history in the usual home-based history file | |
| tmpDir=$PWD | |
| echo "#"`date '+%s'` >> $HISTFILE | |
| echo $USER' has exited '$PWD' for '$@ >> $HISTFILE | |
| builtin cd "$@" # do actual cd | |
| if [ -w $PWD ]; then export HISTFILE="$PWD/.dir_bash_history"; touch $HISTFILE; chmod --silent 777 $HISTFILE; | |
| else export HISTFILE="$HOME/.bash_history"; |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| /**! | |
| * name: pixi.TextInput.js | |
| * repository: https://gist.github.com/Fishrock123/7ce7da8cacd762a56542 | |
| * @author Jeremiah Senkpiel - https://searchbeam.jit.su | |
| * @version 0.2 | |
| * MIT Licensed - Copyright 2013 Jeremiah Senkpiel | |
| */ | |
| (function(){ |
| #ifndef _MKDIO_CXX | |
| #define _MKDIO_CXX | |
| extern "C" { | |
| #include <stdio.h> | |
| #include <mkdio.h> | |
| } | |
| class MKIOT { | |
| protected: |
Please bring your laptop, the workshop is interactive!
Follow the instructions below before coming, to minimize installation delays and make sure you’re ready for our Friday workshop.
| sda5_crypt UUID=c66880c1-c2f1-40fc-9580-f25d493876ef none luks,discard |