This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# Create ~/.inputrc file and paste | |
# this in it | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
# Example: | |
# cd+UP : will return all previous cd commands | |
# and paramters |
#OS X | |
security find-generic-password -ga <SSID> | grep password | |
# Windows | |
netsh wlan show profile name=<SSID> key=clear |
# Kill Ghost sshd sessions | |
pkill -o -u YOURUSERNAME sshd |
#!/bin/bash | |
# Will tarify all folders/files in a directory and create | |
# a separate tar file for each | |
for f in */; do tar -cvf "${f%/}.tar" "$f"; done |
# OSX | |
# Covert .iso to .img | |
hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso | |
# Backup microSD | |
sudo dd if=/dev/disk[n] of=/Users/username/SDCardBackup.dmg | |
# Copy image to microSD | |
diskutil unmountDisk /dev/disk[n] | |
dd bs=1m if=/Directory/of/image.img of=/dev/rdisk[n] |
I hereby claim:
To claim this, I am signing this object:
A is 100 dimensional vector containing integers N between [1 and 10] (inclusive) distributed at intervals of 10: | |
i.e. | |
at index x -> N | |
at index 1 -> 1 | |
at index 11 -> 2 | |
at index 21 -> 3 | |
Problem: | |
----------- | |
Need to recode A into a 10x100 (Rows x Columns) matrix such that each column is a 10 dimensional vector y with y(x) = 1 the rest is 0 |
-- Find | |
egrep -Rl <regular expression> <file or files> | |
-- Find and Replace | |
grep -l '' ./* | xargs sed -i "" 's/IP4445A/IP445A/' | |
-- Find and Replace (no RegEx) | |
-- Add IMO number | |
grep -l '' ./* | xargs sed -i "" 's|MSC:172:20+++:146::VITNAME|MSC:172:20+++9299551:146::VITNAME|g' | |
-- Change VVN |
alias.last=log -1 HEAD | |
alias.undo=reset --hard HEAD^ |