Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Heuberger binarykitchen

View GitHub Profile
View EC2Linux2LetsEncryptCommands.sh
#Install git and upgrade all packages
sudo yum update -y
sudo yum install git
#Get last available version of let's encrypt
git clone https://github.com/letsencrypt/letsencrypt.git
#result :
Cloning into 'letsencrypt'...
remote: Counting objects: 55232, done.
remote: Compressing objects: 100% (55/55), done.
@madvas
madvas / cljs-react-material-ui-reagent-example.cljs
Created May 13, 2016
Snippet example of using library cljs-react-material-ui with Reagent
View cljs-react-material-ui-reagent-example.cljs
(ns crmui-reagent.core
(:require
[cljsjs.material-ui]
[cljs-react-material-ui.core :as ui]
[cljs-react-material-ui.reagent :as rui]
[cljs-react-material-ui.icons :as ic]
[reagent.core :as r :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[accountant.core :as accountant]
@binarykitchen
binarykitchen / emscripten_image2_webm
Last active Dec 15, 2015
mad goal: port avconv to javascript (part 2 of 2)
View emscripten_image2_webm
(perform steps 0 - 7 from https://gist.github.com/binarykitchen/5230096 first)
8. final step: port avconv to javascript!!
> cd avconv
> sudo find . -iname "*.o" -exec rm {} \;
> sudo make clean
> sudo make distclean
> git pull
> git clean -f
@binarykitchen
binarykitchen / emscripten_avconv_x264_libvpx
Last active Aug 10, 2018
mad goal: port avconv to javascript (part 1 of 2)
View emscripten_avconv_x264_libvpx
first install x264, libvpx and avconv the normal way without emscripten:
0. install common dependencies
> sudo apt-get install build-essential checkinstall build-dep
1. install yasm
> cd [YOUR PROJECTS FOLDER]
> wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active May 18, 2022
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh