Skip to content

Instantly share code, notes, and snippets.

View un33k's full-sized avatar
🎯
Focusing

Val N. un33k

🎯
Focusing
View GitHub Profile
@un33k
un33k / spleeter.md
Created January 7, 2022 19:32 — forked from dungsaga/spleeter.md
Voice removal AKA karaoke creator
$('#coverinner').on(
{
'focus': function(event) {
$(this).autocomplete({
minLength: 3,
source: function(req, res){
$.ajax({
url: 'https://maps.googleapis.com/maps/api/place/autocomplete/json',
data: {
input: req.term,
@un33k
un33k / pistats.sh
Last active April 2, 2021 18:36
Raspberry Pi Status
#!/usr/bin/env bash
# AvidCaster.net
# #############################################################
# sysstat must be installed (e.g. sudo apt-get install sysstat)
echo "$(date) @ $(hostname)"
echo "-------------------------------------------"
while true
do
TEMP=$(vcgencmd measure_temp);
@un33k
un33k / patch-edid.md
Created February 2, 2021 19:07 — forked from ejdyksen/patch-edid.md
A script to fix EDID problems on external monitors in macOS

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):

@un33k
un33k / angular-cli-node-js-typescript-support.csv
Created December 11, 2020 15:51 — forked from LayZeeDK/angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI, Angular, Node.js and TypeScript compatibility.
Angular CLI version Angular version Node.js version TypeScript version
- 2.x 6.0.x or later minor version 2.0.x
1.0.6 4.x 6.9.x or later minor version 2.2.x
1.1.3 4.x 6.9.x or later minor version 2.3.x
1.2.7 4.x 6.9.x or later minor version 2.3.x
1.3.2 4.2.x or later minor version 6.9.x or later minor version 2.4.x
1.4.10 4.2.x or later minor version 6.9.x/8.9.x or later minor version 2.4.x
(1.5.6) 5.0.x 6.9.x/8.9.x or later minor version 2.4.x
1.5.6 5.1.x 6.9.x/8.9.x or later minor version 2.5.x
1.6.7 5.2.x or later minor version 6.9.x/8.9.x or later minor version 2.5.x
@un33k
un33k / SassMeister-input.scss
Created April 4, 2018 01:57 — forked from lazabogdan/SassMeister-input.scss
Sass spacing utility
// ----
// libsass (v3.3.2)
// ----
$spacer: 1rem;
$spacer-x: $spacer;
$spacer-y: $spacer;
$spacers: ();
@un33k
un33k / walksync.js
Created March 7, 2018 22:55 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@un33k
un33k / simple_args_parsing.sh
Created March 5, 2018 20:52 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
/*
* Convert A String to Base64 String or Vice-Versa
*/
declare const android: any;
declare const java: any;
declare const NSData: any;
declare const NSUTF8StringEncoding: any;
declare const NSString: any;
@un33k
un33k / psql-with-gzip-cheatsheet.sh
Created October 5, 2017 14:13 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
# This is just a cheat sheet:
# On production
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz
# On local
scp -C production:~/database.sql.gz
dropdb database && createdb database
gunzip < database.sql.gz | psql database