Skip to content

Instantly share code, notes, and snippets.

View 0x676e67's full-sized avatar

0x676e67

  • Hong Kong
  • 12:20 (UTC +08:00)
View GitHub Profile
@0x676e67
0x676e67 / crypto.py
Last active January 10, 2024 13:45
arkose_crypto
import os
import json
import base64
import hashlib
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import padding

How to Install Nvidia Drivers on Proxmox

  1. Your /etc/apt/sources.list should look like something like this:
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc] main contrib non-free

deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc]-updates main contrib non-free

# security updates
deb http://security.debian.org [bullseye, bookworm, etc]-security main contrib
@davidteren
davidteren / nerd_fonts.md
Last active November 18, 2025 05:44
Install Nerd Fonts via Homebrew [updated & fixed]
@staticgc
staticgc / conn.rs
Created January 30, 2021 06:31
Bandwidth control in hyper
use std::task::{Context, Poll};
use std::pin::Pin;
use hyper::client::{connect::{Connection, Connected}};
use tokio::net::{TcpStream};
use tokio::io::{ReadBuf, AsyncWrite, AsyncRead};
use async_speed_limit::{limiter::{Limiter, Consume}, clock::{StandardClock}};
use futures_util::future::Future;
//use anyhow::Error;
use std::io::Error;
@hdorio
hdorio / Zig-install-on-ubuntu-20.04.md
Created October 19, 2020 15:10
Installation instructions to build Zig on Ubuntu 20.04

These instructions assert a clean install of Ubuntu 20.04 with no previous LLVM or C compiler installed.

Install LLVM 11

  apt update
  apt install wget lsb-release software-properties-common
  bash -c "$(wget -O - https://apt.llvm.org/llvm.sh 11)"
  ln -s /usr/lib/llvm-11/bin/lld   /usr/bin/lld 
 ln -s /usr/lib/llvm-11/bin/clang /usr/bin/clang
@fire1ce
fire1ce / oh-my-zsh on openwrt or lede-project.md
Last active November 17, 2025 13:54
Install oh-my-zsh on openwrt/lede-project

Install oh-my-zsh on OpenWrt

Install Requirements Packages

opkg update && opkg install ca-certificates zsh curl git-http

Install oh-my-zsh

@JackDanger
JackDanger / git-remove-history.sh
Created August 19, 2010 22:06
remove large binary files from git history
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
#
# retrieved from: http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
#