Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am andromedarabbit on github.
  • I am jaehoonchoi (https://keybase.io/jaehoonchoi) on keybase.
  • I have a public key whose fingerprint is FEA5 5C77 9473 2F67 C619 951F D178 EF67 2155 6CB9

To claim this, I am signing this object:

@andromedarabbit
andromedarabbit / move-git-branch-pointer-to-specific-commit.sh
Created June 28, 2016 15:05
Git: move branch pointer to different commit
git update-ref <ref> <commit>
git push --force
@andromedarabbit
andromedarabbit / BooleanTypeHandler.java
Last active June 15, 2016 03:02 — forked from inancsevinc/BooleanTypeHandler.java
BooleanTypeHandler for MyBatis
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@andromedarabbit
andromedarabbit / install-docker-compose-onto-coreos.sh
Last active October 10, 2016 21:44
Install docker-compose onto CoreOS
#!/bin/bash
# See https://github.com/docker/compose/releases
# See Also http://www.ericluwj.com/2015/10/20/installing-docker-compose-in-coreos.html
sudo mkdir -p /opt/bin && sudo chown core:core /opt/bin && curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose && chmod +x /opt/bin/docker-compose
@andromedarabbit
andromedarabbit / remove-git-tags.md
Created May 25, 2016 14:59
How do I remove or delete a tag from a Git repo?
@andromedarabbit
andromedarabbit / find-broken-symlinks.md
Last active May 4, 2016 15:47
Find broken symlinks and delete them
@andromedarabbit
andromedarabbit / get-linux-distribution-name.sh
Created April 18, 2016 00:53
Find Out My Linux Distribution Name and Version
# See http://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/
# To find out what version of Linux (distro) you are running, enter the following command at the shell prompt:
cat /etc/*-release
# The lsb_release command displays certain LSB (Linux Standard Base) and distribution-specific information. Type the following command:
lsb_release -a
@andromedarabbit
andromedarabbit / get-weather-reports-from-the-command-line.md
Created April 3, 2016 13:16
Get Weather Reports from the Command Line

With finger

get a forecast

finger (city name)@graph.no

get a shorter forecast