Skip to content

Instantly share code, notes, and snippets.

View Gesugao-san's full-sized avatar
💭
⌈Wired Sound for Wired People⌋

Gesugao-san

💭
⌈Wired Sound for Wired People⌋
View GitHub Profile
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active April 22, 2025 14:04
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@AndrewChamp
AndrewChamp / .htaccess
Last active February 13, 2024 20:37
Force Port 80 or Port 443 via .htaccess. This will also remove www. from the url.
# FORCE PORT 80 (insecure / regular traffic)
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
###########################################################
#FORCE PORT 443 && REMOVE WWW. (secure / SSL)
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]
@randallreedjr
randallreedjr / heroku-remote.md
Last active February 7, 2025 09:12
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git
@Birdie0
Birdie0 / ifttt-webhooks-extended-guide.md
Last active April 8, 2025 06:34
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@domenic
domenic / redirecting-github-pages.md
Created February 10, 2017 19:28
Redirecting GitHub pages after a repository move

Redirecting GitHub Pages after a repository move

The problem

You have a repository, call it alice/repo. You would like to transfer it to the user bob, so it will become bob/repo.

However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.

The solution

@Saissaken
Saissaken / Update git fork with tags.sh
Last active April 6, 2025 04:17
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@Tmp341
Tmp341 / PublicTrackers.txt
Last active December 19, 2024 11:01
Public Trackers
http://[2a04:ac00:1:3dd8::1:2710]:2710/announce
http://0123456789nonexistent.com:80/announce
http://0d.kebhana.mx:443/announce
http://1337.abcvg.info:80/announce
http://207.241.226.111:6969/announce
//
// Русский текстовый файл by Rusack (custom-made)
//
// // ignore line
// # start of new category
//
# 000 Текст подсказок и уведомления экипажа
Грузовой отсек корабля
@matthewzring
matthewzring / markdown-text-101.md
Last active April 22, 2025 03:04
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@dominicusin
dominicusin / TTL2016.txt
Last active November 28, 2023 00:21 — forked from CHEF-KOCH/TTL2016.txt
Torrent Tracker List [2017 Edition]
udp://public.popcorn-tracker.org:6969/announce
http://182.176.139.129:6969/announce
http://5.79.83.193:2710/announce
http://91.218.230.81:6969/announce
udp://tracker.ilibr.org:80/announce
http://atrack.pow7.com/announce
http://bt.henbt.com:2710/announce
http://mgtracker.org:2710/announce
http://mgtracker.org:6969/announce
http://open.touki.ru/announce.php