Skip to content

Instantly share code, notes, and snippets.

View aurelienbottazini's full-sized avatar

Aurélien Bottazini aurelienbottazini

View GitHub Profile
black = '#282828';
red = '#cc241d'; // red
green = '#98971a'; // green
yellow = '#d79921'; // yellow
blue = '#458588'; // blue
magenta = '#b16286'; // pink
cyan = '#689d6a'; // cyan
white = '#a89984'; // light gray
lightBlack = '#928374'; // medium gray
lightRed = '#fb4934'; // red
@aurelienbottazini
aurelienbottazini / Clojure.sublime-settings
Created January 18, 2021 19:01 — forked from jamesmacaulay/Clojure.sublime-settings
Clojure stuff for Sublime Text 2. Files live in ~/Application Support/Sublime Text 2/Packages/User
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
@aurelienbottazini
aurelienbottazini / main.py
Last active September 5, 2020 20:16
Sublime text command to search with rg (ripgrep) in wsl
import sublime
import sublime_plugin
import sys
import os
import re
import subprocess
class WslSearchCommand(sublime_plugin.WindowCommand):
def run(self, type="search"):
view = self.window.active_view()
@aurelienbottazini
aurelienbottazini / Glitch CodeMirror
Last active April 29, 2020 19:33
Vim support for Glitch.com
// ==UserScript==
// @name Glitch Vim
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add Vim to Glitch CodeMirror editor
// @author Aurélien Bottazini
// @match https://glitch.com/edit/
// @grant none
// To use with https://www.tampermonkey.net/
// Add a user script and in settings set Run at: document start
# code %APPDATA%\alacritty\alacritty.yml
font:
normal:
family: "PragmataPro"
size: 14.0
colors:
primary:
background: '#ffffff'
foreground: '#000000'
@aurelienbottazini
aurelienbottazini / clair.json
Last active April 28, 2020 12:36
windows-terminal light theme and personal settings
"defaults":
{
"colorScheme": "clair",
"cursorColor": "#b22222",
"cursorShape": "vintage",
"fontFace": "PragmataPro Liga",
"fontSize": 15,
"startingDirectory": "//wsl$/Ubuntu/home/auray",
"padding": "2,0,0,0",
"scrollbarState": "hidden"
@aurelienbottazini
aurelienbottazini / .tmux.conf
Created March 6, 2018 13:48 — forked from oblitum/.tmux.conf
Configuration for 24bit true colors terminal with italic
set -g default-terminal 'tmux-256color'
# Enable 24 bit true colors
set -ga terminal-overrides ',xterm-256color*:Tc'
// Credits: Adam's answer in http://stackoverflow.com/a/20786262/69362
// Paste this in browser's console
var $rootScope = angular.element(document.querySelectorAll("[ui-view]")[0]).injector().get('$rootScope');
$rootScope.$on('$stateChangeStart',function(event, toState, toParams, fromState, fromParams){
console.log('$stateChangeStart to '+toState.to+'- fired when the transition begins. toState,toParams : \n',toState, toParams);
});
$rootScope.$on('$stateChangeError',function(event, toState, toParams, fromState, fromParams){
console.log('$stateChangeError - fired when an error occurs during transition.');
@aurelienbottazini
aurelienbottazini / nginxproxy.md
Created November 11, 2015 13:34 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers