Skip to content

Instantly share code, notes, and snippets.

<img src="https://img.shields.io/badge/-.ENV-ECD53F?style=flat&logo=dotenv&logoColor=white"/>
<img src="https://img.shields.io/badge/-.NET-512BD4?style=flat&logo=dotnet&logoColor=white"/>
<img src="https://img.shields.io/badge/-/e/-000000?style=flat&logo=e&logoColor=white"/>
<img src="https://img.shields.io/badge/-1001Tracklists-40AEF0?style=flat&logo=1001tracklists&logoColor=white"/>
<img src="https://img.shields.io/badge/-1Password-3B66BC?style=flat&logo=1password&logoColor=white"/>
<img src="https://img.shields.io/badge/-2K-DD0700?style=flat&logo=2k&logoColor=white"/>
<img src="https://img.shields.io/badge/-365 Data Science-000C1F?style=flat&logo=365datascience&logoColor=white"/>
<img src="https://img.shields.io/badge/-3M-FF0000?style=flat&logo=3m&logoColor=white"/>
<img src="https://img.shields.io/badge/-42-000000?style=flat&logo=42&logoColor=white"/>
<img src="https://img.shields.io/badge/-4chan-006600?style=flat&logo=4chan&logoColor=white"/>
@beginor
beginor / snowflake-id.sql
Last active April 18, 2024 20:13
Twitter Snowflake ID for PostgreSQL
CREATE SEQUENCE public.global_id_seq;
ALTER SEQUENCE public.global_id_seq OWNER TO postgres;
CREATE OR REPLACE FUNCTION public.id_generator()
RETURNS bigint
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE
our_epoch bigint := 1314220021721;
seq_id bigint;
@boomshadow
boomshadow / dnsmasq.conf
Last active April 18, 2024 20:11 — forked from NAR8789/dnsmasq.conf
wildcard dns for docker-compose using dnsmasq
# explicitly define host-ip mappings
# dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local
address=/myapp.local/219.219.219.125
# set the upstream resolver for people running Linux; this allows all other DNS to be resolved:
server=1.1.1.1
server=1.0.0.1
@eclipse439
eclipse439 / icd10xmltodictlist.py
Created April 18, 2024 20:05
Convert ICD10-CM Tabular List to Python Dictionary List
from lxml import etree
"""
Importing from Tabular XML List
Latest run: April 2024 version
Based on ICD-10 Tabular Document Definition ver. 2011-02-07
Data extraction excludes Introduction section.
"""
@dgitman
dgitman / twitterUnmuteAll.js
Last active April 18, 2024 20:09
Twitter Unmute All Muted Accounts
# Go To https://twitter.com/settings/muted/not_following
# Open the browser developer tools
# Paste into browser console
let autoUnblock = setInterval(function() {
window.scrollBy(0, window.innerHeight);
document.querySelectorAll('[aria-label^="Unmute"]').forEach(function(account) {
account.click()
});
}, 1000);
@kohya-ss
kohya-ss / gradio_cmdrp.py
Created April 18, 2024 13:09
llama-cpp-python と gradio で command-r-plus を動かす
# Apache License 2.0
# 使用法は gist のコメントを見てください
import argparse
from typing import List, Optional, Union, Iterator
from llama_cpp import Llama
from llama_cpp.llama_tokenizer import LlamaHFTokenizer
from llama_cpp.llama_chat_format import _convert_completion_to_chat, register_chat_completion_handler
import llama_cpp.llama_types as llama_types
@qoomon
qoomon / conventional_commit_messages.md
Last active April 18, 2024 20:00
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@smx-smx
smx-smx / XZ Backdoor Analysis
Last active April 18, 2024 20:00
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@CHSuworatrai
CHSuworatrai / VMware vSphere 6.x Licence Keys
Created April 8, 2021 09:20 — forked from DVSB/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@edsu
edsu / bagit.sh
Last active April 18, 2024 19:57
Remembering the original spirit of BagIt. https://twitter.com/justin_littman/status/778561421428793344
#!/bin/bash
#
# The simplest way to create a valid BagIt bag?
#
# Usage: bagit.sh <dir_to_bag> <bag_dir>
#
# Note: you'll need to have md5deep installed:
# brew install md5deep
# apt-get install md5deep