This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use_strict'; | |
var path = require('path'), | |
lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet, | |
folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function(grunt) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:nginx/stable | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prevent workspace switching on mousewheel | |
Settings Manager -> Window Manager Tweaks -> Workspaces tab. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.chosen-container { | |
width: 100% !important; | |
font-size: 16px; | |
.search-choice span { | |
font-size: 16px; | |
display: inline-block; | |
padding: 2.5px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('chai').assert, | |
path = require('path'), | |
browserName = process.env.browser || 'chrome', | |
protractor = require('protractor'), | |
webdriver = require('selenium-webdriver'), | |
exec = require('child_process').exec, | |
util = require('util') | |
; | |
var driver = new webdriver.Builder().usingServer('http://localhost:4444/wd/hub').withCapabilities(webdriver.Capabilities[browserName]()).build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array("Alberta" => array( | |
,"Airdrie" | |
,"Grande Prairie" | |
,"Red Deer" | |
,"Beaumont" | |
,"Hanna" | |
,"St. Albert" | |
,"Bonnyville" | |
,"Hinton" | |
,"Spruce Grove" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# unoconvd template can be found at https://gist.github.com/jdewit/9038765 | |
- name: Unoconv | Install dependencies | |
action: apt pkg={{ item }} state=installed | |
tags: unoconv | |
with_items: | |
- openjdk-6-jdk | |
- libreoffice-core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### BEGIN INIT INFO | |
# Provides: unoconvd | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: unoconvd Converting documents to PDF by unoconv | |
### END INIT INFO | |
#!/bin/sh | |
case "$1" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert filenames to lowercase | |
# and replace characters recursively | |
##################################### | |
if [ -z $1 ];then echo Give target directory; exit 0;fi | |
find "$1" -depth -name '*' | while read file ; do | |
directory=$(dirname "$file") | |
oldfilename=$(basename "$file") |
OlderNewer