Skip to content

Instantly share code, notes, and snippets.

View dwbfox's full-sized avatar
🎯
Focusing

Dagmawi Biru dwbfox

🎯
Focusing
View GitHub Profile
@dwbfox
dwbfox / start-vm.sh
Created July 21, 2017 03:38
A small shell script to start all VM/domains in libvirt
#!/bin/bash
for vm in $(virsh list --all | sed 1,2d | cut -d' ' -f 7); do
virsh start $vm
done
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 20,
"auto_complete_with_fields": true,
"bold_folder_labels": false,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": true,
echo "alias lookfor=\"grep -r -i -n $1\"" >>~/.bash_profile && source ~/.bash_profile
@dwbfox
dwbfox / netgearutils.py
Created June 15, 2012 19:49
Status Check Tool for Netgear Routers
'''
Netgear Utils
'''
import urllib2
try:
from bs4 import BeautifulSoup as bs
except:
raise
@dwbfox
dwbfox / jsyoutube.js
Created January 30, 2012 02:12
JS YouTube Download Userscript
// ==UserScript==
// @id www.youtube.com-2925af97-1b59-4d38-bc09-e2fff53f9d6a@defb5eb4-0168-463d-913b-8b4fbfa18502
// @name YouTube + MP3 Downloader
// @version 1.3.2.1
// @namespace defb5eb4-0168-463d-913b-8b4fbfa18502
// @author atmega
// @description Download YouTube videos with a single click of a button!
// @include http://www.youtube.com/watch?v=*
// @include http://www.youtube.com/watch?feature=*
// @run-at document-end
@dwbfox
dwbfox / jsyoutube
Created January 30, 2012 02:11
JS YouTube Download Userscript
(function ()
{
// Video Settings
var VIDEO_TITLE = document.getElementById('eow-title').getAttribute('title');
var VIDEO_ID = window.location.href.match(/v=[A-Za-z0-9-_]{11}/)[0].substring(2);
// Script settings
var SETTINGS = {
"DEBUG_MODE": false,
"SCRIPT_VERSION": "1.0.3",
@dwbfox
dwbfox / GoogleWeather.php
Created August 9, 2011 20:45
A simple PHP wrapper for Google's unofficial weather API.
<?php
/**
* Unofficial Google Weather API wrapper
* @author Foxhoundz
* @version 0.4
* @license GPL version 3
* @link http://code.google.com/p/php-google-weather-wrapper/wiki/Documentation
*/
class weather {
private $_location;