Skip to content

Instantly share code, notes, and snippets.

@samelie
samelie / main.ts
Created February 26, 2024 05:41
browser code
1. Deploy to Cloudflare workers
2. Proxy ytdl-core thru the proxy

Project Contour, grpc-web, GKE, cert-manager, tanka

The goal is to get a project off the ground from just a simple domain to an application running a g RPC server accessible via grpc-web on GKE.

Clone the repository so you have access to each individual yaml file. https://github.com/projectcontour/contour/blob/9c14f3d4a7/examples/contour/README.md

There is only one line to add to make this work on GKE.

Copy the files /examples/contour to a new directory eg :my-dir

@samelie
samelie / rclone_tips.md
Last active December 6, 2019 21:17
using rclone

filtering

rclone copy --exclude='*' --include "*Ch4.*" ~/Downloads itxy:pharo

rclone mount itxy: ~/Documents/gcfs/

@samelie
samelie / yt-ffmpeg
Created October 12, 2019 23:02
ffmpeg concat youtube-dl playlist
# Concat from youtube playlist
## create concat file
`youtube-dl -g -f 22 https://www.youtube.com/playlist\?list\=PLuTh1a1eg5vbXH5Ndg2819Fim-kQb4C32 | sed 's/^/file /' >> c.txt`
*Couldnt figure out how to add single-quotes around the urls *
## concat
@samelie
samelie / usenet.md
Last active September 19, 2019 16:09
rsync ssh + 7z + par2

Prepare files for usenet on a remote server. (dont waste your CPU!)

Upload all the files matching a pattern (Wake*). This assumes ssh config

IdentityFile <PRIVATE_KEY>
HostName <SERVER_IP>
User root
ServerAliveInterval 60
ServerAliveCountMax 2
@samelie
samelie / youtube-dl.md
Created July 23, 2019 03:30
youtube-dl private videos
@samelie
samelie / megatools_macos.md
Last active July 4, 2019 20:29
Use http://megatools.megous.com to download megafiles -- macOS

Brew

brew install megatools

Compile from source

This was needed because some support for encrytped folders was missing.
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
sudo apt-get -y install libtool build-essential autoconf checkinstall git libgpac-dev libomxil-bellagio-dev libssl-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev xvfb nasm gcc yasm libglfw3-dev git-core wicd-curses libffi-dev
# install ffmpeg
cd ~
// Paladin config file
/* Brief instructions:
* Notepad++ is HIGHLY recommended to use for editing these files. Visit http://notepad-plus-plus.org/
* To comment out something, put // in front of that line
* !!!Never comment out something you're not sure about, set it to false or disable as noted in description if you don't want to use it.
* true and false are case sensitive. Good: Config.SomeVar = true; Bad: Config.SomeVar = True;
*/
function LoadConfig() {