This is a short write-up of my experiences with installing Debian on a ThinkPad W540.
All commands should be run as root, unless indicated otherwise.
# Backup | |
dconf dump /org/cinnamon/ > cinnamon-dconf-settings.txt | |
# Reset Cinnamon | |
dconf reset -f /org/cinnamon/ | |
# Restore | |
dconf load /org/cinnamon/ < cinnamon-dconf-settings.txt |
[main] | |
plugins=ifupdown,keyfile | |
[ifupdown] | |
managed=false | |
[keyfile] | |
unmanaged-devices=interface-name:docker0;interface-name:vmnet1;interface-name:vmnet8;interface-name:vboxnet0 |
#!/usr/bin/env python | |
# | |
# Tested with SuperMicro | |
import re, subprocess, pprint, time, os, sys | |
if not os.path.exists("/usr/sbin/ipmi-sensors"): | |
print >> sys.stderr, 'freeipmi tools are not installed' | |
sys.exit() |
<?xml version="1.0"?> | |
<root> | |
<!-- Logitech K360 Keyboard --> | |
<item> | |
<name>Logitech K360 Keyboard for Mac OS X</name> | |
<devicevendordef> | |
<vendorname>LOGITECH</vendorname> | |
<vendorid>0x046d</vendorid> | |
</devicevendordef> | |
<deviceproductdef> |
/* | |
This script, when used with Google Apps Scripts, will delete 400 emails and | |
can be triggered to run every few minutes without user interaction enabling you | |
to bulk delete email in Gmail without getting the #793 error from Gmail. | |
Google returns a maximum of 500 email threads in a single API call. | |
This script fetches 400 threads in case 500 threads is causing timeouts | |
Configure the search query in the code below to match the type of emails | |
you want to delete |
driver: | |
synced_folders: [ | |
["./chef-installer", "/tmp/chef-installer"] | |
] | |
provisioner: | |
chef_omnibus_url: file:///tmp/chef-installer/install.sh # curl can accept a local file:// url |
#!/bin/bash | |
# Restart the GNOME shell by commandline via SSH. Similar to nohup. | |
# Copyright (C) 2013-2014 James Shubin | |
# Written by James Shubin <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
#!/usr/bin/env python | |
# | |
# MongoDB-backed dynamic inventory script for Ansible | |
# http://docs.ansible.com/intro_dynamic_inventory.html | |
import os | |
from argparse import ArgumentParser | |
import pymongo |
This is a short write-up of my experiences with installing Debian on a ThinkPad W540.
All commands should be run as root, unless indicated otherwise.
#!/bin/bash | |
# | |
# transcode-video.sh | |
# | |
# Copyright (c) 2013-2015 Don Melton | |
# | |
about() { | |
cat <<EOF | |
$program 5.13 of April 8, 2015 |