Skip to content

Instantly share code, notes, and snippets.

View seungdols's full-sized avatar
💭
💻 working.

seungdols seungdols

💭
💻 working.
View GitHub Profile
❯ brew list
==> Formulae
aom glib libnghttp2 mas ruby
asciinema gmp libogg maven ruby-build
asdf gnu-sed libpng minikube rustup-init
autoconf gnutls libpthread-stubs mpdecimal s-lang
autoenv go librdkafka mpfr sbt
automake gobject-introspection librsvg msgpack sdl2
avro-c gradle libsamplerate ncurses six
bat graphite2 libserdes neovim snappy
@seungdols
seungdols / Free O'Reilly Books.md
Created April 7, 2019 13:40 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@seungdols
seungdols / list_gcp_iprange.sh
Created January 18, 2019 02:50 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/bin/bash
# https://cloud.google.com/compute/docs/faq#ipranges
#nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`
do
dig txt $LINE +short
done | tr " " "\n" | grep ip4 | cut -f 2 -d : | sort -n
@seungdols
seungdols / pcat-install.sh
Created September 19, 2018 11:34 — forked from BretFisher/pcat-install.sh
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.3/immutable.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.0/redux.js"></script>
<script id="jsbin-javascript">
@seungdols
seungdols / Powerline.md
Created June 12, 2017 02:16 — forked from wm/Powerline.md
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

@seungdols
seungdols / htmlentity.js
Created October 25, 2016 06:10 — forked from CatTail/htmlentity.js
Javascript: encode(decode) html text into html entity
// encode(decode) html text into html entity
var decodeHtmlEntity = function(str) {
return str.replace(/&#(\d+);/g, function(match, dec) {
return String.fromCharCode(dec);
});
};
var encodeHtmlEntity = function(str) {
var buf = [];
for (var i=str.length-1;i>=0;i--) {
@seungdols
seungdols / intellijshortcut.desktop
Last active August 13, 2016 14:50
make shortcut icon intellij for ubuntu
[Desktop Entry]
Name=Intellij
Type=Application
Exec=idea.sh #원래는 /home/seungdols/ide/idea-IU-162.1121.32/bin/idea.sh를 적어주셔야합니다.
# 저는 환경변수에 해당 경로를 추가해주었기 때문에 idea.sh만 입력해도 실행이 가능합니다.
Terminal=false
Icon=/home/seungdols/ide/idea-IU-162.1121.32/bin/idea.png
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
@seungdols
seungdols / .vimrc
Created July 8, 2016 01:00
now vimrc info
" ----------------------------------------------------------------------
" | General Settings |
" ----------------------------------------------------------------------
set nocompatible " Don't make vim vi-compatibile
syntax on " Enable syntax highlighting
if has("autocmd")
filetype plugin indent on