Date Created: {{date}}, {{time}} Tags:
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
################################################################################ | |
# OhMyZsh configuration | |
################################################################################ | |
# Path to your Oh My Zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ |
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
{ | |
"Ansi 7 Color (Light)" : { | |
"Red Component" : 0.7810397744178772, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0.78104829788208008, | |
"Alpha Component" : 1, | |
"Green Component" : 0.78105825185775757 | |
}, | |
"Ansi 15 Color (Light)" : { | |
"Red Component" : 0.99999600648880005, |
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
#──────────────────────────────────────────────────────────────── | |
#──── [0] Terminal & Colors | |
#──────────────────────────────────────────────────────────────── | |
# Advertise a 256-color terminal (uncomment if needed). | |
# Many modern setups prefer "tmux-256color" in terminfo. | |
# set -g default-terminal "screen-256color" | |
# set -g default-terminal "tmux-256color" | |
# Enable truecolor (24-bit) in xterm-like terminals. | |
# (Appends to existing overrides rather than replacing them.) |
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
" | |
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell: | |
" | |
" Basics { | |
set nocompatible " always first...no Vi mode! | |
filetype off | |
" } | |
" Infect with Vundle (Plugin command) { |
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain /Library/Keychains/System.keychain > /tmp/nscacert_combined.pem
&& sudo cp /tmp/nscacert_combined.pem /Library/Application\ Support/Netskope/STAgent/data/
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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+q", | |
"command": "editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.peekDefinition", |
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
begin; | |
select mxact_create(:scale); | |
-- select mxact_create_and_select(:scale); | |
commit; |
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
CREATE OR REPLACE FUNCTION mxact_create(SCALE integer) RETURNS void AS $body$ | |
declare | |
default_rows_per_scale integer := 100000; | |
gap integer := 3000; | |
range integer := 100; | |
create_base_id integer; | |
segment_id integer; | |
begin | |
-- Generate a random number to use as a segment to offset concurrent connections from hitting the same exact range of ids | |
select (trunc(extract(millisecond from current_timestamp) * default_rows_per_scale, 0) % (100000 * scale)) into create_base_id; |
NewerOlder