Skip to content

Instantly share code, notes, and snippets.

View galori's full-sized avatar

Gall Steinitz galori

  • San Francisco, CA
View GitHub Profile
@galori
galori / file1.txt
Created August 4, 2017 22:44
Created via API
Demo2
@galori
galori / file1.txt
Created August 4, 2017 22:43
Created via API
Demo
@galori
galori / ffmpeg.sh
Created October 1, 2016 21:42
ffmpeg
#!/bin/sh
echo 'usage: ./ffmpeg_to_gif.sh ~/Downloads/test.mov ~/Downloads/test.gif'
palette="/tmp/palette.png"
filters="fps=15,scale=1000:-1:flags=lanczos"
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
@galori
galori / keybase.md
Created April 19, 2016 20:40
keybase.md

Keybase proof

I hereby claim:

  • I am galori on github.
  • I am galori (https://keybase.io/galori) on keybase.
  • I have a public key whose fingerprint is 084D A109 279D A7E2 2642 BB39 3E1B 94C6 ACDD 45D7

To claim this, I am signing this object:

@galori
galori / list_of_parallels_between_original_trilogy_and_episode_viii_tfa.md
Last active April 1, 2016 04:09
List of Parallels Between The Original Trilogy and E. VII TFA

List of Parallels Between The Original Trilogy and E. VII TFA

(I put this together from comments on my reddit post, and included and credited all the additions from the comments)

  1. Monster w/ Tentacles Abducts Luke in the Trash Compactor and we hear silence of terror while not knowing what happened --> Monster w/ Tentacles Abducts Finn and we hear silence of terror while not knowing what happened. (/u/CySurflex)
  2. R2D2 Saves everyone in the trash compactor remotely using knowledge of the technology of the ship / Rey saves Finn from the tentacle monster using knowledge of the technology of the ship (/u/CySurflex)
  3. Little cute droid has secret plans hidden in him (BB8 / R2D2) (/u/CySurflex)
  4. Orphan on a desert planet becomes the hero (Rey / Luke) (/u/CySurflex)
  5. Quiet Forrest Scene before Rey sees Kylo Ren has wierd scary sounds, obviously some of them are un-natural / probably dark side --> Quiet forest scene before Luke sees imaginary Darth Vader on Dagoba has weird scary sounds, obvously some of
@galori
galori / gist:3433354
Created August 23, 2012 06:21
Rails on Ubuntu

Rails on Ubuntu

sudo-apt get install curl

install RVM based on instructions on RVM web site:

curl -L https://get.rvm.io | bash -s stable --ruby

open new terminal window / shell for RVM to take effect

@galori
galori / gist:3433080
Created August 23, 2012 05:42
Rails on a new ubuntu

Rails on Ubuntu

sudo-apt get install curl

install RVM based on instructions on RVM web site:

curl -L https://get.rvm.io | bash -s stable --ruby

open new terminal window / shell for RVM to take effect

@galori
galori / gist:3072675
Created July 8, 2012 20:27
Ubuntu Server 10.4 on Virtual Box CI Server for Ruby on Rails project
* Install Virtual Box
* Install latest ubuntu server on it
* sudo apt-get install dkms build-essentials gcc gcc++ make xserver-xorg xserver-xorg-core
* sudo reboot
* sudo mount /dev/cdrom /media/cdrom
* cd /media/cdrom
* sudo ./VBoxLinuxAdditions-x86.run
* install RVM
# show a version of a file from a commit or branch (without checking out)
git show master:app/models/sku.rb