Skip to content

Instantly share code, notes, and snippets.

View CoWinkKeyDinkInc's full-sized avatar

Patrick CoWinkKeyDinkInc

  • Canada
View GitHub Profile
@jeb5
jeb5 / Youtube Subs to OPML.js
Last active April 16, 2024 18:30
Youtube Subscriptions to RSS/OPML
const channels = [...document.querySelectorAll("#main-link.channel-link")].map(e => {
const [, a, b] = e.href.match("/((?:user)|(?:channel))/(.*)$");
const feed = "https://www.youtube.com/feeds/videos.xml?" + (a === "user" ? "user=" : "channel_id=") + b;
const channelName = e.querySelector("yt-formatted-string.ytd-channel-name").innerText;
return [feed, channelName];
});
if (channels.length == 0) {
alert("Couldn't find any subscriptions");
} else {
console.log(channels.map(([feed, _]) => feed).join("\n"));
@amalmurali47
amalmurali47 / backup_digitalocean.md
Last active April 24, 2024 21:33
Backup DigitalOcean droplet locally

DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.

On your local machine, assuming you have added your-server in your SSH config:

rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
  • -a : archive mode (all files, with permissions, etc.)
  • -A : preserve ACLs/permissions (not included with -a)
@dcsharp
dcsharp / Double TNT map.xml
Last active August 29, 2015 14:07
Double TNT (No TNTs near the TNT)
<?xml version="1.0"?>
<map proto="1.3.5">
<name>Double TNT</name>
<version>0.1.0</version>
<objective>Destroy 70% of the enemy's TNT and leak their core in the TNT to win!</objective>
<authors>
<author>dcsharp</author>
</authors>
<contributors>
<contributor contribution="Inventory From">last_username</contributor>
@CoWinkKeyDinkInc
CoWinkKeyDinkInc / Q*Boid.xml
Last active August 29, 2015 14:06
Q*Boid
<map proto="1.3.3">
<name>Q*Boid</name>
<version>1.0.0</version>
<objective>Capture and kill players to get 300 points to win the game.</objective>
<authors>
<author>CoWinkKeyDinkInc</author>
</authors>
<teams>
<team color="blue" max="16">Blue Team</team>
<team color="dark red" max="16">Red Team</team>

Common App & Stanford Essays

The following are my responses to the main Common App essay and the Stanford application questions. You're welcome to read them to try and understand how I got "in" to Stanford, or just for fun. Whatever you choose to try and take away from these essays, I hope you get something out of them. Or nothing at all, that works too. Enjoy.

A Brief Note

There's no secret formula. There are a lot of people more qualified than me that got denied. Even though they may have been more qualified, I beat them when it came to the essays. The most important part of your application is your essays, so I would encourage you to spend a lot of time on them. Spend time reflecting on who you are and how you can use your essays to communicate that. The readers of the over 40,000 Stanford applicants know a fake essay from a mile away. If you want to have a chance at admission, your essays need to be 100% authentic you, not 90% authentic you and 10% your mom/tutor/fake self.

If you plan to apply, I

@pudquick
pudquick / Info.plist
Last active February 19, 2021 16:41
Instructions on how to modify the Minecraft.app for OS X to work with Java 7 (without the need for 6). See the instructions in the "ReadMe" section.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key> <string>en</string>
<key>CFBundleName</key> <string>MinecraftLauncher</string>
<key>CFBundleVersion</key> <string>1.0.1</string>
<key>CFBundleShortVersionString</key> <string>MinecraftLauncher 1.0.1</string>
<key>CFBundleExecutable</key> <string>LaunchGame</string>
<key>CFBundlePackageType</key> <string>APPL</string>
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten