Skip to content

Instantly share code, notes, and snippets.

View junegunn's full-sized avatar
๐Ÿท
Please be kind to animals

Junegunn Choi junegunn

๐Ÿท
Please be kind to animals
View GitHub Profile
@thcipriani
thcipriani / baller_motd.md
Last active February 12, 2023 12:28
Using img2ponysay to create baller /etc/motd message

Update: I made this a proper blog post

Creating Baller/Useful MOTD Messages

Zangief MOTD

Prerequisites

  • linux box
@Andrewpk
Andrewpk / OSX-junos_pulse_listenToMe.sh
Last active July 11, 2024 20:22
wtf juniper.Anyone else find it irritating that junos pulse services and pulse tray must always running in OS X regardless of whether or not you're currently connected?Yeah, me too.I added the following as aliases to my shell to fix this problem.Be sure to change your /Library/LaunchAgents/net.juniper.pulsetray.plist file to reflect the `KeepAliโ€ฆ
#################################################################################
# start and stop the vpn from the command line from now on with these two commands
#################################################################################
startvpn() {
sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
}
quitvpn() {
launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist
sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist
@XVilka
XVilka / TrueColour.md
Last active March 23, 2026 05:31
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

The server.rb file slowly feeds data to the socket, and both clients will yield data as it's available. UneventfulMachine steals the API of EventMachine.

@benelog
benelog / naver-sw.md
Last active September 5, 2020 10:55
Naver S/W

๋„ค์ด๋ฒ„๊ฐ€ ๊ณต์œ ํ•œ S/W ๊ฐœ๋ฐœ ์ž์›

์˜คํ”ˆ ์†Œ์Šค

ํ™ˆํŽ˜์ด์ง€๋Š” ์†Œ์Šค์ €์žฅ์†Œ ์™ธ์— ๋”ฐ๋กœ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ์—๋งŒ ์ด๋ฆ„์—์„œ ๋งํฌ๋กœ ์—ฐ๊ฒฐํ•จ.

| ์ด๋ฆ„(ํ™ˆํŽ˜์ด์ง€) | ์„ค๋ช… | ์†Œ์Šค์ €์žฅ์†Œ | ๋ถ„๋ฅ˜ | ๋ผ์ด์„ผ์Šค | |-------------------|-----|----------------|-----------|-----|--------| | XpressEngine | PHP๊ธฐ๋ฐ˜ CMS | https://github.com/xpressengine | CMS | GPL v2 | | Cubrid | ๊ด€๊ณ„ํ˜• ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค | http://svn.cubrid.org/ | ์ €์žฅ์†Œ | GPL v2 | | Arcus | ๋ฉ”๋ชจ๋ฆฌ์บ์‰ฌ ํด๋ผ์šฐ๋“œ | | ์ €์žฅ์†Œ | |

@staltz
staltz / introrx.md
Last active April 1, 2026 14:21
The introduction to Reactive Programming you've been missing
@john2x
john2x / 00_destructuring.md
Last active March 14, 2026 08:35
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@davidguttman
davidguttman / index.js
Last active February 29, 2024 21:43
Bootstrap and Browserify
// Bootstrap wants jQuery global =(
window.jQuery = $ = require('jquery')
// Bootstrap doesn't have a "main" field / export anything =(
var bootstrap = require('bootstrap/dist/js/bootstrap')
// Get Bootstrap styles with cssify
var style = require('./node_modules/bootstrap/dist/css/bootstrap.css')
var popover = document.createElement('span')
popover.innerHTML = 'I have a popover'
@stathissideris
stathissideris / tree-seq-extra.clj
Last active July 2, 2023 11:33
Like Clojure's tree-seq, but with depth info for each node or the full path (recursive - blow up the stack for deep trees)
(defn tree-seq-depth
"Returns a lazy sequence of vectors of the nodes in a tree and their
depth as [node depth], via a depth-first walk. branch? must be a fn
of one arg that returns true if passed a node that can have
children (but may not). children must be a fn of one arg that
returns a sequence of the children. Will only be called on nodes for
which branch? returns true. Root is the root node of the tree."
[branch? children root]
(let [walk (fn walk [depth node]
(lazy-seq
@choppsv1
choppsv1 / tmux-24.diff
Last active December 21, 2018 15:25
True color (24-bit) terminal support for tmux-1.9a and tmux-2.0
This diff is a modified version of a diff written by Arnis Lapsa.
[ The original can be found here: https://gist.github.com/ArnisL/6156593 ]
This diff adds support to tmux for 24-bit color CSI SRG sequences. This
allows terminal based programs that take advantage of it (e.g., vim or
emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch)
to display 16 million colors while running in tmux.
The primary change I made was to support ":" as a delimeter as well