Skip to content

Instantly share code, notes, and snippets.

Avatar

bdwakefield bdwakefield

View GitHub Profile
View day-mode
#!/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 Oct 29, 2017 — 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)
View expose_mce_buttons_2.php
/**
* 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 Nov 16, 2016 — forked from robinwarren/dashboard.html
Trello dashboard using Bootstrap and JQuery
View dashboard.html
<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 Jul 29, 2016 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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 / dscovr.ps1
Created Feb 5, 2016 — forked from IJMacD/dscovr.ps1
Windows Powershell Script to download the latest image from the DSCOVR satellite then set as the desktop background.
View dscovr.ps1
#
# 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/
#
@bdwakefield
bdwakefield / himawari.ps1
Created Feb 5, 2016 — 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.
View himawari.ps1
#
# 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
#