Skip to content

Instantly share code, notes, and snippets.

View wyq977's full-sized avatar
🐶
I may be slow to respond.

Yongqi Wang wyq977

🐶
I may be slow to respond.
View GitHub Profile
// ==UserScript==
// @name Open YouTube App
// @version 1.0.4
// @author asportnoy
// @match *://*.youtube.com/*
// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js
// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js
// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/
// @inject-into content
// ==/UserScript==
@rptb1
rptb1 / .gitignore
Last active October 31, 2021 21:28
Convert YouTube subscriptions exported via Google Takeout into OPML
*~
@burritosoftware
burritosoftware / ultimateguidetoaltstore.md
Last active December 2, 2022 09:07
The Ultimate Guide to Troubleshooting AltStore

The Ultimate Guide to Troubleshooting AltStore

Having issues with AltStore? This is the right place for you.

Wi-Fi Sideloading/Refreshing Is Not Working

  • Check that your Mac or PC and your device are connected to the same network.

  • Check that iTunes/Finder Wi-Fi Sync is turned on.

    1. Plug in your device to your computer.
    2. Launch iTunes (or Finder on Catalina and later).
  1. Select your device in the sidebar or top bar.
@maihannijat
maihannijat / Apple ID an unknown error occurred
Last active September 29, 2020 13:32
Apple ID an unknown error occurred
sudo -v ; killall -9 accountsd com.apple.iCloudHelper ; defaults delete MobileMeAccounts ;
mkdir ~/Library/Accounts/Backup; mv ~/Library/Accounts/*.sqlite* ~/Library/Accounts/Backup/ ;
killall -9 accountsd com.apple.iCloudHelper ; sudo reboot
// Donate to PayPal: [email protected] if this helps you.
@ernstki
ernstki / Classy .screenrc.md
Last active April 2, 2025 17:25
screenrc with a decent-looking caption / hardstatus line, including LSF job status

A classy .screenrc with LSF support

Screenshot of what you get

Here's a sensible .screenrc that does the following:

  • gives you a useful and hip-looking status line
  • tries really hard to enable 256 color support for programs that support it, like Vim
  • disables the visual bell and splash screen
  • remaps window #0 to be Ctrl+A, `, which feels more natural to me
@bradwilson
bradwilson / settings.json
Last active September 27, 2024 18:25
Ubuntu color scheme for Windows Terminal
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [
{
"command": "copy",
"keys": "ctrl+shift+c"
},
{
"command": "paste",
@kfcobrien
kfcobrien / .BASH-PROMPT.png
Last active September 4, 2023 14:55
Clean informative bash prompt with git info
.BASH-PROMPT.png
@yashkumaratri
yashkumaratri / Google Colab SSH
Created December 31, 2018 05:19
SSH into google colab
#CODE
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@fryfrog
fryfrog / sonarr_cleanup_packed_torrent.sh
Last active April 13, 2024 11:06
A Sonarr post processing script to remove the video file from packed torrents, modified version of subzero79/87a347a07964390884c9
#!/bin/bash
# Examples for testing
# sonarr_episodefile_sourcefolder="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD" sonarr_episodefile_sourcepath="/data/torrent/tv/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv"
# Instructions
# Put this script somewhere on your file system like /usr/local/bin and make it executable.
#
# In Sonarr, Settings -> Connect add a Custom Script
# On Grab: No
@tanaikech
tanaikech / submit.md
Last active April 19, 2025 05:22
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"