Skip to content

Instantly share code, notes, and snippets.

View jalcine's full-sized avatar
💭
Decentralize and democratize the Web.

Jacky Alciné jalcine

💭
Decentralize and democratize the Web.
View GitHub Profile
The cats nestle close to their kittens now.
The lambs have laid down with the sheep.
You’re cozy and warm in your bed, my dear.
Please go the fuck to sleep.
The windows are dark in the town, child.
The whales huddle down in the deep.
I’ll read you one very last book if you swear
You’ll go the fuck to sleep.
@jalcine
jalcine / kde-devel.vim
Created May 15, 2013 19:38
VimScript that provides KDE development support.
" To use this file, add this line to your ~/.vimrc:, w/o the dquote
" source /path/to/kde/sources/kdesdk/scripts/kde-devel-vim.vim
"
" For CreateChangeLogEntry() : If you don't want to re-enter your
" Name/Email in each vim session then make sure to have the viminfo
" option enabled in your ~/.vimrc, with the '!' flag, enabling persistent
" storage of global variables. Something along the line of
" set viminfo=%,!,'50,\"100,:100,n~/.viminfo
" should do the trick.
"
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@jalcine
jalcine / trythis.vim
Last active December 19, 2015 03:18
Working with VimScript.
func! trythis#thisfunct()
let path = substitute(system("which vim"),"/vim\n","","g")
echo isdirectory(path)
endfunc!
@jalcine
jalcine / example.unicorn.conf
Created June 30, 2013 19:07
Unicorn Configuration (as per bogomips.org : http://unicorn.bogomips.org/examples/nginx.conf )
# This is example contains the bare mininum to get nginx going with
# Unicorn or Rainbows! servers. Generally these configuration settings
# are applicable to other HTTP application servers (and not just Ruby
# ones), so if you have one working well for proxying another app
# server, feel free to continue using it.
#
# The only setting we feel strongly about is the fail_timeout=0
# directive in the "upstream" block. max_fails=0 also has the same
# effect as fail_timeout=0 for current versions of nginx and may be
# used in its place.
@jalcine
jalcine / session_grab.vim
Created July 2, 2013 04:28
Grabbing an accurate session name for Vim.
if (strlen(v:servername)>0)
" Chances are we're using a GUI.
let l:session = v:servername
elseif !has('gui_running')
" Ah, we're in the console.
if (exists("$TMUX"))
let l:session = 'tmux'
else
let l:session = exists("$COLORTERM") ? $COLORTERM : $TERM
endif
@jalcine
jalcine / showterm_tag.rb
Last active December 21, 2015 16:28
A Jekyll plugin to show showterm.io record sessions
# A Liquid tag for Jekyll sites that allows the embedding of showterm.io
# recorded terminal sessions.
#
# Author: Jacky Alcine <me@jalcine.me>
# Source URL: https://gist.github.com/jalcine/6333481
#
# Example usage:
# {% showterm <ID> %}
#
require "sinatra"
require "haml"
class TicTacToe < Sinatra::Base
configure do
set :haml, {:format => :html5, :escape_html => true}
set :scss, Compass.sass_engine_options
set :sass, Compass.sass_engine_options
Compass.configuration do | cfg |
port_in_redirect off;
server_tokens off;
autoindex off;
proxy_pass_header Server;
client_max_body_size 15m;
client_body_buffer_size 128k;
root /var/www/barn.io/Barn.IO-app/public;