Skip to content

Instantly share code, notes, and snippets.

View CelluloidRacer2's full-sized avatar

CelluloidRacer2

View GitHub Profile
@usrbinkat
usrbinkat / 00-README.md
Last active November 7, 2025 09:17
Ubiquiti Unifi Access Point Network Application Controller on Kubernetes

K8s UniFi Network Application Deployment

NOTICE: under active development, currently facing pvc permissions issues

Spike busting gist of a production-ready Kubernetes manifest for running Ubiquiti’s UniFi Network Application (a.k.a. UniFi Controller) backed by a MongoDB database. All data is persisted in PersistentVolumeClaims (PVCs), and both containers ultimately run as non-root for better security.


Overview

@christopher-dG
christopher-dG / youtube-channel-backup.py
Created January 9, 2019 09:36
Downloads YouTube channel metadata (video data, comments, playlists)
#!/usr/bin/env python3
# Dependencies:
# - Python >= 3.6
# - google-api-python-client
# - requests
from argparse import ArgumentParser
from base64 import b64encode

Livestreaming via PS4 / Xbox to a local RTMP server

Live stream from your PS4 / Xbox to a local computer running an RTMP server by intercepting the twitch.tv stream.

Requirements

  • DD-WRT enabled Router (or router with iptables compatibility)
  • nix Envirment
  • nginx with the nginx-rtmp-module
@copygirl
copygirl / cord.ls
Created October 27, 2015 00:42
Fiddled-together IRC - Discord bridge bot
# Fiddled-together IRC - Discord bridge bot
# Currently set up to relay messages to channels of the same name.
# Discord APIs are very likely to change, and so this will probably break.
require! {
irc # npm install node-irc
"discord.js": Discord # npm install discord.js
"prelude-ls": { find } # npm install prelude-ls
"./auth" # Configuration goes in auth.json file
# auth.irc contains IRC information, see clientIrc
@loic-moriame
loic-moriame / index.js
Created July 24, 2015 09:23
node.js + sequelize + sqlite
'use strict';
var Sequelize = require('sequelize');
var sequelize = new Sequelize('mainDB', null, null, {
dialect: "sqlite",
storage: './test.sqlite',
});
sequelize
@rafaelbiriba
rafaelbiriba / install_ffmpeg_libfdkaac.sh
Last active September 28, 2025 02:03
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
package com.snapchat.android.util;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class AESEncrypt
{
public static String ENCRYPT_KEY = "1234567891123456";
public static String ENCRYPT_KEY_2 = "M02cnQ51Ji97vwT4";