Skip to content

Instantly share code, notes, and snippets.

@jamesramsay
jamesramsay / README.md
Last active December 29, 2025 14:15
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@tonyklawrence
tonyklawrence / gist:b477dcf624577ab154ed3b51cea60e27
Last active June 23, 2025 11:21
Docker containers using VLAN network on Synology DSM 6.X
First we need to create the VLAN on the Synology from the command line:
See: https://nielshagoort.com/2016/03/30/synology-vlan-tagging/
Then add Network to Docker using maclvan driver
See: https://docs.docker.com/engine/userguide/networking/get-started-macvlan/#macvlan-8021q-trunk-bridge-mode-example-usage
Details...
@mohamadaliakbari
mohamadaliakbari / ubuntu-run-dhclient-on-startup.md
Last active July 31, 2024 08:46
Run dhclient on Startup in Ubuntu 18.04

dhclient is the Dynamic Host Configuration Protocol (DHCP) Client one would use to allow a client to connect to a DHCP server.

$ sudo nano /etc/rc.local

#!/bin/bash
dhclient
exit 0
@khurdz
khurdz / k8s_formation_dawan.md
Last active October 29, 2018 12:41
Formation Kubernetes 10/2018

Kubernetes

Composants

  • Nodes (Master / Worker)
  • API Server, etcd
  • Scheduler
  • Kubelet (agents)
  • Controllers
@zoilomora
zoilomora / README.md
Last active December 19, 2025 11:48
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@tomlankhorst
tomlankhorst / docker-swarm-gpu.md
Last active November 26, 2025 14:51
Instructions for Docker swarm with GPUs
@relativeflux
relativeflux / auto-empty-google-drive-trash.md
Last active August 16, 2025 21:55
Automatically Empty Google Drive Trash

Automatically Empty Google Drive Trash

Adapted from https://www.amixa.com/blog/2019/04/05/automatically-empty-google-drive-trash/

  1. Make sure you use Google's Chrome web browser for best results.
  2. Open Chrome and go to www.google.com.
  3. Make sure you are signed into your Google account. If not, sign in.
  4. You should obviously have Google Drive account up and running.
  5. Visit https://script.google.com/home and click NEW PROJECT
  6. Clear out the default code that appears in the next window, and paste in the following:
@pedrolamas
pedrolamas / docker-iptables-fix.sh
Created August 18, 2020 19:32
Script to fix Docker iptables on Synology NAS
#!/bin/bash
currentAttempt=0
totalAttempts=10
delay=15
while [ $currentAttempt -lt $totalAttempts ]
do
currentAttempt=$(( $currentAttempt + 1 ))
echo "Attempt $currentAttempt of $totalAttempts..."
@dhilowitz
dhilowitz / SFZ Export.lua
Last active February 23, 2025 22:41
Kontakt 6 Creator Tools LUA script for creating SFZ instruments. Outputs to console.
-- Check for valid instrument
if not instrument then
print("The following error message informs you that the Creator Tools are not "..
"focused on a Kontakt instrument. To solve this, load an instrument in "..
"Kontakt and select it from the instrument dropdown menu on top.")
return
end
print("// SFZ file for Kontakt 6 instrument " .. instrument.name)
print("")
@h4ckerman69
h4ckerman69 / README.md
Last active November 30, 2025 00:16
UPDD escape

Tested with UPDD_07_01_59.dmg, but should work with newer versions as well.

Download latest version: touch-base.com (please use temporary email) 100% working download: youtube.com/watch?v=odqYsHNl6qM Please download with github.com/KristianAskk/Infinite-Storage-Glitch.

Instructions

  1. install and start UDPP (with all the steps needed for setup). Use a temporary email address while allowing internet connections until the software works in test mode.