Skip to content

Instantly share code, notes, and snippets.

View mateusz-fiolka's full-sized avatar

Mateusz Fiołka mateusz-fiolka

View GitHub Profile
326076 inactive
326065 inactive
326060 inactive
326053 inactive
326026 inactive
326022 inactive
326008 inactive
326003 inactive
326001 inactive
325991 inactive
@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
### 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:
("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
(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)))))
find . -iname '*.flv' | while read FILE ; do
TARGET_FILE=$(echo $FILE | sed -e 's/.flv$/.mp4/')
ffmpeg -i $FILE $TARGET_FILE || echo ok
done
#!/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.
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/mateusz/.rvm/bin
#!/bin/bash -x
# Maintainer: Cedric Sougne <cedric@sougne.name>
pkgname=oracle-xe
pkgver=11.2.0_1.0
pkgrel=1
pkgdesc="a non free DBMS"
url="http://www.oracle.com/"
license=('custom')
arch=('x86_64')
mateusz$ LANG=en_EN.UTF-8 makepkg /home/mateusz/build/oracle 21:11
==> Making package: oracle-xe 11.2.0_1.0-1 (Fri Jul 27 21:11:54 CEST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found oracle-xe-11.2.0-1.0.x86_64.rpm.zip
-> Found oracle_env.csh
-> Found oracle_env.sh
-> Found oracle-xe
-> Found oracle-xe.conf