View gist:14a1470d3a344b16489b6b9678e28956
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[32mRunning bash [-c /tmp/test_ddev.sh][0m | |
======= Existing project config ========= | |
These config files were loaded for project va-gov-cms: [/home/elijah/Projects/va.gov/va.gov-cms/.ddev/config.yaml] | |
name: va-gov-cms | |
type: drupal9 | |
docroot: docroot | |
php_version: 8.1 | |
webserver_type: nginx-fpm | |
webimage: drud/ddev-webserver:v1.21.4 |
View gist:15a31d51618c5a4805a1d660f24f005e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## https://stackoverflow.com/questions/34658836/docker-is-in-volume-in-use-but-there-arent-any-docker-containers?answertab=trending#comment128478332_42116347 | |
function docker-remove-containers --description "Remove all docker containers" | |
docker stop (docker ps --all --quiet) | |
docker rm (docker ps --all --quiet) | |
end | |
funcsave docker-remove-containers | |
View gist:76e5580806c3b1de2ff116dabb7d1f1c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am elijahlynn on github. | |
* I am elijahlynn (https://keybase.io/elijahlynn) on keybase. | |
* I have a public key ASBeMFqKeluy3X7oeF-D-Zh05Q3rxHtuggP7XY2ICXlgoQo | |
To claim this, I am signing this object: |
View simplehttp.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upstream https://gist.github.com/ElijahLynn/ce1a103a6caa7dbd11f7facb3c943f8f | |
[Unit] | |
Description=Job that runs the Python SimpleHTTPServer daemon | |
Documentation=man:SimpleHTTPServer(1) | |
[Service] | |
Type=simple | |
WorkingDirectory=/tmp/backups | |
ExecStartPre=-/usr/bin/mkdir /tmp/backups | |
ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & |
View guake_fullscreen_toggle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8; -*- | |
# Depends on https://github.com/Guake/guake/pull/1446 | |
import dbus | |
try: | |
bus = dbus.SessionBus() | |
remote_object = bus.get_object('org.guake.RemoteControl', '/org/guake/RemoteControl') | |
remote_object.fullscreen_toggle() |
View countCSSRules.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
View gist:75f75ef17592d31b4152175b31584ae1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google News - Top Stories Hider | |
// @namespace http://www.elijahlynn.net | |
// @version 0.1 | |
// @description Permanently hides the Top Stories section on Google News | |
// @author Elijah Lynn | |
// @match https://news.google.com/* | |
// @grant none | |
// @downloadURL https://gist.githubusercontent.com/ElijahLynn/75f75ef17592d31b4152175b31584ae1/raw | |
// @updateURL https://gist.githubusercontent.com/ElijahLynn/75f75ef17592d31b4152175b31584ae1/raw |
View f.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.write('\x3cimg src\x3d\x22https://secure-gl.imrworldwide.com/cgi-bin/m?ci\x3dncs2016\x26amp;at\x3dview\x26amp;rt\x3dbanner\x26amp;st\x3dimage\x26amp;ca\x3dchase_ev_012417\x26amp;cr\x3d80580412\x26amp;pc\x3d144822244\x26amp;ce\x3d10787013_DCM\x26amp;rnd\x3d3209337560\x22 height\x3d\x221\x22 width\x3d\x221\x22 border\x3d\x220\x22\x3e\x3cscript type\x3d\x22text/javascript\x22 src\x3d\x22https://s.admathhd.com/2/675511/analytics.js?ac\x3d10787013\x26amp;si\x3d851407\x26amp;pc\x3d144822244\x26amp;pi\x3d319652813\x26amp;cr\x3d80580412\x26amp;dm\x3d\x26amp;ai\x3d3092936\x26amp;ui\x3dAMsySZY-5abb1GYAnjQ-u_lv224d\x26amp;cb\x3d3209337560\x26amp;pp\x3dN5762.wsjdn.com\x26amp;dt\x3d6755111439323588633001\x22\x3e\x3c/script\x3e');(function() {if (!window.GoogleTyFxhY || typeof window.GoogleTyFxhY.push !== 'function') {window.GoogleTyFxhY = [];}window.GoogleTyFxhY.push({'_scs_': 'BR2W_jGbVWOPCBI-xMfbOi7gDAAAAADgB4AQC','_bgu_': 'https://pagead2.googlesyndication.com/bg/db7KNPtkE4zG9BtR4cnMZHttZikK_5y0_126agzRcbU.js' |
View droplet_delete_all.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function droplet_delete_all | |
echo "Getting list of droplets" | |
set --local droplets (doctl compute droplet list | tail --lines=+2 | awk '{print $2}') | |
if test -n "$droplets" | |
echo "Deleting droplets: $droplets" | |
for droplet in $droplets | |
doctl compute droplet delete $droplet | |
echo "Deleted droplet: $droplet" | |
end | |
else |
View change_timezone.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I make an abbreviation with `abbr --add ct change_timezone` and then just type `ct ny`. | |
function change_timezone --description "Change timezone to; LA or NY" | |
set --local zone $argv[1] | |
if string match --ignore-case --quiet 'LA' $zone | |
timedatectl set-timezone America/Los_Angeles | |
echo 'set zone to America/Los_Angeles' | |
else if string match --ignore-case --quiet 'NY' $zone | |
timedatectl set-timezone America/New_York | |
echo 'set zone to America/New_York' | |
else |
NewerOlder