Skip to content

Instantly share code, notes, and snippets.

@brytay82
brytay82 / animals.js
Created December 19, 2021 16:28 — forked from codecademydev/animals.js
Codecademy export
export const animals = {
dolphin: {
image: '/images/dolphin.jpg',
facts: ['Dolphins have been shown to give distinct names to each other!', 'Dolphins are known to display their own culture!', 'Dolphins have two stomachs!']
},
lobster: {
image: '/images/lobster.jpg',
facts: ['Lobsters taste with their legs!', 'Lobsters chew with their stomachs!', 'Lobsters can live as long as 100 years.']
},
starfish: {
@CocoaCaa
CocoaCaa / vscode-sawaratsuki-logo.css
Created April 27, 2024 15:50
Visual Studio Code with @sawaratsuki1004's custom logo
.editor-group-watermark {
max-width: 400px !important;
}
.editor-group-watermark > .letterpress {
aspect-ratio: 1920/1080 !important;
background-image:url('https://github.com/SAWARATSUKI/ServiceLogos/blob/c2cf29211b93efe48e5c34451bac5c56f979ab94/VisualStudioCode/VisualStudioCodeRound.png?raw=true') !important;
background-position: center;
}
@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