Skip to content

Instantly share code, notes, and snippets.

View bdwakefield's full-sized avatar

bdwakefield bdwakefield

View GitHub Profile
@bdwakefield
bdwakefield / dscovr.ps1
Created February 5, 2016 04:11 — forked from IJMacD/dscovr.ps1
Windows Powershell Script to download the latest image from the DSCOVR satellite then set as the desktop background.
#
# DSCOVR:EPIC Downloader
#
#
#
# This script will scrape the latest image from the DSCOVR satellite, saving it
# in My Pictures\DSCOVR\ and then set as the desktop background.
#
# http://epic.gsfc.nasa.gov/
#
#!/bin/bash
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me
PID=$(pgrep -u USER gnome-session-b)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
/usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH'
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrough.org set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)'
@bdwakefield
bdwakefield / expose_mce_buttons_2.php
Created October 29, 2017 23:38 — forked from WillSquire/expose_mce_buttons_2.php
Expose Wordpress's subscript and superscript buttons for the default WYSIWYG editor (disabled by Wordpress by default)
/**
* Adds subscript and superscript buttons for Wordpress's WYSIWYG
* editor (disabled by Wordpress by default)
*
* @param $buttons
* @return array
*/
function expose_mce_buttons_2($buttons) {
$buttons[] = 'superscript';
@bdwakefield
bdwakefield / dashboard.html
Created November 16, 2016 15:28 — forked from robinwarren/dashboard.html
Trello dashboard using Bootstrap and JQuery
<html>
<head>
<title>A Trello Dashboard</title>
<link rel="stylesheet" media="screen" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Trello Dashboard</h1>
<form class="form-horizontal" id="boards_form">
@bdwakefield
bdwakefield / Contract Killer 3.md
Created July 29, 2016 21:50 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@bdwakefield
bdwakefield / himawari.ps1
Created February 5, 2016 04:07 — forked from MichaelPote/himawari.ps1
Windows Powershell Script to download the latest image from the Himawari-8 satelite, combine the tiles into a single image, convert to jpg and then set as the desktop background.
#
# Himawari-8 Downloader
#
#
#
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image,
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background.
#
# http://himawari8.nict.go.jp/himawari8-image.htm
#