This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
| data_uri = open("sample.png", "rb").read().encode("base64").replace("\n", "") | |
| # HTML Image Element | |
| img_tag = '<img alt="" src="data:image/png;base64,{0}">'.format(data_uri) | |
| print img_tag | |
| # CSS Background Image | |
| css = 'background-image: url(data:image/png;base64,{0});'.format(data_uri) | |
| print css |
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |
The following keybindings will allow you to create multiple cursors (above or below the current cursor) with Command + Option + (Up|Down). On Windows it would be Control + Alt + (Up|Down).
{ "keys": ["super+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["super+alt+down"], "command": "select_lines", "args": {"forward": true} }| #!/usr/bin/env python | |
| # | |
| # usage: | |
| # conv2vmx-ovf.py some-vm.ovf | |
| # | |
| # ref: http://www.cnblogs.com/eshizhan/p/3332020.html | |
| # | |
| import sys | |
| fn = sys.argv[1] |
Debian Jessie (w/ gnome3) uses the "synaptics" xf86 input module as a default. It is very precise but doesn't support "resting thumb" behaviour that you're used to from OSX.
xf86-input-mtrack is an enhancement of xf86-input-multitouch which is configurable. I built it from source from here: https://github.com/BlueDragonX/xf86-input-mtrack But i see that it's also in the debian package repo. So you probably only need to do:
sudo aptitude install xserver-xorg-input-mtrack
I created an override config in /etc/X11/xorg.conf.d/50-synaptics.conf (create the directory if it doesn't exist) which looks like this:
no clue who made this, but ARTIST FOUND thank you @indyjoenz / cmang!
i have transcribed it here:
Y. _
YiL .```.
Yii; .; .;;`.
YY;ii._ .;`.;;;; :
iiYYYYYYiiiii;;;;i` ;;::;;;;
| # ... | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| location / { | |
| root html; | |
| index index.html index.htm; | |
| } |
| package com.retel.security; | |
| import org.springframework.security.web.PortResolver; | |
| import org.springframework.security.web.PortResolverImpl; | |
| import org.springframework.security.web.WebAttributes; | |
| import org.springframework.security.web.savedrequest.DefaultSavedRequest; | |
| import org.springframework.security.web.util.UrlUtils; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |
| // ==UserScript== | |
| // @name YouTube - Hide Live Chat | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Hide live chat by default on live streams | |
| // @author LM | |
| // @match https://www.youtube.com/watch* | |
| // @run-at document-end | |
| // @grant none | |
| // ==/UserScript== |