Skip to content

Instantly share code, notes, and snippets.

@lg
lg / adding-tailscale-to-edgerouter.md
Last active April 11, 2024 07:44
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@branw
branw / README.md
Last active April 14, 2024 04:22
Finding the most annoying Discord emoji to use for TTS

By Duration

Duration (s) Description
1.28 backhand index pointing down medium-dark skin tone
1.28 backhand index pointing left medium-dark skin tone
1.27 backhand index pointing right medium-dark skin tone
1.26 backhand index pointing down medium-light skin tone
1.25 backhand index pointing left medium-light skin tone
1.25 person playing water polo medium-dark skin tone
@tkon99
tkon99 / guide.md
Last active December 20, 2023 14:06
Use Mosh on Windows from the Command Prompt

Hi all. After wanting true color support in Mosh (to use Brow.sh), I also wanted to integrate it more tightly with Windows. Since I reckon more people will be wanting to accomplish this, here is a guide.

  1. Install Linux Subsystem for Windows if you haven't already (https://docs.microsoft.com/en-us/windows/wsl/install-win10) (I use Ubuntu)
  2. Make sure you can execute bash from a CMD prompt.
  3. Go into the bash environment by executing bash ~ in CMD prompt
  4. Install Mosh-dev (for up-to-date version) from https://launchpad.net/~keithw/+archive/ubuntu/mosh-dev by doing sudo add-apt-repository ppa:keithw/mosh-dev then sudo apt-get update
  5. Create a new mosh.bat file on your Desktop with the following contents
@echo off

Hardening WordPress

Securing WordPress using a combination of configuration changes and plugins.

.htaccess and wp-config.php tasks

1. Add keys to wp-config.php

2. Hide .htaccess and wp-config.php

@Godimas
Godimas / yt2d.md
Created January 7, 2017 15:26
Another webhook tutorial (YouTube to Discord via IFTTT)

Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone in your server to know this, eh?

I'll just start from Step 3. You know where Step 1 and Step 2 is, eh?

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).
@DeskWOW
DeskWOW / gist:23e7093bfae7d7fb9aba
Last active December 3, 2015 18:41
Example dependent dropdown code for support center / widget contact form.
<style>
.hidden {
display: none;
}
</style>
<div class="div-category">
{{ ticket_custom_category }}
</div>
@malithsen
malithsen / pb
Created November 12, 2014 17:59
Pushbullet notifications.
#!/bin/sh
curl -u KEY: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type":"note", "title": "Shell", "body": "'"$1"'"}' > /dev/null 2>&1
@malithsen
malithsen / push.py
Created November 11, 2014 16:31
A python wrapper around Pushbullet. Ideal for long running scripts in remote shells.
import os, inspect
class Push:
"""A simple wrapper around Pushbullet"""
def __init__(self, key):
self.key = key
self.title = inspect.stack()[1][1]
def post(self, msg, title=None):