Skip to content

Instantly share code, notes, and snippets.

Windows 8 Pro Only Offline Activation RETAIL Keys [Retail Edition Only]:
slmgr.vbs -ipk 4NX96-C2K6G-XFD2G-9X4P9-4JMQH
slmgr.vbs -ipk 4NY9C-Q2VW8-84VH3-YPMDY-FF9T7
slmgr.vbs -ipk 9FN3V-HDGGV-7F8K6-FVT9H-QPBQH
slmgr.vbs -ipk BKBGN-M2HWH-3MRQ6-WTJ9X-KP73H
slmgr.vbs -ipk BP4FX-DNGD9-P3FMR-PYR6Q-T6JXV
slmgr.vbs -ipk C37NF-QYM6Y-BVFCR-WMXGV-QPBQH
slmgr.vbs -ipk 3NM39-QTK29-YGY3C-TJ2BJ-K2BQH
slmgr.vbs -ipk 8B3N2-GWPXP-3VFP2-VX69Q-QRPKV
@vilkoz
vilkoz / setup_http_server_on_android_with_termux.md
Last active May 7, 2024 04:34
setup http server on android with termux

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@g-l-i-t-c-h-o-r-s-e
g-l-i-t-c-h-o-r-s-e / flip_glb.py
Last active May 7, 2024 04:32
Batch rotate glb with Blender 3.4 and Python
"C:\Program Files\Blender Foundation\Blender 3.4\blender.exe" --background --python flip_glb.py
import os
import bpy
from math import pi
# put the location to the folder where the glb are located here in this fashion
path_to_obj_dir = os.path.join('C:\\', 'Users\\Username\\Documents\\File_Folder\\')
# get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))
@ahoho
ahoho / prompt_alpaca_lora.py
Last active May 7, 2024 04:28
Create a huggingface pipeline with a lora-trained alpaca
from typing import Optional, Any
import torch
from transformers.utils import is_accelerate_available, is_bitsandbytes_available
from transformers import (
AutoTokenizer,
AutoModelForCausalLM,
GenerationConfig,
pipeline,
@sindresorhus
sindresorhus / esm-package.md
Last active May 7, 2024 04:27
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@csukuangfj
csukuangfj / default-linker-script.txt
Last active May 7, 2024 04:19
This file shows the default linker script of `ld`, use `ld --verbose` to show it.
GNU ld (GNU Binutils for Ubuntu) 2.25.1
Supported emulations:
elf_x86_64
elf32_x86_64
elf_i386
i386linux
elf_l1om
elf_k1om
i386pep
i386pe
@fhferreira
fhferreira / nginx-proxy.conf
Created August 16, 2019 02:52
Proxy nginx to use Google Tag Manager
# Google Analytics Bypassing Adblockers
## Client
change www.googletagmanager.com => your.domain.com
```
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://your.domain.com/gtag/js?id=UA-123456789-1"></script>
```
@frolleks
frolleks / DECOMPILING_AN_ELECTRON_APP.md
Last active May 7, 2024 04:18
How to decompile an Electron app

Let me tell you how easy it is to decompile an Electron app (that's closed source).

Prerequisites

Decompilation

First of all, you find the install path of your Electron app. If you found it, find the resources folder. If you found it, you'll have to install asar globally, by running:

@Meshiest
Meshiest / godot multiplayer.md
Last active May 7, 2024 04:17
overview of how I understand godot multiplayer

Godot 4 Scene Multiplayer

I'm too lazy to write this as official documentation so I'm transcribing my experiences here for reference.

This is high level and does not cover how to setup your peer, only how to use the API itself.

This is not a tutorial.

If you are just getting started, this tutorial by DevLogLogan is worth watching.

# This supports merging as many adapters as you want.
# python merge_adapters.py --base_model_name_or_path <base_model> --peft_model_paths <adapter1> <adapter2> <adapter3> --output_dir <merged_model>
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
import os
import argparse