This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family = BerkeleyMono Nerd Font | |
#font-family = Iosevka Nerd Font | |
# font-family = SFMono Nerd Font | |
font-size = 20 | |
theme = GruvboxDarkHard | |
shell-integration-features = no-cursor,sudo,no-title | |
cursor-style = block | |
adjust-cell-height = 35% | |
# background-opacity = 0.96 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import traceback | |
import openai | |
import sys | |
# list models | |
models = openai.Model.list() | |
def baka(error, character="tsundere",): | |
exc_type, exc_value, exc_traceback = sys.exc_info() | |
traceback_list = traceback.extract_tb(exc_traceback) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; phabricator.el --- Phabricator/Arcanist helpers for Emacs. | |
;; Author: Andrew Tulloch | |
;; URL: https://github.com/ajtulloch/phabricator.el | |
;; Version: 0.1 | |
;; Created: 2014-09-11 | |
;; Keywords: phabricator, arcanist, diffusion | |
;; Package-Requires: ((emacs "24.1") (ido "0.1") (projectile "0.1") (dash "0.1")) | |
;; This file is NOT part of GNU Emacs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[string]$NewWorkDir = $( Read-Host 'New work dir' ), | |
[string]$Branch = $( Read-Host 'Branch' ) | |
) | |
$gitDir = git rev-parse --git-dir | |
if (!$gitDir) { | |
exit 128 | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |