Skip to content

Instantly share code, notes, and snippets.

View superterran's full-sized avatar
💯
Don't assign it to me!

Doug Hatcher superterran

💯
Don't assign it to me!
View GitHub Profile
@superterran
superterran / mov to gif
Last active September 17, 2022 01:00
Create gifs from MacOS Screen Captures (cmd+shift+5)
ffmpeg -i drupal.mov -s 1024x768 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
@superterran
superterran / logitech.rules
Last active July 18, 2021 22:20
Logitech Unifying Receiver USB wake udev rule
# /etc/udev/rules.d/logitech.rules
# Logitech Unifying Reciver
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTR{power/wakeup}="enabled"
# Dell U3818DW Monitor USB Hub
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1d6b", ATTR{power/wakeup}="enabled"
@superterran
superterran / dell 7590 fedora 31 kernel parameters
Last active March 2, 2021 01:51
Flicker-free boot with docker on Fedora 31
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0 rhgb quiet mem_sleep_default=deep"
@superterran
superterran / cli-php.ini
Created April 20, 2020 21:33
PHP Configuration from a popular webscale production environment
[PHP]
extension=mcrypt.so
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
@superterran
superterran / dozer.html
Created August 20, 2017 18:59
a homage to a bulldozer game I used to play
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#stage {
height: 100%;
width: auto;
position: fixed;
transform: translate(-50%, -50%);
@superterran
superterran / dozer.html
Created August 20, 2017 18:56
a homage to a bulldozer game I used to play
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#stage {
height: 100%;
width: auto;
position: fixed;
transform: translate(-50%, -50%);
@superterran
superterran / starfield.html
Created August 20, 2017 18:48
a little starfield demo I wrote initially as a codepen
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<style type="text/css">
#space {
display: block;
position: fixed;
top: 0px;
left: 0px;
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<style type="text/css">
body {
overflow: hidden;
margin: 0;
@superterran
superterran / bless_home
Created June 24, 2015 00:27
Symlinks paths on my storage drive to my home directory, tries to backup any files in the home directory first.
#!/bin/bash
echo 'This is going to symlink out your home directory to another path. It will try to copy over any new files beforehand.'
sourcedir="/media/storage"
read -p "Are you sure you want to continue? <y/N> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
for i in $(ls -d */)