Skip to content

Instantly share code, notes, and snippets.

View suderman's full-sized avatar

Jon Suderman suderman

View GitHub Profile
@suderman
suderman / stack-wallabag.yml
Created May 23, 2022 05:32
wallabag docker stack
version: '3.8'
services:
# https://hub.docker.com/r/wallabag/wallabag
web:
image: "wallabag/wallabag"
deploy:
mode: replicated
replicas: 1
labels:
#!/bin/sh
# export APP_HOST=
# export DOMAIN=
# export DO_AUTH_TOKEN=
# export BASICAUTH=
# export DEBIAN_FRONTEND=noninteractive
# Upgrade OS
@suderman
suderman / docker-cleanup
Created July 27, 2020 16:25 — forked from wdullaer/docker-cleanup
Cleanup unused Docker images and containers
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
untagged_containers() {
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1.
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6).
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}'

sudo -u www-data nice -n 20 php /var/www/apega/vendor/silverstripe/framework/cli-script.php dev/tasks/MemberImportTask "flush=all"

Running Task Imports Members

Starting Download
Download Finished
Getting all Records
Got all Records
Starting the Loop
@suderman
suderman / build_ngx_pagespeed_xtr.sh
Last active June 25, 2019 21:40 — forked from joglomedia/build_ngx_pagespeed_xtr.sh
Build Nginx with PageSpeed module and other extra additional module. A fork of build_ngx_pagespeed.sh
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@suderman
suderman / dragdrop.js
Created April 5, 2019 16:34
Prototype.js dragdrop.js - Modified for Touch Device
// script.aculo.us dragdrop.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
// 2019-01 MODIFIED FOR TOUCH DEVICE DRAGGING (prototype.js + dragdrop.js)
// https://stackoverflow.com/questions/17310001/scriptaculous-draggable-on-ios
@suderman
suderman / prototype.js
Created April 5, 2019 16:32
Prototype.js - Modified for Touch Device
/* Prototype JavaScript framework, version 1.7
* (c) 2005-2010 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
*
* 2019-01 MODIFIED FOR TOUCH DEVICE DRAGGING (prototype.js + dragdrop.js)
* https://stackoverflow.com/questions/17310001/scriptaculous-draggable-on-ios
*
*--------------------------------------------------------------------------*/
@suderman
suderman / eruda.js
Created January 5, 2019 00:26
Eruda Bookmarklet
javascript:(function()%7Bvar%20erudaScript%3Ddocument.createElement('script')%3BerudaScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda%2Feruda.min.js%22%3Bvar%20erudaTimingScript%3Ddocument.createElement('script')%3BerudaTimingScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-timing%2Feruda-timing.min.js%22%3Bvar%20erudaCodeScript%3Ddocument.createElement('script')%3BerudaCodeScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-code%2Feruda-code.min.js%22%3Bvar%20erudaDomScript%3Ddocument.createElement('script')%3BerudaDomScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-dom%2Feruda-dom.min.js%22%3Bdocument.body.appendChild(erudaScript)%3BerudaScript.onload%3Dfunction()%7Beruda.init()%3Bdocument.body.appendChild(erudaTimingScript)%3BerudaTimingScript.onload%3Dfunction()%7Beruda.add(erudaTiming)%7D%3Bdocument.body.appendChild(erudaCodeScript)%3BerudaCodeScript.onload%3Dfunction()%7Beruda.add(erudaCode)%7D%3Bdocument.body.appendChild(erudaDomScript)%3BerudaDomScript.onload%3Dfunction()%7Beruda.add(erud
Verifying my Blockstack ID is secured with the address 1N4sjw7UBvhQMCEy8KcDGFM9ofuTTZyVe1 https://explorer.blockstack.org/address/1N4sjw7UBvhQMCEy8KcDGFM9ofuTTZyVe1
@suderman
suderman / Edit in Drafts.md
Last active May 13, 2020 16:53
Edit DEVONthink text in Drafts (using Pythonista)

Edit DEVONthink text in Drafts (using Pythonista)

Screenshots:

Open these Drafts Actions URLs in iOS

Metadata IN