Skip to content

Instantly share code, notes, and snippets.

View nooitaf's full-sized avatar
🕶️
deal with it

Ralf Brandenstein nooitaf

🕶️
deal with it
View GitHub Profile
@nooitaf
nooitaf / semantic-ui-override-script.sh
Last active August 29, 2015 13:56
override image and font paths
#!/bin/bash
# replace css
find ./meteor-semantic-ui/ -type f -iname '*.css' -print0 | xargs -0 \
gsed -s -i'' 's#[.][.][/]#/packages/nooitaf:semantic-ui/lib/semantic-ui/build/uncompressed/#g'
# replace less
find ./meteor-semantic-ui-less/ -type f -iname '*.less' -print0 | xargs -0 \
gsed -s -i'' 's#[.][.][/]#/packages/nooitaf:semantic-ui-less/lib/semantic-ui/build/less/#g'

Keybase proof

I hereby claim:

  • I am nooitaf on github.
  • I am nooitaf (https://keybase.io/nooitaf) on keybase.
  • I have a public key whose fingerprint is 8EC8 B1CE E34E 31B7 410A 4C84 93DE BE94 1E0F 9B15

To claim this, I am signing this object:

@nooitaf
nooitaf / maptest.html
Last active August 29, 2015 14:01
meteor map() index test
<head>
<title>maptest</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
{{#each posts}}
@nooitaf
nooitaf / findtest.html
Last active August 29, 2015 14:01
findtest
<head>
<title>findtest</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
{{#each posts}}
@nooitaf
nooitaf / pi-tricks--dd.sh
Created September 2, 2014 14:58
Pi-Tricks - Using DD
# list disks
diskutil list
#unmount disk
diskutil unmountDisk /dev/disk3
#get data
dd if=/dev/disk3 of=/path/to/file bs=32m
dd if=/dev/disk3 bs=32m | pv -v -s 3000m | dd of=/path/to/file bs=32m
@nooitaf
nooitaf / linuxcheatsheet.sh
Created January 20, 2015 13:58
Linux Cheat Sheet
# Standard Settings
#
# Set Timezone
dpkg-reconfigure tzdata
# .bashrc
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
PS1="
@nooitaf
nooitaf / nginx-rtmp-install.sh
Created August 5, 2015 04:35
nginx + nginx-rtmp install from source ubuntu
#!/bin/bash
apt-get install unzip
cd ~
# fetch nginx
wget https://github.com/nginx/nginx/archive/release-1.9.3.zip
unzip release-1.9.3.zip nginx-release-1.9.3/*
# fetch rtmp module
wget https://github.com/arut/nginx-rtmp-module/archive/v1.1.7.zip
@nooitaf
nooitaf / gist:4718650b8071b06b734f
Created August 21, 2015 04:24
ffmpeg mp4 encoding
ffmpeg
-loglevel verbose
-re
-i input.mp4
-preset:v veryfast
-vf scale=640:360
-vcodec libx264
-vprofile baseline
-acodec libmp3lame
-ar 44100
@nooitaf
nooitaf / dumpdate.sh
Created October 9, 2015 19:46
Cheats: MongoDB
#!/bin/bash
# creates dump with reasonable foldername "dump_151009-154439"
mongodump -o dump_$(date +"%y%m%d-%H%M%S")
@nooitaf
nooitaf / pi3_johnny-five.sh
Last active May 25, 2016 03:37
Johnny-five on Pi3
# install nvm | https://github.com/creationix/nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
# install node 5.9 (v6+ did not work for me)
nvm install 5.9.0
#nvm use 5.9.0
#nvm alias default 5.9.0
# create project
mkdir project