Skip to content

Instantly share code, notes, and snippets.

View brumle80's full-sized avatar

Dag Notland brumle80

  • Mandal, Norway
View GitHub Profile
@brumle80
brumle80 / web-servers.md
Created November 17, 2016 12:54 — forked from neilhwatson/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Keybase proof

I hereby claim:

  • I am brumle80 on github.
  • I am dagnotland (https://keybase.io/dagnotland) on keybase.
  • I have a public key ASAZ-XMPw1qdtvCsWGJkWHg86JYbkuyP0XWhIyd960UoZgo

To claim this, I am signing this object:

@brumle80
brumle80 / day-mode
Created November 17, 2016 08:16 — forked from Skehmatics/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/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)'