gsettings set com.canonical.desktop.interface scrollbar-mode normal
Install cinnamon.
#https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins | |
#https://github.com/thecodepath/android_guides/wiki/Building-Gradle-Projects-with-Jenkins-CI | |
#http://www.snap-interactive.com/blog/automating-our-android-app-with-gradle-and-deploygate/ | |
ANDROID_SDK=android-sdk_r22.6.2-linux.tgz | |
wget http://dl.google.com/android/$ANDROID_SDK | |
tar zxvf $ANDROID_SDK | |
#Make sure the Android tools are on the PATH |
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
sudo python -m smtpd -n -c DebuggingServer localhost:25 |
template<class T> struct NullFunctor { boolean operator()(const std::vector<T>& perm) { return FALSE; } }; | |
//! Iterator to generate all permutations of a list. A functor can be specified for fast culling of entire subtrees of undesired permutations. | |
/** | |
* The permuations are in lexicographic order. ie. {1,2,3} , {1,3,2} , {2,1,3} , {2,3,1} , {3,1,2} , {3,2,1} | |
* The current permutation list can be accessed with the dereference/pointer operators. | |
* | |
* If a functor is provided then undesired subtrees can be culled. The functor must provide this function: | |
* | |
* boolean operator()(const std::vector<T>& perm) |
import java.io.*; | |
/** | |
* Calculates the amount of byte entropy across a window | |
* size, N. The maximum entropy across any window size | |
* is N unless N > 255 in which case the maximum number of | |
* of byte patterns which may exist is 255. | |
* | |
* This program is based on Charlie Daly's Entropy.java | |
* program which does more or less the same thing, but | |
* this program has lower memory requirements allowing |
# Orignal version taken from http://www.djangosnippets.org/snippets/186/ | |
# Original author: udfalkso | |
# Modified by: Shwagroo Team and Gun.io | |
import sys | |
import os | |
import re | |
import hotshot, hotshot.stats | |
import tempfile | |
import StringIO |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
(our $Prog) = ($0 =~ m%([^/]+)$%); | |
use Getopt::Long; | |
use File::Slurp; | |
use Net::Amazon::EC2; | |
my $aws_access_key_id_file = $ENV{AWS_ACCESS_KEY_ID}; |
import socket | |
def netcat(hostname, port, content): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect((hostname, port)) | |
s.sendall(content) | |
s.shutdown(socket.SHUT_WR) | |
while 1: | |
data = s.recv(1024) | |
if data == "": |
#!/bin/bash | |
lame_opts=" --vbr-new -V 2 -B 256 " | |
for x in "${@}" | |
do | |
FLAC=${x} | |
MP3="${FLAC%.flac}.mp3" | |
[ -r "$FLAC" ] || { echo can not read file \"$FLAC\" >&1 ; exit 1 ; } ; |