Skip to content

Instantly share code, notes, and snippets.

View kimsible's full-sized avatar
🎯
Focusing

Ms Kimsible kimsible

🎯
Focusing
  • Nantes
View GitHub Profile
#!/bin/bash
# pre-requis
sudo apt-get update
sudo apt-get upgrade
# install all essential to dev
sudo apt-get install git nodejs-legacy npm build-essential wget curl vim zsh
# install docker https://www.docker.com/
# Download & Install
- Babun Shell : http://babun.github.io
a Shell env for Windows based on Cygwin with lots of Unix tools like oh-my-zsh / git / vim / nano / ssh / wget / curl ...
- Chocolately : https://chocolatey.org
a package manager
- Atom Editor : https://atom.io
a modern text editor like Sublime Text
@kimsible
kimsible / Dockerfile
Created July 28, 2015 16:14
Docker-compose-sample
FROM node:latest
RUN apt-get update
RUN apt-get install -y openssh-server vim
RUN mkdir /var/run/sshd
RUN echo 'root:root' | chpasswd
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
@kimsible
kimsible / docker-compose
Created August 6, 2015 22:56
Windows docker-compose
#!/bin/bash
cygpath=`cygpath -ma .`
b2dstatus=`boot2docker status`
b2dpath_shared=${cygpath/C://c}
if [ "$b2dstatus" != "running" ]; then
boot2docker up
eval "$(boot2docker shellinit)"
fi
# auto-crop (someones can be badly cropped, ajust fuzz)
for x in `ls *.JPG`; \
do `convert -trim +repage -fuzz 40% \
$x w_$x;`; \
done
# or
mogrify -trim +repage -fuzz 40% *.JPG output/*.jpg
@kimsible
kimsible / gist:927be83c0e022ba3cd72ce06465d302d
Created June 11, 2016 15:35
Verifying that +kimcastelli is my blockchain ID. https://onename.com/kimcastelli
Verifying that +kimcastelli is my blockchain ID. https://onename.com/kimcastelli
@kimsible
kimsible / .zprofile
Last active June 18, 2019 13:53
debian netinstall
# Clean bash file sessions if exists
/bin/rm -f $HOME/.bashrc
/bin/rm -f $HOME/.bash_history
/bin/rm -f $HOME/.bash_profile
# If the .xsession-errors file is not a symbolic link, delete it and create it as such
if [ ! -h $HOME/.xsession-errors ]; then
/bin/rm $HOME/.xsession-errors
ln -s /dev/null $HOME/.xsession-errors
fi
@kimsible
kimsible / Preferences.sublime-settings
Last active April 12, 2017 09:31
Preferences.sublime-settings -- ~/.config/sublime-text-3/Packages/User
{
"tab_size": 2
"translate_tabs_to_spaces": true,
"detect_indentation": false,
"trim_trailing_white_space_on_save": true
}
@kimsible
kimsible / submitter.html
Last active May 24, 2018 14:41
muletter-submitter
<!DOCTYPE html>
<html>
<head>
<title>Muletter</title>
<meta name=robots content=noindex>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
</head>
<body>
<form id=form action=https://url-to-server/subscribers method=POST>

Keybase proof

I hereby claim:

  • I am kimsible on github.
  • I am kimsible (https://keybase.io/kimsible) on keybase.
  • I have a public key ASDvVEvvvOQaIvbGp2J4W0qt0JOFp4TnB3UShRWYW2JbBAo

To claim this, I am signing this object: