Skip to content

Instantly share code, notes, and snippets.

@rsms
rsms / macos-distribution.md
Last active May 14, 2024 07:57
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@sarthakpranesh
sarthakpranesh / cleanMacVMs.sh
Last active May 14, 2024 07:57
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
@gabrielfalcao
gabrielfalcao / hexspeak
Created July 28, 2016 04:23 — forked from dannyow/hexspeak
Hexspeak word list
00D1E5
0111E
0115
011ED
011F1E1D
011F1E1D5
015E
01AF
01D1E
@rodrigoborgesdeoliveira
rodrigoborgesdeoliveira / ActiveYouTubeURLFormats.txt
Last active May 14, 2024 07:50 — forked from ScottCooper92/gist:ea11b690ba4b1278e049
Example of the YouTube videos URL formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://youtube.com/watch?v=-wtIMTCHWuI
http://m.youtube.com/watch?v=-wtIMTCHWuI
https://www.youtube.com/watch?v=lalOy8Mbfdc
https://youtube.com/watch?v=lalOy8Mbfdc
https://m.youtube.com/watch?v=lalOy8Mbfdc
http://www.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://m.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active May 14, 2024 07:49
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@ctlllll
ctlllll / longest_chinese_tokens_gpt4o.py
Created May 13, 2024 19:53
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
@silver-xu
silver-xu / ts-boilerplate.md
Last active May 14, 2024 07:49
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@smarr
smarr / truffle-material.md
Last active May 14, 2024 07:48
Truffle: Languages and Material
@alexlipa91
alexlipa91 / Server.scala
Created November 16, 2019 01:48
multi-client chat with java sockets
import java.io.PrintWriter
import java.net.{ServerSocket, Socket}
import scala.concurrent.Future
import java.io.BufferedReader
import java.io.InputStreamReader
import scala.collection.mutable
class Server(port: Int) {