Skip to content

Instantly share code, notes, and snippets.

View jaigouk's full-sized avatar

Jaigouk Kim jaigouk

View GitHub Profile
@jaigouk
jaigouk / up-and-running-with-edeliver-on-do.md
Created May 18, 2017 23:11 — forked from mattweldon/up-and-running-with-edeliver-on-do.md
Getting Elixir / Phoenix running on Digital Ocean with edeliver

Build Server

  • Go to Digital Ocean
  • Create new droplet
  • London
  • Ubuntu
  • No apps
  • Add SSH keys
@jaigouk
jaigouk / README.md
Created April 20, 2017 21:53 — forked from matijs/README.md
Resizing a partition and filesystem on a headless Raspberry Pi running Arch Linux using a USB drive

Resizing a partition and filesystem on a headless Raspberry Pi running Arch Linux using a USB drive

disclaimer: this worked for me, your mileage may vary. Your Pi, your responsibility :)

After putting Arch Linux on a 16GB SD card using these instructions, I ended up with about 14GB of free space.

Arch Linux uses one primary partition (/dev/mmcblk0p1) and an extended partition (/dev/mmcblk0p2) containing one logical partition (/dev/mmcblk0p5). The primary partition is the boot partition and the logical partition is the root partition. Rather than adding another primary partition I just wanted to resize the root partition and filesystem.

According to this bugreport parted no longer handles resizing of partitions and gparted needs a graphical environment to run. So I had to come up with something else to resize my partitions.

@jaigouk
jaigouk / README.md
Last active April 7, 2017 20:20 — forked from joews/README.md
Shink Raspberry Pi root partition (Arch) with OSX

Shink Raspberry Pi root partition (Arch) with OSX

login alarm / alarm

netctl. It is the Arch Linux built in network management system. If it isn't already installed (it should be though), run pacman -Syu netctl then look in /etc/netctl. There are example configuration files in /etc/netctl/examples. To use an example, just copy it to /etc/netctl and edit it to fit your set up. So for your case, run cp /etc/netctl/example/wireless-wpa /etc/netctl/somedescriptivename then edit /etc/netctl/somedescriptivename to fit your set up. To enable auto configuration of your wireless networks with systemd, make sure the wpa_actiond package is installed and enable the service: systemctl enable netctl-auto@wlan0.service

https://wiki.archlinux.org/index.php/Netctl

[Raster tiles][rt] [Vector tiles][vt] GeoJSON virtual-dom offline map quality React component React Native
google maps + + good [4 unsupported][gm-react] [+][gm-native]
leaflet * + [+][ll-vt] + [+/-][ll-offline] depends [+][ll-rect]
d3 * + [+/-][d3-vdom] +/- depends [+][d3-react]
MapboxGL + + depends [+][mb-react] [+][mb-native]
Yandex Maps +
@jaigouk
jaigouk / iterm2-solarized.md
Created March 31, 2017 21:46 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@jaigouk
jaigouk / setup-es6-linting.md
Created November 28, 2016 17:45
Linting ES6+Babel+JSX in Atom

Setup ES6+Babel+JSX Linting with Atom

This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.

Steps

  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
  2. Run npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react from your project root.
  3. Add "extends": "eslint-config-airbnb" to your .eslintrc
# http://jsonapi.org/format/#fetching-includes
class IncludedResourceParams
def initialize(include_param)
@include_param = include_param
end
def has_included_resources?
return false unless @include_param
return false if split_include_param.select{|x| !x.include?('*')}.empty?
@jaigouk
jaigouk / keybase.md
Created October 28, 2016 09:32
keybase.md

Keybase proof

I hereby claim:

  • I am jaigouk on github.
  • I am jaigouk (https://keybase.io/jaigouk) on keybase.
  • I have a public key whose fingerprint is F1E5 9314 6FA5 2837 6C49 026B FD8F 6CD7 F1A1 611F

To claim this, I am signing this object:

Elastic Load Balancer, CloudFront and Let's Encrypt
@jaigouk
jaigouk / .eslintrc
Created August 29, 2016 16:30
lint rc
{
parser: "babel-eslint",
env: {
es6: true,
browser: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {