transparentbg() { convert "$1" -fuzz 2% -transparent white "$2" }
# update udev rules without restart
udevadm control --reload; sudo udevadm trigger --action=add
import collections
def dict_merge(dct, merge_dct):
""" Recursive dict merge. Inspired by :meth:``dict.update()``, instead of
updating only top-level keys, dict_merge recurses down into dicts nested
to an arbitrary depth, updating keys. The ``merge_dct`` is merged into
:param dct: dict onto which the merge is executed
:param merge_dct: dct merged into dct
View react-native-ultisnip.snippet
snippet rnccf
import React, { PropTypes } from 'react'
import { View, StyleSheet, Text } from 'react-native'
$1.propTypes = {
export default function ${1:FunctionName} (props) {
return (
for pkg in `dpkg --get-selections | awk '{print $1}' | egrep -v '(dpkg|apt|mysql|mythtv)'` ; do apt-get -y --force-yes install --reinstall $pkg ; done
#A quick way of backing up a list of programs is to run this:
dpkg --get-selections > ~/Package.list
sudo cp -R /etc/apt/sources.list* ~/
sudo apt-key exportall > ~/Repo.keys
#It will back them up in a format that dpkg can read* for after your reinstall, like this:
sudo apt-key add ~/Repo.keys
sudo cp -R ~/sources.list* /etc/apt/
sudo apt-get update
# umount first
sudo dd bs=4M if=input.iso of=/dev/sd<?> conv=fdatasync