Skip to content

Instantly share code, notes, and snippets.

@metainfa
metainfa / .bashrc
Last active August 29, 2015 14:11 — forked from chetanmeh/.bashrc
source ~/path/to/tabs.sh
load-dev(){
#Create sessi data format '<Tab Name/Title> <Profile Name> <Working Directory>'
local sessions=(
oak Shell 'clear; cd ~/git/apache/oak'
sling Shell 'clear; cd ~/git/apache/sling'
felix Shell 'clear; cd ~/git/apache/felix'
)
start_sessions sessions[@]
@metainfa
metainfa / Makefile
Last active August 29, 2015 14:25 — forked from postmodern/Makefile
A generic Makefile for building/signing/install bash scripts
NAME=project
VERSION=0.0.1
DIRS=etc lib bin sbin share
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null`
INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null`
DOC_FILES=*.md *.txt
PKG_DIR=pkg
PKG_NAME=$(NAME)-$(VERSION)
@metainfa
metainfa / echo_server.js
Created February 27, 2016 20:42 — forked from liamgriffiths/echo_server.js
simple node.js net tcp/unix socket echo server
/**
* echo server
*
*/
var net = require('net'),
port = 5000,
unixsocket = '/tmp/echo.sock';
var log = function(who, what) {
@metainfa
metainfa / nodejs-tcp-example.js
Created February 28, 2016 10:56 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@metainfa
metainfa / Monokai.colorscheme
Created March 5, 2016 21:43 — forked from wdullaer/Monokai.colorscheme
Monokai Konsole Colourscheme
[Background]
Color=40,40,40
[BackgroundIntense]
Color=40,40,40
[Color0]
Color=73,72,62
[Color0Intense]
@metainfa
metainfa / big-cvimrc
Last active July 21, 2019 18:18
vimium
map , showHelp
map о scrollDown
map л scrollUp
map р scrollLeft
map д scrollRight
map пп scrollToTop
map П scrollToBottom
map яР scrollToLeft
map яД scrollToRight
map <с-у> scrollDown
@metainfa
metainfa / TrueColour.md
Created May 22, 2016 18:29 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@metainfa
metainfa / node_rfp.js
Created May 25, 2016 23:18 — forked from Istar-Eldritch/node_rfp.js
Reactive Functional Programming in NodeJS with Most.js
'use static';
const http = require('http');
const most = require('most');
const port = 3000;
const server = http.createServer();
most.fromEvent('listening', server).forEach(() => {
@metainfa
metainfa / logout-indicator.py
Created June 7, 2016 19:32 — forked from bellbind/logout-indicator.py
[python][pygi][ubuntu]Logout indicator for ubuntu Unity
#!/usr/bin/python3
# Logout indicator for ubuntu Unity
# module of python3-gi (PyGI)
from gi.repository import GLib
from gi.repository import Gio
from gi.repository import Gtk
from gi.repository import AppIndicator3
def dbus_logout(w, arg):
❯ rollup --version
rollup version 0.25.3
❯ time rollup -c ./rollup.js
rollup -c ./rollup.js 4.65s user 0.22s system 118% cpu 4.131 total
❯ time webpack
Hash: ebb00bbccd954c114d3c
Version: webpack 2.0.7-beta
Time: 3623ms