Skip to content

Instantly share code, notes, and snippets.

@aussieade
aussieade / 90apt-proxy
Created April 11, 2017 12:20
networkmanager dispatch script to enable/disable apt proxy
#!/bin/sh
ESSID="zz9 plural z alpha"
interface=$1 status=$2
if [ "$interface" = "wlp3s0" ]; then
case $status in
up)
if iwgetid | grep -qs ":\"$ESSID\""; then
@aussieade
aussieade / tracker-disable.sh
Created April 11, 2017 04:24
disable ubuntu tracker services
#!/bin/bash
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-extract.desktop
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-apps.desktop
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-fs.desktop
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-user-guides.desktop
echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-store.desktop
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false
@aussieade
aussieade / wemo
Created March 4, 2017 11:55
command line wemo switch control
#!/bin/bash
#
# Filename: wemo
# Author: Ade
# Created: Tue Jun 16 22:40:58 2015 (+1000)
# Last-Updated: Sat Mar 4 22:52:51 2017 (+1100)
# Description: command line wemo switch control
# Version: 0.1
#