This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import it into your profile, and create a git repository. | |
# then run `journal` in the repository. it will automatically | |
# create a dated filename (appending a number if it already | |
# exists), open your editor to it, and when you save and | |
# quit, it'll push it to your git remote. | |
journal () { | |
if [ ! -d .git ] | |
then | |
echo "Please initialize this directory with git" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============================================================================= | |
// | |
// Waybar configuration | |
// | |
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration | |
// | |
// ============================================================================= | |
{ | |
// ------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env bash | |
case "$1" in | |
boot) | |
(sleep 1 && bash $0 fix) & | |
;; | |
fix) | |
exec &>/dev/null | |
# transform monitors to form a vertical wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env bash | |
case "$1" in | |
boot) | |
(sleep 1 && bash $0 fix) & | |
;; | |
fix) | |
exec &>/dev/null | |
# transform monitors to form a vertical wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env bash | |
case "$1" in | |
boot) | |
(sleep 5 && bash $0 fix) & | |
;; | |
fix) | |
exec &>/dev/null | |
# transform monitors to form a vertical wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!env bash | |
case "$1" in | |
boot) | |
(sleep 5 && bash $0 fix) & | |
;; | |
fix) | |
xrandr --dpi 192 \ | |
--output DisplayPort-2 --dpi 192 --primary --auto --rotate right --left-of DisplayPort-0 \ | |
--output DisplayPort-1 --dpi 192 --auto --left-of DisplayPort-2 --rotate right \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -x "$(which kubectl)" ] && [ -d ~/.kube ] | |
then | |
## usage: k <config file> <kubectl command> | |
## config file must exist in ~/.kube | |
k() { | |
config=$1 | |
shift | |
KUBECONFIG=~/.kube/${config} kubectl "$@" | |
} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'eventmachine' | |
module Telnet | |
# :stopdoc: | |
IAC = 255.chr # "\377" # "\xff" # interpret as command | |
DONT = 254.chr # "\376" # "\xfe" # you are not to use option | |
DO = 253.chr # "\375" # "\xfd" # please, you use option | |
WONT = 252.chr # "\374" # "\xfc" # I won't use option | |
WILL = 251.chr # "\373" # "\xfb" # I will use option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"path/filepath" | |
"time" | |
"github.com/veandco/go-sdl2/sdl" | |
) |
NewerOlder