start new:
tmux
start new with session name:
tmux new -s myname
wget http://support.webex.com/supportutilities/nbr2mp4.tar | |
tar -xvf nbr2mp4.tar ./ | |
bash ./nbr2mp4.sh | |
cd nbr2_mp4/ | |
# find missing libraries | |
ldd nbr_play | grep not | |
# install 32bit versions | |
sudo apt-get install libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 |
// Simple groovy script to compress / decompress Strings | |
import java.util.zip.GZIPInputStream | |
import java.util.zip.GZIPOutputStream | |
def zip(String s){ | |
def targetStream = new ByteArrayOutputStream() | |
def zipStream = new GZIPOutputStream(targetStream) | |
zipStream.write(s.getBytes('UTF-8')) | |
zipStream.close() | |
def zippedBytes = targetStream.toByteArray() |
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# forked by Gianluca Guarini | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep -E --quiet "$1" && eval "$2" | |
} |
# README: | |
# Copy this file to /usr/lib/systemd/system/ | |
# sudo systemctl daemon-reload | |
# systemctl enable ipython-notebook | |
# systemctl start ipython-notebook | |
# The WorkingDirectory and ipython-dir must exist | |
# If you don't want anything fancy, go to http://127.0.0.1:8888 to see your notebook | |
# wheneber you want it | |
[Unit] |
""" | |
MIT License | |
Copyright (c) 2017 Cyrille Rossant | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
sudo ip addr flush dev br-ex | |
sudo sysctl -w net.ipv4.ip_forward=1 | |
sudo ip addr add 172.24.4.225/28 dev br-ex | |
sudo ip link set br-ex up | |
sudo route add -net 10.0.0.0/24 gw 172.24.4.226 | |
sudo service rabbitmq-server start | |
sudo service postgresql start | |
sudo service apache2 start | |
export SERVICE_TOKEN=password | |
export OS_TENANT_NAME=demo |
#!/bin/sh | |
# | |
# chmodr.sh | |
# | |
# author: Francis Byrne | |
# date: 2011/02/12 | |
# | |
# Generic Script for recursively setting permissions for directories and files | |
# to defined or default permissions using chmod. | |
# |
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |