Skip to content

Instantly share code, notes, and snippets.

View rvargas's full-sized avatar
🚀

Rafael Vargas rvargas

🚀
View GitHub Profile
@nneonneo
nneonneo / youtube-dl.py
Last active December 9, 2024 21:56
YouTube-DL for Pythonista - download YouTube videos on your iPhone/iPad!
#!python3
'''
Directions:
- install yt-dlp via Pip (e.g. using (StaSh)[https://github.com/ywangd/stash] - `pip install yt-dlp`)
- add this script as a Share extension through Settings -> Share Extension Shortcuts
- while watching a video in the YouTube site or app, just share the video to Pythonista and select this script
- the video will download, and when it's done you can share the video file itself with any app (e.g. VLC)
Advanced usage:
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active October 13, 2025 20:38
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

Yeoman 1+ in Windows in 5 minutes

These steps are all performed in cmd.exe

  1. Install Chocolatey NuGet
  2. Install node.js and ruby:
    1. cinst nodejs.install (the "nodejs" package does not include npm, which we do need)
    2. cinst ruby1.9 (the "ruby" package installs ruby 2.0, which might not work)
  3. Restart cmd.exe because Windows is dumb and can't see the new binaries yet in cmd.exe
  4. gem install compass --pre (NuGet has a "compass" package, but it's old, outdated, and doesn't work anymore)
@aeischeid
aeischeid / ErrorController.groovy
Last active May 28, 2019 16:08
Alternate grails controller template and url mapping for adding a scaffolded JSON API
package gvl
import grails.converters.JSON
class ErrorController {
// Forbidden
def error403() {
withFormat {
html { render(view: 'error403') }