Skip to content

Instantly share code, notes, and snippets.

@rw3iss
rw3iss / set_keyboard_repeat_rate.reg
Last active March 11, 2024 10:59
Set keyboard repeat rate
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response]
"Last BounceKey Setting"=dword:00000000
"Last Valid Delay"=dword:00000000
"Last Valid Repeat"=dword:00000000
"Last Valid Wait"=dword:000003e8
"AutoRepeatDelay"="120"
"AutoRepeatRate"="2"
"BounceTime"="5"
"DelayBeforeAcceptance"="2"
"Flags"="27"
@rw3iss
rw3iss / vite.config.ts
Created November 16, 2023 17:27
vite config
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { libInjectCss } from 'vite-plugin-lib-inject-css';
//import reactJsx from 'vite-react-jsx';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
@rw3iss
rw3iss / nginx-sites.conf
Last active July 27, 2023 20:45
nginx multi-site config
server {
listen 80;
listen [::]:80;
server_name tier33.ryanweiss.net;
root /web/tier33/build;
index index.html;
location / {
try_files $uri $uri/ /index.html?&args;
@rw3iss
rw3iss / rw3iss.zsh-theme
Created November 22, 2022 06:03
rw3iss.zsh-theme
PROMPT='%{$fg_bold[green]%}%{$fg[cyan]%}%d %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
RPROMPT='$(git_prompt_status)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✈"
on run {input, parameters}
-- # Screen Shot to Clipboard and File
-- # Clear the clipboard so the 'repeat until isReady ...' loop works properly.
set the clipboard to ""
-- # Copy picture of selected area to the clipboard, press: ⌃⇧⌘4
-- # Note that on my system I need to keystroke '$' instead of '4'.
@rw3iss
rw3iss / .bash_aliases
Last active October 24, 2022 06:08
.profile
source ~/.profile/.bash_aliases
@rw3iss
rw3iss / new_workspace_defaults.json
Last active October 23, 2022 01:10
new_workspace_defaults.json
{
"folders": [
{
"name": "docs",
"path": "_docs"
},
{
"name": "api",
"path": "api"
},
@rw3iss
rw3iss / sftp.config
Last active October 16, 2022 17:32
sftp.config
{
"name": "ryanweiss.net",
"host": "144.202.51.193",
"protocol": "sftp",
"port": 22,
"username": "rw3iss",
"password": "",
"remotePath": "/home/rw3iss/_sync/Notes",
"uploadOnSave": true,
"useTempFile": false,
@rw3iss
rw3iss / .aliases
Last active July 13, 2024 07:49
.aliases
#alias reload="source ~/.bashrc";
alias reload="exec zsh -l"
alias aliases="cd ~/.profile && code . && cd -"
#alias alias=aliases
# Path shortcuts:
alias .='cd ~'
alias h='cd ~'
alias ~='cd ~'
alias ..='cd ..'
@rw3iss
rw3iss / keybindings.json
Last active October 24, 2023 02:12
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+ctrl+t",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"langId": "javascript",
"name": "Wrap in try/catch"
}