Skip to content

Instantly share code, notes, and snippets.

@devlzcode
devlzcode / descsum.ts
Created May 13, 2023 21:05
javascript descriptor checksum
const INPUT_CHARSET: string =
"0123456789()[],'/*abcdefgh@:$%{}IJKLMNOPQRSTUVWXYZ&+-.;<=>?!^_|~ijklmnopqrstuvwxyzABCDEFGH`#\"\\ ";
const CHECKSUM_CHARSET: string = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
const GENERATOR = [
0xf5dee51989n,
0xa9fdca3312n,
0x1bab10e32dn,
0x3706b1677an,
0x644d626ffdn,
];
@Tamal
Tamal / git-ssh-error-fix.sh
Last active May 7, 2024 20:23
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@devlzcode
devlzcode / create_mongodb_replica_set
Last active May 7, 2024 20:22
MongoDB Docker Single Node Replica Set
#!/bin/bash
CONTAINER_IMAGE=arm64v8/mongo:latest
CONTAINER_NAME=mongo_rs
CONTAINER_PORT=27021
set -e
docker run --name $CONTAINER_NAME -p $CONTAINER_PORT:$CONTAINER_PORT -d $CONTAINER_IMAGE --port $CONTAINER_PORT --replSet rs0 --bind_ip_all
@apnsngr
apnsngr / alu.xml
Created January 24, 2017 00:52
ALU Draw.io shape
<mxlibrary>[{"xml":"jVPbrqIwFP0akpmHMykFER89KBdBAVFA34pUQEGQVi5+/RRx5mQeTjJpmqy9VvfubrvKCUrRaTWq0nUZ45wTlpyg1GVJR1R0Cs5zDoIs5oQFByFgk4PqNyr/UkGFanyj/5MAx4QG5Q88MiNBaJ+/CZKiaoCE4tspy3/QY7i9lEa7XAasbnXn4GfkEucutRHv9HfbgxvqxY0vRDOh1BQCDGCsDO96mha6EfEL5URp75HE9MAKTuZg511UW5KaHaQPs89OFi+Jy7BtWq8JtBAq92cm5pm6V/ZIDAo/cmu2bVucqwwjzXfLi9snkZmIYmulW0lCrB+douHIUFX4gy8TBpLW2m42NIwluXeiuXonV+9mRE6NZxP7KJla4yFrunFl3t5uVuTRLRPS9SwRy7YOIgbQ2j778d6G5WIur2I1t6T5gc4O67B+YLK6hc9g2DFlsyhRe/OJOcMKa2botkPOhJiBAVRHC9a7xm662f0JHCYfd2f7Sc5Tl60jFiNU34qQbrZ6cnX05LEoAiI3Jxf6IRPtjbGPfnLCZ5tmFHsVOg1P0zL/MC6lBTPQgmfw/ay4prj71hov6u0LDZcFpjU7MngnfEx+SbIoiLwsS0BmA+IPXhyrtFlM03GZMBoMpDhL0ndh6c0hMsbJ3+JfVhzuaXTjn/DL9S/tn0/xGw==","w":30,"h":60,"aspect":"fixed"}]</mxlibrary>
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 7, 2024 20:20
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus

A Quick Guide to Big-O Notation, Memoization, Tabulation, and Sorting Algorithms by Example

Curating Complexity: A Guide to Big-O Notation


A Quick Guide to Big-O Notation, Memoization, Tabulation, and Sorting Algorithms by Example

Curating Complexity: A Guide to Big-O Notation

@karthik101
karthik101 / Creating admin user in kubernetes dashboard.md
Last active May 7, 2024 20:19
Creating admin user in kubernetes dashboard

In this guide, we will find out how to create a new user using Service Account mechanism of Kubernetes, grant this user admin permissions and log in to Dashboard using bearer token tied to this user.

Create Service Account

We are creating Service Account with name my-admin-user in namespace kube-system first.

kubectl create serviceaccount my-admin-user -n kube-system
kubectl get sa
@lopspower
lopspower / README.md
Last active May 7, 2024 20:19
All Android Directory Path

All Android Directory Path

Twitter

1) System directories

⚠️ We can't write to these folers

Method Result
@peterm790
peterm790 / GEFS_Kerchunk.ipynb
Created October 28, 2022 13:53
GEFS Kerchunk
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SunDi3yansyah
SunDi3yansyah / index.html
Created September 26, 2015 23:56
Default Index file on Apache2 {/var/www/html/index.html}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Modified from the Debian original for Ubuntu
Last updated: 2014-03-19
See: https://launchpad.net/bugs/1288690
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />