Skip to content

Instantly share code, notes, and snippets.

View OzakIOne's full-sized avatar
🏠
Working from home

ozaki OzakIOne

🏠
Working from home
View GitHub Profile
@khalidx
khalidx / node-typescript-esm.md
Last active April 22, 2024 15:40
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@hyperupcall
hyperupcall / settings.jsonc
Last active May 3, 2024 12:52
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@rain-1
rain-1 / llama-home.md
Last active April 28, 2024 18:42
How to run Llama 13B with a 6GB graphics card

This worked on 14/May/23. The instructions will probably require updating in the future.

llama is a text prediction model similar to GPT-2, and the version of GPT-3 that has not been fine tuned yet. It is also possible to run fine tuned versions (like alpaca or vicuna with this. I think. Those versions are more focused on answering questions)

Note: I have been told that this does not support multiple GPUs. It can only use a single GPU.

It is possible to run LLama 13B with a 6GB graphics card now! (e.g. a RTX 2060). Thanks to the amazing work involved in llama.cpp. The latest change is CUDA/cuBLAS which allows you pick an arbitrary number of the transformer layers to be run on the GPU. This is perfect for low VRAM.

  • Clone llama.cpp from git, I am on commit 08737ef720f0510c7ec2aa84d7f70c691073c35d.
@colemickens
colemickens / amiibo-emulation-with-linux-vm.md
Last active March 23, 2024 03:37
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@StephanTLavavej
StephanTLavavej / programming.md
Last active January 16, 2024 16:10
How and Why to Become a Programmer

How and Why to Become a Programmer

Audience

If you're starting your career (especially if you're in high school or college), or if you're thinking about changing your career, this is meant for you. (It's also possible to learn programming as a hobby, or as a complementary skill for a day job in a different field.)

Author

# Fortement inspiré de cet article: http://rabexc.org/posts/docker-networking
# Tester les performances réseaux de ses conteneurs docker
# avec docker-proxy
docker run -it --rm --name=iperf3-server -p 10000:5201 networkstatic/iperf3 -s
docker inspect --format "{{ .NetworkSettings.IPAddress }}" iperf3-server
iperf3 -c 172.17.0.2 ⇒ 37gbs
iperf3 -c localhost -p 10000
# désactiver docker-proxy
vi /etc/docker/daemon.json
void inject_trusts(int pathc, const char *paths[])
{
printf("[+] injecting into trust cache...\n");
extern uint64_t g_kern_base;
static uint64_t tc = 0;
if (tc == 0) {
/* loaded_trust_caches
iPhone11,2-4-6: 0xFFFFFFF008F702C8
@mskian
mskian / termux-style.md
Last active May 4, 2020 09:12
Steps to Customize the Termux Terminal Emulator
  • Update the packages
pkg up
  • Install curl
pkg install curl
@mskian
mskian / install.sh
Created October 2, 2018 07:53
Customize Termux Terminal Emulator
#!/data/data/com.termux/files/usr/bin/bash
termux-setup-storage
pkg up
pkg install -y git zsh
git clone https://github.com/Cabbagec/termux-ohmyzsh.git "$HOME/termux-ohmyzsh" --depth 1
mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%Y.%m.%d-%H:%M:%S)"
cp -R "$HOME/termux-ohmyzsh/.termux" "$HOME/.termux"
@mskian
mskian / youtube-dl.sh
Last active January 6, 2021 14:03
Bash Shell Script - youtube-dl Downloader for Termux Terminal Emulator
#!/bin/bash
# -----------------------------------------------------------------------------
# Info:
# author: Santhosh veer
# file: youtube-dl.sh
# created: 18.09.2018
# revision: 18.09.2018
# version: 0.3
# -----------------------------------------------------------------------------