Skip to content

Instantly share code, notes, and snippets.

ERROR there was an issue examining the environment: failure setting config: cannot find address of network-bridge: "lxcbr0": route ip+net: no such network interface
.juju/environment.yml
network-bridge: enp0s3
@techraf
techraf / disk_usage.txt
Last active March 14, 2016 13:17
Lubuntu
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 354M 0 354M 0% /dev
tmpfs 75M 5.1M 70M 7% /run
/dev/sda1 23G 2.5G 20G 12% /
tmpfs 371M 0 371M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 371M 0 371M 0% /sys/fs/cgroup
tmpfs 75M 8.0K 75M 1% /run/user/1000
/dev/sr0 58M 58M 0 100% /media/lubuntu/VBOXADDITIONS_5.0.16_105871
@techraf
techraf / disk_usage.txt
Last active March 14, 2016 13:13
Ubuntu
# 15.04 2016-03-14 after `apt-get upgrade`
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 354M 0 354M 0% /dev
tmpfs 75M 5.2M 69M 7% /run
/dev/sda1 7.1G 4.3G 2.4G 65% /
tmpfs 371M 80K 371M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 371M 0 371M 0% /sys/fs/cgroup
alias c='clear'
alias df='df -H' # -H use human-readable units (kB, MB, GB)
alias dir='ls -lh'
alias du='du -chd 1 2> /dev/null'
alias h='history'
alias hexdump='hexdump -C'
alias j='jobs -l'
alias l='ls'
alias ll='ls -ahl'
alias lld='ls -adhl'
@techraf
techraf / pedantically_commented_playbook.yml
Created October 2, 2015 23:35 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@techraf
techraf / socketfilterfw_problem.md
Created September 5, 2015 03:37
Problem adding/removing "incoming connection" privilege to OSX Firewall (ALF) with socketfilterfw

I get the following error when trying to remove the path from ALF:

[~]# sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps | grep -A1 "/usr/local/Cellar/syncthing/0.11.19/bin/syncthing"
24 :  /usr/local/Cellar/syncthing/0.11.19/bin/syncthing
 	 ( Allow incoming connections )
[~]# sudo /usr/libexec/ApplicationFirewall/socketfilterfw --remove /usr/local/Cellar/syncthing/0.11.19/bin/syncthing
The file path you specified does not exist
[~]#
@techraf
techraf / pi_qemu.sh
Last active August 29, 2015 14:27 — forked from JasonGhent/pi_qemu.sh
OSX raspberry pi emulation via QEMU
# pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
# expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu
# tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks
# also with 2015-05-05-raspbian-wheezy.zip on OSX Yosemite
# and qemu: stable 2.4.0 (bottled), HEAD (current as of 2015-08-17)
# OSX terminal
brew install qemu
@techraf
techraf / git-branch-between-different-repositories.md
Last active August 29, 2015 14:27 — forked from jcaraballo/git-branch-between-different-repositories.md
How to fork a github repository in bitbucket

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
# aliases
git config --global alias.undo-commit 'reset --soft HEAD^'
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
# display effective configuration
# git config --list
@techraf
techraf / profile.ps1
Created August 13, 2014 12:49
PowerShell profile
# This is intended to be a profile for PowerShell user
# The location of the file can be displayed by using the following command:
# $profile
# Default is:
# C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# It can be edited with
# notepad $profile
# (however when creating a file this way, a parent directory must exist)
#
# re-read (source) just like in bash