- Rename network card to
peth0
(http://lists.xen.org/archives/html/xen-users/2012-02/msg00535.html). Edit/etc/udev/rules.d/70-persistent-net.rules
to set the name of the physical interface topeth0
. - Edit
/etc/network/interfaces
:
This file contains 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
/* utf.js - UTF-8 <=> UTF-16 convertion | |
* | |
* Copyright (C) 1999 Masanao Izumo <[email protected]> | |
* Version: 1.0 | |
* LastModified: Dec 25 1999 | |
* This library is free. You can redistribute it and/or modify it. | |
*/ | |
/* | |
* Interfaces: |
This file contains 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
#! /usr/bin/env python | |
""" | |
Copied from http://eventlet.net/doc/examples.html#echo-server | |
Simple server that listens on port 8014 and echos back every input to | |
the client. To try out the server, start it up by running this file. | |
""" | |
import eventlet |
This file contains 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
#!/usr/bin/python | |
# This is a crude brute-force tool to remove the cycling on a XRF module (http://shop.ciseco.co.uk/xrf-wireless-rf-radio-uart-rs232-serial-data-module-xbee-shape-arduino-pic-etc/) | |
# What it does is that every 20 ms it sends out a : WAKE + REMOVE INTLV + Reboot command | |
# This should be running when you power up your XRF (or when the XRF sends the battery reading, but on startup is easier) | |
# | |
# Start the script, start the XRF and it should reset straight away. Afterwards it will boot with the regular STARTED commands, without cycle. | |
# Everything else is the same (i.e device name etc.) | |
# | |
# 1. You need a XRF connected to your computer, | |
# Either a USB XRF receiver/sender(http://shop.ciseco.co.uk/urf-radio-module-and-serial-inteface-via-usb/) |
This file contains 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 | |
sudo apt-get --yes purge xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf | |
sudo apt-get -y purge aspell hunspell-en-us iptraf libaspell15 libhunspell-1.2-0 lxde lxsession lxtask lxterminal squeak-vm whiptail zenity gdm gnome-themes-standard python-pygame | |
apt-get --yes purge xdg-tools desktop-file-utils omxplayer python3-numpy python3 | |
sudo apt-get remove xserver-xorg | |
sudo apt-get purge ^lx | |
sudo apt-get --yes autoremove | |
sudo apt-get --yes autoclean | |
sudo apt-get --yes clean |
This file contains 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
/* | |
Safari and Chrome (os x) both handles webfonts badly when compared | |
with the Photoshop version of the same font. They are generally harder and rough. | |
Example: | |
http://www.dropmocks.com/mBnnKJ | |
Left: Web font in Safari, Right: Fixed web font | |
This file contains 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
/*// ======================================================= | |
The Retro Affect Animation Exporter | |
Created: January 6th, 2010 | |
______________________________________________________________________________ | |
Authors: | |
Peter Jones | |
David Carrigg | |
The function getFrame(IO) is by: | |
jugenjury from ps-scripts.com |
This file contains 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
find ./ -iname "*Demo-Master.mov" -exec ./ffmpeg -i {} -c:v libx264 -preset slower -b:v 2500k -b:a 196k -vf scale=-1:720 -pix_fmt yuv420p {}.ffmpeg.mp4 ";" -ls |
This file contains 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
curl https://dl.dropboxusercontent.com/u/78509419/munin-html > /usr/share/munin/munin-html |
This file contains 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
*, *:before, *:after { | |
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
} |
OlderNewer