Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
- gcc
.PHONY: compile | |
time=/usr/bin/time | |
compile: dart typescript coffeescript haxe jsx | |
dart: | |
$(time) dart2js -ooutput/dart.js source/simple.dart | |
typescript: |
#! /usr/bin/env python | |
# License: http://creativecommons.org/publicdomain/zero/1.0/ | |
# See http://preshing.com/20130115/view-your-filesystem-history-using-python | |
import optparse | |
import os | |
import fnmatch | |
import time | |
# Parse options | |
parser = optparse.OptionParser(usage='Usage: %prog [options] path [path2 ...]') |
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); |
Having trouble installing the latest stable version of tmux?
I know, official package for your OS/distro is outdated and you just want the newest version of tmux.
Well, this script should save you some time with that.
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl
extension and a different #!
call.
The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect
we use the following:
#!/usr/bin/expect
YesOrNo() { | |
while : | |
do | |
read -p 'Do you want to Continue (yes/no?): ' answer | |
case "${answer}" in | |
[yY]|[yY][eE][sS]) exit 0 ;; | |
[nN]|[nN][oO]) exit 1 ;; | |
esac | |
done | |
} |
[archlinuxfr] | |
SigLevel = Never | |
Server = http://repo.archlinux.fr/$arch |
› drush dl drupal --drupal-project-rename="projectname" | |
• Install site | |
› cd projectname/sites/all/modules/ | |
› mkdir contrib custom | |
› drush dl adminimal_theme adminimal_admin_menu module_filter | |
› drush en -y adminimal_admin_menu module_filter | |
› drush variable-set admin_theme adminimal |