start new:
tmux
start new with session name:
tmux new -s myname
# Requirements: | |
# - python-lxml | |
# - pyquery | |
# | |
# As implemented in http://mybucket.co | |
# html_util.py | |
from pyquery import PyQuery as pq | |
def extract_delicious_data_from_html(html): | |
results = [] |
class Hash | |
def downcase_all_keys | |
result = self.map do |k,v| | |
[ | |
k.downcase, | |
case v.class.name | |
when "Hash" then v.downcase_all_keys | |
when "Array" then v.map {|i| i.downcase_all_keys } | |
else v | |
end |
#!/bin/sh | |
# simple script for turning a jar with a Main-Class | |
# into a stand alone executable | |
# cat [your jar file] >> [this file] | |
# then chmod +x [this file] | |
# you can now exec [this file] | |
commandToRun="$(printf "%q " "$@")" | |
if test "$commandToRun" = "'' "; then | |
eval "exec java -Xmx1G -jar $0" | |
else |
#coding: utf-8 | |
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template | |
@route('/') | |
@route('/index.html') | |
def index(): | |
return '<a href="/hello">Go to Hello World page</a>' | |
@route('/hello') | |
def hello(): |
#! /usr/bin/python2 | |
import gtk.gdk | |
w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0] ) | |
w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1 | |
gtk.gdk.window_process_all_updates() | |
gtk.gdk.flush() | |
# now bind this to super-r or something |
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ | |
/** | |
* This program will demonstrate how to use "aes128-cbc". | |
* | |
*/ | |
import com.jcraft.jsch.*; | |
import java.awt.*; | |
import javax.swing.*; | |
public class AES{ |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
This tweaks the darcula IntelliJ theme to better match the solarized color scheme found here https://github.com/jkaving/intellij-colors-solarized
To enable, after installing the color scheme linked above set your theme to darcula.
Preferences -> Appearance -> Theme -> Darcula
Exit IntelliJ then add the tweaked darcula properties file to the idea.jar file with the following command
jar -ufv idea.jar com/intellij/ide/ui/laf/darcula/darcula.properties