Skip to content

Instantly share code, notes, and snippets.

View mateusz-fiolka's full-sized avatar

Mateusz Fiołka mateusz-fiolka

View GitHub Profile
#!/bin/bash
timestamp=$(date +"%s")
FLOOR=100
RANGE=999
number=0 #initialize
while [ "$number" -le $FLOOR ]
do
number=$RANDOM
let "number %= $RANGE" # Scales $number down within $RANGE.
find . -iname '*.flv' | while read FILE ; do
TARGET_FILE=$(echo $FILE | sed -e 's/.flv$/.mp4/')
ffmpeg -i $FILE $TARGET_FILE || echo ok
done
(def secret-key-bytes (byte-array
(map (fn [byte-str] (byte (- (Integer/parseInt byte-str 16) 128)))
(map (fn [res] (apply str res))
(partition 2 secret-key)))))
("emacs")
Helm completion enabled
ls does not support --dired; see `dired-use-ls-dired' for more details.
Helm completion enabled
Wrote /Users/mateuszfiolka/.emacs.d/.emacs.desktop.lock
Desktop: 1 buffer restored.
Loading term/xterm...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Quit
### Keybase proof
I hereby claim:
* I am mateusz-fiolka on github.
* I am mateuszfiolka (https://keybase.io/mateuszfiolka) on keybase.
* I have a public key ASCr5D5AErjyMZGNNUMP2-uNmI8ewmPdUXFOJsnagLPdXwo
To claim this, I am signing this object:
@mateusz-fiolka
mateusz-fiolka / convox-shell.rb
Created August 28, 2018 14:26
Convox cli wrapper, work in progress
#!/usr/bin/ruby
require "readline"
require "open3"
require "yaml"
require "thread"
def fetch_racks
racks = `convox racks`
if $?.exitstatus != 0 ; then
326076 inactive
326065 inactive
326060 inactive
326053 inactive
326026 inactive
326022 inactive
326008 inactive
326003 inactive
326001 inactive
325991 inactive