Skip to content

Instantly share code, notes, and snippets.

@AyaanJaved
AyaanJaved / running-processes.txt
Created April 27, 2024 06:14
Output of "adb shell ps" on a Xiaomi Phone
USER PID PPID VSZ RSS WCHAN ADDR S NAME
root 1 0 2473632 4224 0 0 S init
root 2 0 0 0 0 0 S [kthreadd]
root 4 2 0 0 0 0 I [kworker/0:0H]
root 6 2 0 0 0 0 I [mm_percpu_wq]
root 7 2 0 0 0 0 S [ksoftirqd/0]
root 8 2 0 0 0 0 I [rcu_preempt]
root 9 2 0 0 0 0 I [rcu_sched]
root 10 2 0 0 0 0 I [rcu_bh]
root 11 2 0 0 0 0 S [migration/0]
@rxaviers
rxaviers / gist:7360908
Last active May 12, 2024 06:07
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@calpt
calpt / README-OpenCLIP-to-Transformers.md
Last active May 12, 2024 06:02
Convert multilingual LAION CLIP checkpoints from OpenCLIP to Hugging Face Transformers

OpenCLIP -> HF Transformers Conversion

Setup

pip install open_clip_torch transformers

Convert

@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active May 12, 2024 06:00
QEMU-KVM Installation for Arch Linux

Arch Linux QEMU-KVM

install all necessary packages

sudo pacman -S virt-manager virt-viewer qemu qemu-arch-extra \
edk2-ovmf vde2 ebtables dnsmasq bridge-utils openbsd-netcat libguestfs

enable libvirt daemon

@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@edokeh
edokeh / index.js
Last active May 12, 2024 05:54
ไฝ›็ฅ–ไฟไฝ‘๏ผŒๆฐธๆ—  BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@cirippo
cirippo / ReadMe.md
Last active May 12, 2024 05:47
Download Google Drive protected PDF without TrustedScriptURL error at higher resolution

Easy step by step guide to download view only PDF from Google Drive - no TrustedScriptURL error and better quality


  1. Open the document in Google Docs
  2. Zoom in 2 times using Ctrl and + (VERY IMPORTANT!)
  3. Open Developer Tools
  4. Hit Ctrl + R to reload the document.
  5. Scroll to the bottom of the document to load all pages.
  6. To check if all pages are loaded, go to "Network" tab, type "img" in search bar. At the bottom bar you see "xx/yyy requests", "xx" must be equal to document's pages; if not scroll up to load missing pages
  7. Go to "Console" tab
  8. Paste the updated and improved script (download_pdf.js) that avoids TrustedScriptURL error and allows better file's quality
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@tizu69
tizu69 / GRSA.md
Last active May 12, 2024 05:46
GRSA spec (in the works)

General Railway Standards Association (GRSA) Network Specification

Until recently, the main track network was really inconsistent across the board. The GRSA is here to ensure consistency. This specification outlines the guidelines and requirements for utilizing the GRSA trains and track network. Please follow it, uwu.


To check if you're connected to the GRSA track network, either:

@ih2502mk
ih2502mk / list.md
Last active May 12, 2024 05:41
Quantopian Lectures Saved