Skip to content

Instantly share code, notes, and snippets.

View colthreepv's full-sized avatar

valerio coltre colthreepv

View GitHub Profile
@colthreepv
colthreepv / nginx.github
Created August 6, 2013 09:08
nginx site for forwarding github
server {
listen 80;
server_name *.github;
location / {
proxy_set_header Host api.github.com;
proxy_pass https://api.github.com/;
}
access_log /var/log/nginx/github_access.log combined;
@colthreepv
colthreepv / guake-start.sh
Last active July 2, 2019 08:31
guake script to startup with tabs.
#!/bin/bash
# guake-start.sh
guake --rename-tab="home" &
sleep 3
guake --new-tab=2 --rename-tab="projects" --execute-command="cd ~/projects" &
sleep 1
guake --new-tab=3 --rename-tab="develop" --execute-command="cd ~/projects" &
sleep 1
guake --new-tab=4 --rename-tab="git" --execute-command="cd ~/projects" &
sleep 1
@colthreepv
colthreepv / angular-throttle.js
Last active January 10, 2018 12:07
throttle function for AngularJS. Original one: https://github.com/cowboy/jquery-throttle-debounce
angular.module('helperFunctions', [])
.factory('throttle', ['$timeout', function ($timeout) {
return function (delay, no_trailing, callback, debounce_mode) {
var timeout_id,
last_exec = 0;
if (typeof no_trailing !== 'boolean') {
debounce_mode = callback;
callback = no_trailing;
no_trailing = undefined;
@colthreepv
colthreepv / Preferences.sublime-settings
Last active December 20, 2015 10:09
personal sublime preferences
{
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"ignored_packages":
[
"Vintage"
],
"font_size": 10,
"margin": 2,
"tab_size": 2,
"translate_tabs_to_spaces": true,
@colthreepv
colthreepv / .tmux.conf
Last active December 19, 2015 18:29
personal .tmux.conf, based off It has mouse highlight, mouse scroll.. very good configuration to use with Putty, or with a (better) non-tabbed ssh client https://github.com/tony/tmux-config
# status bar
set-option -g status-utf8 on
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
@colthreepv
colthreepv / .jshintrc
Last active December 19, 2015 14:19
My personal jshint settings on Sublime Text (usable on any plugin)
{
"passfail": false,
"maxerr": 10,
"browser": true,
"node": true,
"debug": false,
"devel": false,
"strict": false,