(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
preferred_syntax = :sass | |
http_path = '/' | |
css_dir = 'assets/stylesheets' | |
sass_dir = 'assets/sass' | |
images_dir = 'assets/images' | |
javascripts_dir = 'assets/javascripts' | |
relative_assets = true | |
line_comments = true | |
# output_style = :compressed |
while read line; do touch $(echo -n "$line").myfilextension; done < input.csv |
#!/bin/bash | |
# check for directories and create if non-existent. | |
for i in lala lulu | |
do | |
if [ -d $i ]; then | |
echo "Cool. Directory $i exists." | |
else | |
echo "Directory $i didn't exist so I knitted one for ya!" | |
mkdir $i |
while read LINE; do curl -o /dev/null --head --silent --write-out "$LINE\t %{http_code}\n" "$LINE"; done < inputfile 2>&1 | tee outputfile |
#!/bin/bash -e | |
# dpkgdump.sh | |
# creates text file with a list of all packages installed by date | |
TMP0=`mktemp "${TMPDIR:-/tmp}"/dpkgdump.col.XXXXXXXXXX` | |
TMP1=`mktemp "${TMPDIR:-/tmp}"/dpkgdump.res.XXXXXXXXXX` | |
# next append current log | |
find /var/log -maxdepth 1 -type f -regex ".*\dpkg\.log\.[0-9].gz$" | xargs zcat > $TMP0 |
#!/bin/sh | |
DATE=`date +%Y-%m-%d-d%` | |
ARCH=`uname -m` | |
HOSTNAME=`uname -n` | |
ROOTFS_TYPE=`df -T / | awk '{print $2}' | grep -v "Type"` | |
BACKUP_PATH=`pwd` | |
STAGE5NAME="backup-${ARCH}-${ROOTFS_TYPE}-${HOSTNAME}-${DATE}.tar.gz" | |
cd /; |
I've noticed on several occasions that even people who work on a computer a lot don't know about the Shell (a.k.a Terminal) on their machines. | |
The Shell is an incredibly powerful tool that can help you with a lot of tasks and operations in your everyday life. It can drastically improve your productivity, you can manage servers from it, crunch huge amounts of data (searching, sorting, filtering, replacing), it allows you to automate annoying tasks and so much more. | |
I experience a lot of confusion and insecurities about it's use. It's not remotely as scary as people perceive it to be. And that's where I want to help. | |
They say learning through experience is the best way to go about it. I want to invite you to an interactive workshop to play with the command line and learn some basics to get your way around it. Afterwards you will be able to incorporate it's use into your workflow. | |
This session is not for hackers and developers only. I invite everyone who is curious about it and wants to feel like a ninja. |