Skip to content

Instantly share code, notes, and snippets.

View Tetz's full-sized avatar
😈
Emacs with Evil

Tetsuro Takemoto Tetz

😈
Emacs with Evil
  • Ineeza
  • Amsterdam, Netherlands
View GitHub Profile
@joeltg
joeltg / cluster.sh
Last active November 5, 2024 22:48
IPFS Cluster Setup
#!/bin/bash
set -x
USER=ec2-user
GROUP=ec2-user
# Update these when appropriate
IPFS_VERSION=v0.4.21
IPFS_CLUSTER_VERSION=v0.10.1
@sirn
sirn / README.md
Last active February 7, 2019 03:45
OmiseGO eWallet Workshop
  1. Install Docker and docker-compose
  2. Copy docker-compose.yml somewhere in your machine.
  3. Run docker-compose up -d
  4. Run the following (in one line, without $):
$ docker exec -it docker-local_ewallet_1 env MIX_ENV=prod mix do local.hex --force, local.rebar --force, ecto.create, ecto.migrate, seed
  1. If ☝️ error, please try breaking into multple commands:
@dasgoll
dasgoll / go-install.md
Created January 20, 2018 03:27 — forked from diegopacheco/go-install.md
How to Install GO Lang on CentOS / Amazon Linux?

How to Install GO Lang on CentOS / Amazon Linux?

sudo wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
tar -xzf go1.4.2.linux-amd64.tar.gz 
export GOROOT=PATH_WHERE_YOU_EXTRACT_GO
export PATH=$PATH:$GOROOT/bin 
export GOBIN=$GOROOT/bin 
mkdir ~/golang/ 
export GOPATH=~/golang/ 
@lotz84
lotz84 / gist:fa26a4e51debd4797d7e0cf6ec0bb6dc
Created June 25, 2017 05:47
Ethereum上でのICOを実装するまでの道筋

環境設定

geth

Ethereum ブロックチェーンに接続するためのミドルウェア

$ # geth のインストール
$ brew install ethereum
@ToQoz
ToQoz / sugu-play.sh
Last active March 21, 2017 05:08
すぐ play
#!/bin/bash
# ./play-bootstrap.sh -a app_name -s 2.11.7 -p 2.5.9
usage_exit() {
echo "Usage: $0 [-a application name] [-s scala version] [-p play version]" 1>&2
exit 1
}
while getopts p:a:s:b:h OPT
@Tetz
Tetz / play_server_setup.md
Last active December 7, 2016 02:19
scala, play framework, sbt, java8

Install Utils

sudo yum install git
sudo yum isntall tree

Remove JDK7 and Install JDK8 on Amazon Linux

sudo yum remove java-1.7.0-openjdk
sudo yum install java-1.8.0-openjdk
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@gokulkrishh
gokulkrishh / media-query.css
Last active October 28, 2025 18:36
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@Narigo
Narigo / gulpfile.js
Created February 14, 2015 17:57
Cordova + React + Gulp + live reload
var gulp = require('gulp');
gulp.task('sass', sassCompile);
gulp.task('assets', assetCopy);
gulp.task('scripts', scriptCompile);
gulp.task('clean', clean);
gulp.task('prepareAndReload', ['prepare'], reloader);
gulp.task('prepare', ['default'], cordovaPrepare);
gulp.task('dev', ['default'], liveReloadServer);
@kieranja
kieranja / gist:64cf8ef0b4e5c66be073
Last active August 29, 2015 14:02
Play Framework & Activator cheatsheet

Running on EC2 Microinstance

You'll need to lower the memory of the JVM:

echo 'export _JAVA_OPTIONS="-Xms128m -Xmx256m -XX:PermSize=64m"' >> ~/.bashrc

Then you'll need to add activator to the PATH variable