I hereby claim:
- I am senmu on github.
- I am senmu (https://keybase.io/senmu) on keybase.
- I have a public key whose fingerprint is D449 4559 4141 2538 E5C4 69A7 D6B5 39E8 09BD 0C33
To claim this, I am signing this object:
| # A shell script that uses ffmpeg to shrink a video | |
| # Usage: ffscale filename.mp4 | |
| function ffscale() { | |
| if [ "$1" != "" ] | |
| then | |
| # Extract the file extension | |
| extension="${1##*.}" | |
| # Create a temporary file with the same extension (macOS/Linux compatible) | |
| temp_file=$(mktemp "/tmp/ffscale_XXXXXX.$extension") |
| alias gho="git config --get remote.origin.url | ruby -ne 'puts %{https://github.com/#{\$_.split(/.com[\:\/]/)[-1].gsub(\".git\",\"\")}}' | xargs open" |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| // Sample arrays | |
| $dribbble = array("dribbble item 1", "dribbble item 2", "dribbble item 3"); | |
| $instagram = array("instagram 1", "instagram 2", "instagram 3", "instagram 4", "instagram 5"); | |
| // Determine maximum size to iterate to | |
| $maxSize = max(count($dribbble), count($instagram)); | |
| for ($i = 0; $i < $maxSize; $i++) { |
| JC = javac | |
| .SUFFIXES: .java .class | |
| .java.class: | |
| $(JC) *.java | |
| default: .java.class | |
| clean: | |
| $(RM) *.class |
| # The following command can be entered in the terminal to convert files in the current directory | |
| # to Unix LF which comes in handy when trying to add code to a git repo and you are faced with | |
| # the error: fatal: CRLF would be replaced by LF | |
| find . -name *.* -exec perl -pi -e 's/\r\n/\n/g' {} \; |