Skip to content

Commit 89aa494

Browse files
committed
update
1 parent f4a49f8 commit 89aa494

File tree

24 files changed

+748
-159
lines changed

24 files changed

+748
-159
lines changed

home/gitconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[init]
22
defaultBranch = main
33

4-
[hub]
5-
protocol = https
6-
host = code.ac.st
4+
# [hub]
5+
# protocol = https
6+
# host = code.ac.st
77

88
[github]
99
user = joshua
1010

1111
[user]
1212
name = joshua
13-
email = josh@acst.com
14-
signingkey = 3ED16A77
13+
email = jsuggs@synergipartners.com
14+
# signingkey = 3ED16A77
1515

16-
[credential]
17-
helper = /opt/boxen/bin/boxen-git-credential
16+
# [credential]
17+
# helper = /opt/boxen/bin/boxen-git-credential
1818

1919
[color]
2020
diff = auto
Submodule Spoons updated 64 files

home/raycast/641a-mount.sh

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/bin/zsh
2+
3+
# Raycast metadata
4+
# Required parameters:
5+
# @raycast.schemaVersion 1
6+
# @raycast.title Mount 641A
7+
# @raycast.mode fullOutput
8+
# @raycast.needsConfirmation true
9+
#
10+
# Optional parameters:
11+
# @raycast.icon 🔓
12+
# @raycast.packageName 641a-mount
13+
# @raycast.argument1 { "type": "password", "placeholder": "****" }mo
14+
#
15+
# Documentation:
16+
# @raycast.description Mounts the 641A volume.
17+
# @raycast.author Joshua Suggs
18+
# @raycast.authorURL https://suggs.io
19+
20+
source $HOME/.raycast/util.sh
21+
22+
# Paths
23+
ENCRYPTED_DIR="$HOME/Documents/03-resources/641A"
24+
MOUNT_POINT="$HOME/Documents/641A"
25+
26+
OP_ITEM_REF="op://Private/641A/password"
27+
28+
# Check if already mounted
29+
if mount | grep -q "on $MOUNT_POINT "; then
30+
echo "641A is already mounted at $MOUNT_POINT."
31+
exit 0
32+
fi
33+
34+
echo "Initializing..."
35+
hacking_effect 5 0.05
36+
37+
# Retrieve password from 1Password
38+
EXTPASS_CMD="op read $OP_ITEM_REF"
39+
40+
# Simulate authentication
41+
echo "Authenticating..."
42+
hacking_effect 2 0.05
43+
44+
# Mount the filesystem
45+
gocryptfs -extpass "$EXTPASS_CMD" "$ENCRYPTED_DIR" "$MOUNT_POINT" #>/dev/null 2>&1
46+
47+
# Continue the effect during mounting
48+
hacking_effect 10 0.05
49+
50+
# Confirm success
51+
if mount | grep -q "on $MOUNT_POINT "; then
52+
if command -v tag >/dev/null 2>&1; then
53+
tag -a Orange "$MOUNT_POINT"
54+
fi
55+
echo "641A mounted successfully at $MOUNT_POINT."
56+
open $MOUNT_POINT
57+
else
58+
echo "Failed to mount 641A."
59+
fi

home/raycast/641a-unmount.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/zsh
2+
3+
# Raycast metadata
4+
# Required parameters:
5+
# @raycast.schemaVersion 1
6+
# @raycast.title Unmount 641A
7+
# @raycast.mode fullOutput
8+
# @raycast.needsConfirmation true
9+
#
10+
# Optional parameters:
11+
# @raycast.icon 🔐
12+
# @raycast.packageName 641a-unmount
13+
#
14+
# Documentation:
15+
# @raycast.description Unmounts the 641A volume.
16+
# @raycast.author Joshua Suggs
17+
# @raycast.authorURL https://suggs.io
18+
19+
source $HOME/.raycast/util.sh
20+
21+
MOUNT_POINT="$HOME/Documents/641A"
22+
23+
echo "Initializing..."
24+
hacking_effect 3 0.05
25+
26+
# Check if mounted
27+
if mount | grep -q "on $MOUNT_POINT "; then
28+
echo "Unmounting..."
29+
30+
# Unmount the filesystem
31+
umount "$MOUNT_POINT"
32+
hacking_effect 5 0.05
33+
34+
# Confirm success
35+
if mount | grep -q "on $MOUNT_POINT "; then
36+
echo "Failed to unmount 641A."
37+
else
38+
if command -v tag >/dev/null 2>&1; then
39+
tag -r Orange "$MOUNT_POINT"
40+
fi
41+
echo "641A unmounted successfully from $MOUNT_POINT."
42+
fi
43+
else
44+
echo "641A is not mounted at $MOUNT_POINT."
45+
fi
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Raycast Script Command Template
4+
#
5+
# Duplicate this file and remove ".template." from the filename to get started.
6+
# See full documentation here: https://github.com/raycast/script-commands
7+
#
8+
# Required parameters:
9+
# @raycast.schemaVersion 1
10+
# @raycast.title My First Script
11+
# @raycast.mode fullOutput
12+
#
13+
# Optional parameters:
14+
# @raycast.icon 🤖
15+
# @raycast.packageName Raycast Scripts
16+
17+
echo "Hello from My First Script"

home/raycast/test-command.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Raycast Script Command Template
4+
#
5+
# Duplicate this file and remove ".template." from the filename to get started.
6+
# See full documentation here: https://github.com/raycast/script-commands
7+
#
8+
# Required parameters:
9+
# @raycast.schemaVersion 1
10+
# @raycast.title My First Script
11+
# @raycast.mode fullOutput
12+
#
13+
# Optional parameters:
14+
# @raycast.icon 🤖
15+
# @raycast.packageName Raycast Scripts
16+
17+
echo "Hello from My First Script"

home/raycast/util.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/zsh
2+
3+
export PATH="$PATH:$HOME/src/go/bin"
4+
5+
function hacking_effect() {
6+
hacking_effect2 $1 $2
7+
}
8+
9+
# Hacking effect function
10+
function hacking_effect1() {
11+
local lines=$1
12+
local delay=$2
13+
for ((i = 1; i <= lines; i++)); do
14+
random_string=$(openssl rand -hex 32)
15+
echo -e "\033[32m$random_string\033[0m"
16+
sleep $delay
17+
done
18+
}
19+
20+
function hacking_effect2() {
21+
local lines=$1 # Number of lines to display
22+
local delay=$2 # Delay between lines in seconds
23+
echo
24+
for ((i = 1; i <= lines; i++)); do
25+
random_string=$(LC_CTYPE=C tr -cd '[:graph:]' < /dev/urandom | head -c 64)
26+
echo -e "\033[32m$random_string\033[0m"
27+
sleep $delay
28+
done
29+
echo
30+
}

home/vscode/mywords.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,78 @@
1+
Acked
2+
addchannelcti
3+
agnoster
14
Antiforgery
25
appsettings
36
automapper
7+
azcore
8+
azidentity
9+
azureauth
10+
Blocklist
11+
Broadsoft
12+
BUILDTAGS
13+
callcenter
414
Ciphertext
15+
clientcredentials
16+
clientid
17+
clientsecret
518
Clientside
19+
cmdutil
20+
currentuser
621
Decryptor
22+
Errf
23+
etree
24+
fyne
25+
GOARCH
26+
gocryptfs
27+
godotenv
28+
gomail
29+
GSSAPI
30+
gsub
731
Hmac
832
HSTS
933
Iddict
34+
iface
1035
indev
1136
INDEV
37+
inet
38+
innerxml
1239
introspectionclient
40+
joshmbp
41+
jsuggs
1342
JWTs
43+
Keytab
44+
kiotahttp
1445
localdevclient
1546
localdevsecret
1647
LVGL
1748
ministryone
49+
msgraph
1850
myamplify
1951
Newtonsoft
52+
nextiva
2053
OAEP
54+
odataerrors
55+
oerr
2156
OIDC
57+
PAFXFAST
2258
PKCE
2359
PKCS
60+
powerline
2461
PSRAM
2562
readyz
63+
rprompt
64+
safeexec
65+
secretid
66+
subscriberid
67+
Suggs
68+
Synergi
69+
synergiops
70+
synergipartners
71+
tenantid
2672
Thiago
73+
tmpl
74+
trimpath
75+
unmarshals
76+
urandom
2777
Validatable
78+
wordlist

home/zshrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ plugins=(
2828
encode64
2929
# extract
3030
# flamegraph
31+
fnm
3132
fzf
3233
# gem
3334
git
@@ -45,7 +46,7 @@ plugins=(
4546
localrc
4647
# nerdfont
4748
# nodenv
48-
rbenv
49+
# rbenv
4950
# ruby
5051
# slack-night-mode
5152
# touchbar

zsh/custom/aliases.zsh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
alias zcfg="${EDITOR} ~/.zshrc"
2-
alias omz="${EDITOR} ~/.oh-my-zsh"
2+
# alias omz="${EDITOR} ~/.oh-my-zsh"
33

44
alias ll="ls -laFsh"
55
# alias k="k --no-vcs"
@@ -21,7 +21,7 @@ alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date
2121
# IP addresses
2222
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
2323
alias localip="ipconfig getifaddr en0"
24-
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
24+
# alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
2525

2626
# Flush Directory Service cache
2727
alias flush="sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
@@ -76,6 +76,7 @@ alias pumpitup="osascript -e 'set volume output volume 100'"
7676
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
7777

7878
# Reload the shell (i.e. invoke as a login shell)
79-
alias reload="exec $SHELL -l"
79+
# alias reload="exec $SHELL -l"
80+
alias reload="omz reload"
8081

8182
alias atom="code"

0 commit comments

Comments
 (0)