Skip to content

Instantly share code, notes, and snippets.

View yunho-c's full-sized avatar
👋

Yunho Cho yunho-c

👋
View GitHub Profile

Github to Discord Webhook Tutorial

In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!

Create a Webhook in a Discord Channel

First you need to create a webhook in a text channel. We're assuming you have both Manage Channel and Manage Webhooks permissions!

  • Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
@yunho-c
yunho-c / languages.json
Last active June 3, 2025 21:25
A JSON file of major languages with country mappings and names
{
"none": {
"english_name": "",
"native_name": "",
"countries": []
},
"aa": {
"english_name": "Afar",
"native_name": "Qafar af",
"countries": [
@jwoglom
jwoglom / data.py
Created October 13, 2020 02:35
Download Perusall readings as PDF
title = "The title of the article"
urls="""
<image URLs scraped from the page>
"""

Github to Discord Webhook Tutorial

In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!

Create a Webhook in a Discord Channel

First you need to create a webhook in a text channel. We're assuming you have both Manage Channel and Manage Webhooks permissions!

  • Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
@ivakhnov
ivakhnov / GlobalProtect.md
Created February 28, 2020 21:31
[How to quit GlobalProtect (mac)] If you've used the globalprotect client for Mac, you may notice that there is no way to exit it, meaning it can continue submitting information about your system to your company in the background, including your current patches, interface information and much much more, even at times you're not connected to the …

We can just unload the launchd script keeping it alive.

Stop spying on me:

launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*

I want to use the VPN again:

launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*

@cbalint13
cbalint13 / yolo-quantization-demo.py
Last active August 12, 2024 11:36
TVM quantized YoloV3 demo
#!/usr/bin/python3
import nnvm
import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
@SHDShim
SHDShim / Helvetica_font_in_matplotlib.md
Last active September 10, 2024 09:16
matplotlib, jupyter notebook, helvetica

How to setup helvetica font in matplotlib

Helvetica is the standard font for scientific plots. However, the default for matplotlib is not helvetica. You can use the following tutorial for making the change.

[Update in 2022/11/11]

Just have the following line in the beginning of a notebook will take care of the problem.

%config InlineBackend.figure_format='svg'
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active July 12, 2025 22:10
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@mandiwise
mandiwise / Count lines in Git repo
Last active July 2, 2025 07:26
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@idleberg
idleberg / fish_shell.md
Last active August 7, 2025 07:36
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish