Skip to content

Instantly share code, notes, and snippets.

i=0;eval( source= %w?"zl ib,bas e64,securerand om".split( ', ').eac
h{|x|require(x)};data=Zlib.inflate (Base64.urls afe_decode64(sou rce.split("#")[4+i ])).unpack("C* ").flat_ma p{|x|[x/8,x/
8,x%8,x%8]};palette=[0x48b0d5,0x8d cee5,0xffffff,0x3a90 ad,0xe0c3b8,0xef d5c6,0].map{|x|[x> >16,(x>>8)&0xff, x&0xff]};all_source=('i='+((i+1)%2
).to_s+';eval(source=%w'+63.chr+source +63.chr+".join)");ch ars=al l_sour ce.chars;width=46; height=24;missin g=width*2*height-chars.size;chars+
=["^"]*missing;c hars=c hars.e ach_slice( width* 2).fla t_map{ _1.join.gs ub(/\x5e{2,}/) {|x|"#"+Se cureRandom.urlsafe_base6
4(x.size-1)[0,x. size-1 ]}.cha rs};pu ts(cha rs .zip(dat a).map{| l,c|"\e[ 48
;2;#{palette[c].join (";")}m" +l}.
@nsyntych
nsyntych / tidal_login.py
Created October 21, 2024 22:41
Login to tidal API using PKCE and update strawberry player settings to support Hi-Res Lossless playback
#!/usr/bin/python3
import tidalapi
import json
from pathlib import Path
from configparser import ConfigParser
strawberry_conf_file_path = str(Path.home()) + "/.config/strawberry/strawberry.conf"
strawberry_conf_file = ConfigParser()
@Kindrat
Kindrat / guide.md
Last active January 1, 2025 04:06
Liquid feedback Installation Guide

Tested requirements:

  • Ubuntu 14.04 LTS amd64
  • PostgreSQL 9.3.4
  • lf-core 3.0.1
  • webmcp 1.2.5
  • rocketwiki-lqfb 0.4
  • lf-frontend 2.2.5
  • lighttpd 1.4.33-1+nmu2ubuntu2

Add postgresql repository (check distro version). Create /etc/apt/sources.list.d/pgdg.list. Add there deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

@bbendick
bbendick / YearCompass.md
Created December 18, 2023 00:34
YearCompass

README

This is a markdown version of the wonderful YearCompass booklet.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.

Welcome

What is this?

It's a YearCompass--your very own YearCompass, to be exact.

It is a booklet that helps you reflect on the past year and plan the next one. With a set of carefully selected questions and exercises, YearCompass helps you uncover your patterns and design a great year for yourself.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
你长的怪像人殊不知是只人面犬
你的脸有碍观瞻
当初惊艳,完完全全,只为世面见得少。
嫉妒是一种不好的情感,我理解你嫉妒我有家人,可你这么说有点过分了
你自拍一张就是你的全家福
远看是美景,近看想报警
你在无中生有 你在暗度陈仓 你在凭空想象 你在凭空捏造 你在无言无语 你在无可救药 你是逝者安息 你是一路走好 你是傻子巴拉 你是永无止境 你是没钱买药 你是头脑有病 你是眼里有泡 你是嘴里刘能 你是污言秽语 你是咎由自取 你是殃及无辜 你是祸害众生 你是仓皇失措 你是暗度陈仓 你是无可救药
胖姑娘袭花衫,花都胖起来。
即使是做咸鱼,也要做最咸的那一条。
@josephbk117
josephbk117 / TriPlanarTerrain.shader
Last active January 1, 2025 03:45
Tri-Planar Unity Terrain Shader
/*Please do support www.bitshiftprogrammer.com by joining the facebook page : fb.com/BitshiftProgrammer
Legal Stuff:
This code is free to use no restrictions but attribution would be appreciated.
Any damage caused either partly or completly due to usage this stuff is not my responsibility*/
Shader "BitshiftProgrammer/TriPlanarTerrain"
{
Properties {
_TransitionFalloff ("Transition Falloff", Range(0.01, 10.0)) = 4.0
[HideInInspector] _Control ("Control (RGBA)", 2D) = "red" {}
[HideInInspector] _Splat3 ("Layer 3 (A)", 2D) = "white" {}

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@chrisrink10
chrisrink10 / config_vlans
Created August 22, 2023 23:51
3 VLAN Configuration for ASUS RT-AX88U with Merlin
#!/bin/sh
# Create VLANs to match the configuration on the FreshTomato router cj-router-3200
#
# Adapted from the following sources:
# - https://virtualize.link/asus-vlans/
# - https://gist.github.com/Jimmy-Z/6120988090b9696c420385e7e42c64c4
# - https://www.snbforums.com/threads/vlans-trunk-interface-tagged-and-untagged-traffic-rt-ax86u-and-rt-ax88u.78411/#post-846773
# - https://www.snbforums.com/threads/rt-86u-vlanctl-ethctl-usage-puzzle.54375/
@isaqueprofeta
isaqueprofeta / siem_training.md
Last active January 1, 2025 03:27
SIEM Training