Compare commits

...

163 Commits

Author SHA1 Message Date
Brad Ganley
0b945fe44f spiced up bashrc a little more 2025-12-03 01:23:42 -06:00
Brad Ganley
ac10953a7c Updated \[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u\[\033[33m\]↳\[\033[35m\]\h\[\033[;32m\])-[\[\033[44;1;33m\]\w\[\033[;32m\]]\n\[\033[31m\]⇛\[\033[33m\]⇛\[\033[93;25m\]⇛\[\033[92m\]⇛\[\033[32m\]⇛\[\033[34m\]⇛\[\033[36m\]⇛ \[\033[0m\]
Former-commit-id: 00ede29129
2025-12-02 21:45:18 -06:00
Brad Ganley
d4748e775c updated proxy
Former-commit-id: edbf3f6283
2025-12-02 20:38:31 -06:00
2e98590302 Changes, I'm sure
Former-commit-id: 7daf68fafb
2025-11-27 22:34:42 -06:00
740393a7b6 added colors because fuck you i like it
Former-commit-id: cc240f07c6
2024-07-09 18:29:58 -05:00
9d850cd9bc actually did the thing the last commit said i did
Former-commit-id: ea68950dc9
2024-07-03 15:47:32 -05:00
db06d3be2a updated proxy aliases
Former-commit-id: 821e8fbb4d
2024-07-03 15:43:14 -05:00
9854c66faf added dogs
Former-commit-id: 8c9b91199d
2024-06-24 04:53:42 +00:00
Brad Ganley
a4650da8b5 lol same thing as the last commit
Former-commit-id: c0ef1eb332
2024-05-25 20:09:59 -05:00
Brad Ganley
a23814f083 Made ytdlp not the stupidest possible version of that anymore
Former-commit-id: 381432665c
2024-05-25 20:03:52 -05:00
72c5915910 added cleanup to watchtower alias
Former-commit-id: 08c8f0f23a
2024-03-24 13:51:57 -04:00
50c23134bb Added local TZ to watchtower alias
Former-commit-id: e457ffaf22
2024-03-24 13:44:29 -04:00
Brad Ganley
0f4245cf4a Added terminal socks5 proxy commands. Future iteration will allow server setting
Former-commit-id: f8506e5b4a
2024-03-07 15:43:50 -06:00
Brad Ganley
a9a7ed7d1c Made PS1 cooler
Former-commit-id: 367e3fc605
2024-03-01 00:41:05 -06:00
Brad Ganley
1bc740f3d8 fixed the url left in the gping alias
Former-commit-id: 8539770f5e
2024-02-29 14:55:02 -06:00
Brad Ganley
602181d2fb added docker gping alias
Former-commit-id: db0503aa96
2024-02-29 14:46:28 -06:00
fcc5178245 deleted deprecated functions
Former-commit-id: b56c020c9d
2024-02-25 04:48:31 +00:00
a6c3a64fbe added yapping
Former-commit-id: 621ddac333
2024-02-25 04:46:28 +00:00
Brad Ganley
1d238ba6f4 holy fuck it finally works
Former-commit-id: ea829fbfa7
2024-02-24 23:38:57 -05:00
3dd9818157 i'm very tired of this
Former-commit-id: f15a7c68e1
2024-02-25 04:22:45 +00:00
Brad Ganley
e5fd9d7da6 wtf is this symlink error ahhhhhhhhh
Former-commit-id: 762eeb5b6d
2024-02-24 18:44:12 -05:00
bd849a1af1 god fucking damnit
Former-commit-id: 0aa4567a6a
2024-02-24 23:31:19 +00:00
0c8d66c9fe god fucking damnit
Former-commit-id: 9e87c7e514
2024-02-24 23:29:20 +00:00
b5a9b6ea51 Added readme and poorly wrote it
Former-commit-id: 5cf96c89fe
2024-02-24 23:28:41 +00:00
b652b46b7f Some cleanup
Former-commit-id: 1c996c5222
2024-02-24 23:21:10 +00:00
5bb76f38a8 Migrating functions to separate source file. Commented functions will be removed on next commit
Former-commit-id: 34f1a5451e
2024-02-24 23:17:25 +00:00
bf8ae50841 Also made the batcat alias conditional to solve headaches I've been having for 5 years
Former-commit-id: bbe0b30222
2024-02-24 00:51:34 +00:00
9c406eed62 also making it actually source the new file
Former-commit-id: ecece1433f
2024-02-24 00:45:24 +00:00
817ff73aa9 moving docker specific aliases to their own file. Will do the same with other command groupings eventually
Former-commit-id: 3e8f348302
2024-02-24 00:44:14 +00:00
92fdd3a5b1 added pop to apt package management switch
Former-commit-id: 62d571987b
2024-02-06 23:45:29 -06:00
5df49fc91e added watchonce to run a one-off watchtower scan
Former-commit-id: 123289a79b
2024-01-29 00:20:44 -06:00
3d779b703e made doctime show the actual uptime
Former-commit-id: 047c80ba7b
2024-01-28 13:53:56 -05:00
90762c351b woops
Former-commit-id: d9620ec7bf
2024-01-28 13:51:01 -05:00
1b87b59859 added doctime for container uptimes
Former-commit-id: 99e7115039
2024-01-28 13:49:24 -05:00
999cb1fc14 fixed docport
Former-commit-id: 40df316fc8
2024-01-24 19:39:10 +00:00
5af4e8c2e3 added docport
Former-commit-id: 211b43e5ce
2024-01-24 19:38:00 +00:00
529960a8c4 This will definitely break in 2079 (TODO)
Former-commit-id: 109e1a3cf4
2023-12-15 07:11:16 +00:00
42d0fc918a Added oneshot watchtower run alias
Former-commit-id: 5ddad72e69
2023-12-15 00:55:18 -06:00
87e149c6cb commented out failing tests
Former-commit-id: a9f4ac8d5d
2023-12-15 00:46:43 -06:00
19723779aa Made docker prune not require confirmation and also added more verbosity
Former-commit-id: 70f8090ec3
2023-12-12 19:39:56 -06:00
7cfd34f44d Made docker prune not require confirmation
Former-commit-id: b4b145998a
2023-12-12 19:35:06 -06:00
ea6ec61e02 added screen clear to home alias
Former-commit-id: f5f78941c4
2023-12-12 19:33:49 -06:00
77563fdffc Added watchtower zero-shot alias
Former-commit-id: bdfbd4419b
2023-12-08 18:38:06 -06:00
6d83cdd658 fixed please alias
Former-commit-id: 769d114c86
2023-11-25 15:33:48 -06:00
a952a76aad added gitgraph alias
Former-commit-id: ba234a0dad
2023-11-24 16:05:34 -06:00
7254cbc5eb added glances oneshot
Former-commit-id: 70db551648
2023-11-17 23:19:16 -06:00
129d0902d3 Adding some functions. Port list and compress files
Former-commit-id: db7a01f58e
2023-11-02 01:06:18 -05:00
fb58f31730 reverted s alias so it works
Former-commit-id: 514dd44858
2023-10-17 17:46:08 -05:00
Brad Ganley
8e63cb4282 woops. Fixed the s alias
Former-commit-id: ccd61e553d
2023-10-17 18:43:46 -04:00
2bf5c803fe Made the "s" alias better
Former-commit-id: 2950c3df5c
2023-10-17 13:43:35 -05:00
cbcce6bf79 added scr alias
Former-commit-id: da7ddfffb2
2023-08-22 18:55:04 -05:00
c8e4944691 Added cargo to path
Former-commit-id: cbd4e310e5
2023-08-05 00:23:41 -05:00
b8b7b45165 added tere function to aliases file
Former-commit-id: 79c84b3eda
2023-08-05 00:14:45 -05:00
74fafe609d mergederp
Former-commit-id: 79f0de702c
2023-07-09 18:18:29 -05:00
7d40506075 My bad
Former-commit-id: ff47473e0b
2023-06-17 19:10:11 -05:00
3f87a39d9d fix some fucking errors
Former-commit-id: 7fa5fccedf
2023-06-05 02:14:46 -05:00
e4daa45b4f added error if size not specified
Former-commit-id: 93cc71411e
2023-05-31 11:48:42 -05:00
54357fb6a7 added ramdisk alias
Former-commit-id: 3fb51b141d
2023-05-31 11:44:57 -05:00
fb4ea8de87 I should have had a V8 this morning.
Former-commit-id: 42e5a4e97a
2023-05-15 01:39:59 -05:00
51d8f1cf42 done. going to bed now.
Former-commit-id: 925dc2edb6
2023-05-10 01:33:29 -05:00
817a08c9a8 Reticulating splines...
Former-commit-id: 99b38f2872
2023-05-10 01:31:22 -05:00
7b01be2f6d f
Former-commit-id: c5f8e3a21a
2023-04-27 14:06:57 -05:00
79ae7991ae project lead is allergic to changes...
Former-commit-id: 755a02ac7a
2023-04-27 13:45:20 -05:00
3539729b13 No time to commit.. My people need me!
Former-commit-id: 97112a5757
2023-04-13 23:59:54 -05:00
3fb62b6ce6 better cd
Former-commit-id: 61de34fdb4
2023-04-08 21:33:14 -05:00
0ff6fe9d3d I guess I changed some things. Legit do not know what they were
Former-commit-id: 1ff4285cb5
2023-04-06 01:18:55 -05:00
e3d9b9aa39 ahhhh
Former-commit-id: ea5b5126b6
2023-04-02 22:47:49 -05:00
6e99a2cce0 fixed package list
Former-commit-id: f43b2a2831
2023-04-02 21:48:02 -05:00
d6d81425bf added setup script
Former-commit-id: 799387d91a
2023-04-02 21:35:17 -05:00
e3e778b1ee added arch package list. Need to remove certain ones
Former-commit-id: 9e332f7980
2023-04-02 21:28:36 -05:00
5378d16c19 Added yay check
Former-commit-id: fc1c304fdc
2023-04-01 15:11:44 -05:00
brad
f0879702f5 shit's getting crazy
Former-commit-id: 02867aa246
2023-04-01 14:19:02 -05:00
brad
93720e1faf making it so the answerfile actually functions again
Former-commit-id: f02c1cfbc7
2023-03-31 20:23:32 -05:00
brad
1793a34342 making it so the answerfile actually functions
Former-commit-id: 44305865c9
2023-03-31 20:17:44 -05:00
brad
45dfc72935 removed network config
Former-commit-id: 3276d2aea3
2023-03-31 02:18:15 -05:00
brad
7389f5b5e7 added directory for alpine configs
Former-commit-id: 5de841dda1
2023-03-31 01:51:23 -05:00
260d69b724 removed tests since i can't make them green
Former-commit-id: ce5fb472d8
2023-03-19 01:17:41 -05:00
2f373a2cdb fixe
Former-commit-id: e8d63cba72
2023-03-19 01:13:20 -05:00
8522f68d22 added /dock to cd path
Former-commit-id: 0145882277
2023-03-10 17:44:20 +00:00
ad0fa71097 added /dock to cd path
Former-commit-id: 65dda2592a
2023-03-10 17:43:31 +00:00
6163f65cd7 switched hackingtool to blackarch
Former-commit-id: f287a420c7
2023-03-05 19:47:32 -06:00
205eb6e6b6 added a basic vimrc to make it more doper
Former-commit-id: 6d8bc3ec6b
2023-03-04 02:59:05 -06:00
7f8ed550fa I am Root. We are Root.
Former-commit-id: b98177ef19
2023-02-26 05:51:31 -06:00
6cef5443bd We are each gifted in a unique and important way. It is our privilege and our adventure to discover our own special light
Former-commit-id: 16c4cc9094
2023-02-26 05:34:50 -06:00
7c7b2f0852 adding a beefier upgrade option
Former-commit-id: 5a016d14ed
2023-02-26 05:17:30 -06:00
Brad Ganley
28b79efcf4 Added countdown timer
Former-commit-id: 829579ca90
2023-02-13 02:29:06 -06:00
d2b4a8095a Added bashlocal source for computer-specific aliasing
Former-commit-id: 74f1200c25
2023-01-15 15:14:39 -06:00
86b744ff05 Added cnfrm
Former-commit-id: 7737d68812
2023-01-14 15:41:50 -06:00
17dcce852a Added cnfrm
Former-commit-id: 7f629e9b21
2023-01-14 15:38:14 -06:00
Brad Ganley
3ad4ded8f0 omfg
Former-commit-id: bf74b0e503
2023-01-13 16:32:07 -06:00
Brad Ganley
443e71e603 ugh
Former-commit-id: b6e12176a8
2023-01-13 16:30:56 -06:00
Brad Ganley
212b314d76 Made it so aliases work with sudo
Former-commit-id: 2c2479f0eb
2023-01-13 16:28:13 -06:00
0c1c2fc7b4 Check the diff
Former-commit-id: d9375106a9
2023-01-13 01:49:04 -06:00
178bdcb502 Deleting shit
Former-commit-id: dadc1433b5
2023-01-13 01:33:12 -06:00
c80de31a03 So many comments. A Lot of clean up, removing duplicates, etc etc, ad infinitum
Former-commit-id: 9d17df58dc
2023-01-13 01:16:48 -06:00
28d00242cc cleaning up a bit
Former-commit-id: f038875e1f
2023-01-13 00:57:34 -06:00
625eacbf26 Added needrs command
Former-commit-id: 855f669156
2023-01-13 00:47:07 -06:00
eff77cdd19 fuck i don't even know
Former-commit-id: 9c973380a1
2023-01-12 02:57:16 -06:00
c293574e7d ls -l to ls -hog to save screen space
Former-commit-id: 04707c30c4
2023-01-12 00:17:23 -06:00
49a223a002 added CD_PATH
Former-commit-id: a5ae3e496d
2023-01-10 13:42:30 -06:00
ff480235a3 added hackingtool
Former-commit-id: 1097d2947c
2023-01-02 12:30:53 -06:00
f519c6f0b9 added redoco to restart containers
Former-commit-id: 3fd11f6524
2022-12-05 00:05:00 -06:00
7270ad518f Added a lil speed test
Former-commit-id: 38e6172d28
2022-11-14 19:17:33 -06:00
e173c42b54 ugh
Former-commit-id: f8cc38f5f0
2022-10-10 22:07:08 -05:00
285c071bb3 Merge branch 'master' of https://git.toad.city/brad/configs
Former-commit-id: 5899239d7a
2022-10-10 22:05:40 -05:00
63001e2c46 more updates
Former-commit-id: 923933a54e
2022-10-10 22:04:44 -05:00
220f3d85a6 updates
Former-commit-id: ca14386132
2022-10-10 22:03:29 -05:00
f14e05ec6b yabs
Former-commit-id: 8f77766ed6
2022-09-19 17:56:31 -05:00
84d47fa80e ...
Former-commit-id: 665b9cc70b
2022-08-16 00:44:12 -05:00
c106ea3938 added functions
Former-commit-id: bc9f171b94
2022-08-01 13:03:26 -05:00
1aadff123d forgot nmapplet
Former-commit-id: 69f610d776
2021-12-02 00:45:04 -06:00
051cf6aa47 new i3 config
Former-commit-id: 7d25702d0d
2021-12-01 11:51:03 -06:00
02baf4aa81 fuck
Former-commit-id: e09f2cf730
2021-11-08 16:03:26 -06:00
8fa609dc5c added netdiscovery
Former-commit-id: 093e29974c
2021-11-08 15:51:49 -06:00
Brad Ganley
2d8eb8dbdc Still cleaning
Former-commit-id: cb9ce1ce59
2021-07-15 13:40:11 -05:00
Brad Ganley
7e4421744d Getting rid of things I'm not using
Former-commit-id: e70814accb
2021-07-15 13:39:49 -05:00
Brad Ganley
be0f5a9cd6 removed broken script file
Former-commit-id: 34066227cc
2021-07-15 13:38:42 -05:00
Brad Ganley
a3a1d662dd Removed aliases from rc that were duped in aliases
Former-commit-id: 956f0fe231
2021-07-15 13:35:23 -05:00
Brad Ganley
3fcea975a7 Added external ip function to bash aliases
Former-commit-id: cce09ab331
2021-07-15 12:30:37 -05:00
Brad Ganley
9b047f63a9 added ding function to ping and alert when a host comes online
Former-commit-id: 1c813a245c
2021-06-22 13:45:35 -05:00
Brad Ganley
2e1560d473 added cheat.sh
Former-commit-id: d5b7ff4dff
2021-06-02 14:53:58 -05:00
Brad Ganley
1ff0e6bcd6 added fucking sudo
Former-commit-id: 3af68cdb8f
2021-06-02 14:41:20 -05:00
Brad Ganley
480497f28d askdjfasd
Former-commit-id: 1573eb4ce9
2021-05-24 13:11:13 -05:00
Brad Ganley
599d5c3676 rtfm
Former-commit-id: 77f9458afb
2021-05-24 13:08:29 -05:00
Brad Ganley
2796038c1c batcat among other things
Former-commit-id: 048b599636
2021-05-24 13:04:53 -05:00
Brad Ganley
909c3794ea This is better
Former-commit-id: 1500a9f113
2021-05-19 02:03:21 -05:00
Brad Ganley
bdeb9a3035 fixed some shit
Former-commit-id: 6f878edfe2
2021-05-18 23:40:08 -05:00
Brad Ganley
72cce74af4 added bash_aliases
Former-commit-id: 7b65517b06
2021-05-18 13:14:51 -05:00
Brad Ganley
33303c0703 Added diffuse alias
Former-commit-id: 58ebab4af2
2020-11-16 16:33:50 -06:00
Brad Ganley
9c72eab3e2 added tmux list sessions alias
Former-commit-id: a1aeef95c8
2020-10-26 13:33:37 -05:00
Brad Ganley
52b9745f0c I guess I wasn't finished modifying things
Former-commit-id: 06c19651c0
2020-10-19 13:37:51 -05:00
Brad Ganley
1421d180e2 Periodic update for all my bullshit
Former-commit-id: e6121a2063
2020-10-09 13:23:52 -05:00
Brad Ganley
a4f8efbac6 I would have bet money that this file was already in here but, alas, here we are
Former-commit-id: bf7e602d40
2020-10-09 13:11:52 -05:00
Brad Ganley
705d2b1699 Added backup of crontab (crontab -l > file) for Arch. Intending to flesh it out over time
Former-commit-id: dbd0a31e3e
2020-10-08 13:12:28 -05:00
Brad Ganley
cab06a8658 added Rclone alias so I can stop typing so fucking much
Former-commit-id: 61100c2321
2020-09-30 13:48:53 -05:00
Brad Ganley
8623eef8ba I'm not sure what's different but evidently something changed.
Former-commit-id: feee3c0476
2020-09-30 13:16:52 -05:00
Brad Ganley
25fa84022a ugh
Former-commit-id: 75c0464459
2020-09-24 16:25:35 -05:00
Brad Ganley
eb37ce8f80 Removie termite from i3 config because fuck
Former-commit-id: 6f7fba09c7
2020-09-24 15:54:07 -05:00
Brad Ganley
8c5dba107e Fixed an issue with dmenu/rofi
Former-commit-id: 9738f5facc
2020-09-23 18:38:31 -05:00
Brad Ganley
e70562352b Handled a particular error.
Former-commit-id: f8b8d73a9f
2020-09-20 21:10:56 -05:00
Brad Ganley
792cac24ba Added exa aliases
Former-commit-id: ace195d48e
2020-09-20 20:46:36 -05:00
Brad Ganley
4e1b15ba1f Update vimrc and bash(zsh)rc
Former-commit-id: c5299b6d27
2020-09-19 18:55:50 -05:00
Brad Ganley
07110c6b50 too much bullshit
Former-commit-id: ae407bdff2
2020-09-19 18:24:45 -05:00
Brad Ganley
53171205c8 Create .gitignore
Former-commit-id: 4d233a68a2
2020-09-17 18:57:41 -05:00
Brad
cb3d642a18 I'm sorry.
Former-commit-id: f8ef62623b
2019-05-10 15:56:02 -05:00
Brad
9839f18733 fixed conflicts (LOL merge -s ours; push -f)
Former-commit-id: 594e40f661
2019-05-01 17:19:06 -05:00
Brad
99930289e3 Do things better, faster, stronger
Former-commit-id: dc30aa2f54
2019-04-25 18:07:37 -05:00
Brad
64120021e5 This is a basic implementation that works.
Former-commit-id: f422dcd8c7
2019-04-05 18:45:27 -05:00
Brad
674f822d9d Better lsa alias
Former-commit-id: da036dd7ee
2019-03-21 12:03:06 -05:00
Brad
8be5a8044f One little whitespace gets its very own commit! Oh, life is so erratic!
Former-commit-id: a504367cc3
2019-03-20 15:00:48 -05:00
Brad Ganley
6778422b0f Committing fixes in the dark, seriously, who killed my power!?
Former-commit-id: 2149d47aab
2019-03-17 01:50:06 -05:00
Brad Ganley
fb4e46010b I __ a word
Former-commit-id: 84a3080a18
2019-03-16 21:49:08 -05:00
Brad Ganley
ca0edfbb34 Merge branch 'master' of https://github.com/Bradart/configs
Former-commit-id: 45a06d4f52
2019-03-14 22:12:13 -05:00
Brad Ganley
e23892f349 fix some fucking errors
Former-commit-id: 096c097f36
2019-03-13 23:08:18 -05:00
Brad
bb85b25d00 Please no changes this time.
Former-commit-id: 681fb493f7
2019-03-13 18:43:05 -05:00
Brad Ganley
92ed861fac third time's a charm
Former-commit-id: 3dbb02f338
2019-03-13 16:17:34 -05:00
Brad Ganley
0d598e3464 move your body every every body
Former-commit-id: b521468ae5
2019-03-13 16:14:12 -05:00
Brad
3991040e04 bifurcation
Former-commit-id: 2b1eaa2c39
2019-03-13 15:58:16 -05:00
Brad
8af4587205 ID:10T Error
Former-commit-id: 4a59e1b816
2019-03-13 15:15:16 -05:00
Brad
761eb847ac Added termite and Tizonia Configs
Former-commit-id: 43f9c9d6e8
2019-03-12 16:31:24 -05:00
Brad
99cafc8471 lots of changes after a lot of time
Former-commit-id: dd53257e10
2019-03-12 15:39:11 -05:00
Brad
fec4ea2374 Continued development...
Former-commit-id: 6d977e397f
2019-03-12 15:09:48 -05:00
Brad
0f8f6ddc39 bug fix
Former-commit-id: b936d6c24f
2019-03-12 13:36:46 -05:00
16 changed files with 703 additions and 400 deletions

124
.bash_aliases Executable file
View File

@@ -0,0 +1,124 @@
# Detect distribution
if [ -f /etc/os-release ]; then
. /etc/os-release
fi
# Application management
case "$ID" in
ubuntu|debian|pop)
# Install something bypassing the prompts
alias inst='sudo apt-get install -y'
# Do a basic update
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
# Upgrade everything
alias upgrade_all='sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get --with-new-pkgs upgrade -y'
# Search packages
alias pacs='apt-cache search'
# Uninstall
alias burn='sudo apt-get autoremove'
;;
arch|archlinux)
# Check if yay is installed
if command -v yay >/dev/null 2>&1; then
# Install something bypassing the prompts
alias inst='yay -S --noconfirm'
# Do a basic update
alias update='yay -Syu --noconfirm'
# Upgrade everything
alias upgrade_all='yay -Syu --noconfirm && yay -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
# Search packages
alias pacs='yay -Ss'
# Uninstall
alias burn='yay -Rns --noconfirm'
else
# Install something bypassing the prompts
alias inst='sudo pacman -S --noconfirm'
# Do a basic update
alias update='sudo pacman -Syu --noconfirm'
# Upgrade everything
alias upgrade_all='sudo pacman -Syu --noconfirm && sudo pacman -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
# Search packages
alias pacs='pacman -Ss'
# Uninstall
alias burn='sudo pacman -Rns --noconfirm'
fi
;;
alpine)
# Install something bypassing the prompts
alias inst='sudo apk add'
# Do a basic update
alias update='sudo apk update && sudo apk upgrade'
# Upgrade everything
alias upgrade_all='sudo apk update && sudo apk upgrade && sudo apk cache clean'
# Search packages
alias pacs='apk search'
# Uninstall
alias burn='sudo apk del'
;;
*)
# Add any other distribution-specific aliases here
;;
esac
# General
# Get $HOME quick
alias ~='cd $HOME;clear'
# A Nice display of all files in a directory
alias ll='ls -hog'
# Above but...different I'm sure
alias lsa='ls -lah'
# List stuff sorted by size
alias lt='ls --human-readable --size -1 -S --classify'
# Grep command history fast-like
alias gh='history|grep'
# lol
alias please='sudo !!'
# sometimes it feels good
alias fucking='sudo'
# Install bat. It's better.
alias cat='bat'
# Source this very file
alias src='source $HOME/.bashrc'
# Big Boy edit something
alias svim='sudo vim'
# Ping but with sounds
alias ding='ping -i 5 -a'
# An extremely useful benchmark script
alias yabs='curl -sL yabs.sh | bash'
# Utilities
# A faster way to do the thing it does
alias sysres='sudo systemctl restart'
# This one too
alias sysup='sudo systemctl enable --now'
# Also this one
alias sysdn='sudo systemctl disable --now'
#opens specified command in new window in screen session
alias s='screen -X screen '
# Resume screen or create a new one named main
alias scr='screen -r || screen -S main'
# press enter to continue. Occasionally useful
alias cnfrm='read -p "Press enter to proceed" '
# A more intense ping for the professional on the go
alias pang='ping -i 10 -v -a'
# List the mounted things
alias mnts='mount | column -t'
# The history command but shorter
alias h='history'
# Misc
# Get the weather. Put your location after the command
alias wttr='ansiweather -u imperial -s false -l'
alias wtr='curl -s "https://wttr.in/?format=%l:+%c+%t+%w+%p"'
# A quick lil speedyboi
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
# If you're runnng my exact mastodon setup, this will be useful
alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
# HAHAHA Go for it. Hours of fun and profit or ruining all your stuff
alias hackingtool='docker run -it --net=host --security-opt seccomp=unconfined --privileged blackarchlinux/blackarch:latest'
# Do you need to reboot? Find out here!
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
alias gitgraph='git log --graph --oneline --decorate'
## See open ports
alias ports='netstat -tuln '
# gping
alias gping='docker run --rm -ti --network host ghcr.io/orf/gping'
alias proxon='export ALL_PROXY=socks5://fatshark.duckdns.org:666; echo "IP: $(curl -s ifconfig.me)"'
alias proxoff='unset ALL_PROXY; echo "IP: $(curl -s ifconfig.me)"'

21
.bash_docker Normal file
View File

@@ -0,0 +1,21 @@
export DOCKER_COMPOSE_COMMAND="docker compose"
# Lazy docker composing. Set the variable somewhere.
alias doco="$DOCKER_COMPOSE_COMMAND"
alias redoco="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d"
alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
alias dogs="$DOCKER_COMPOSE_COMMAND logs -f"
alias watchtower="docker run -d --restart unless-stopped --name 'watch-$(date +%H%M)' -v /var/run/docker.sock:/var/run/docker.sock -v /etc/localtime:/etc/localtime:ro ghcr.io/nicholas-fedor/watchtower:latest --cleanup "
alias watchonce="docker run -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/nicholas-fedor/watchtower:latest --run-once"
alias onetower="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/nicholas-fedor/watchtower:latest --run-once"
alias docport='docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a'
alias docprune='echo "Pruning images"; docker image prune -f && echo "Pruning networks"; docker network prune -f && echo "Pruning containers"; docker container prune -f && echo "Pruning Volumes"; docker volume prune -f' # Regain all that space taken up by projects you abandoned
alias bin='nc termbin.com 9999' # Send things instantly to a pastebin. Pipe other commands into this to share their output.
alias dex='docker exec' # Quicker Docker exec
alias dps="docker ps --format 'CONTAINER ID: {{.ID}}\nIMAGE: {{.Image}}\nCOMMAND: {{.Command}}\nCREATED: {{.CreatedAt}}\nSTATUS: {{.Status}}\nPORTS: {{.Ports}}\nNAMES: {{.Names}}\n'|cat"
alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/lzd:/.config/jesseduffield/lazydocker lazyteam/lazydocker'
alias doctime="docker ps --format 'CONTAINER NAME: {{.Names}}\nUPTIME: {{.Status}}'|cat"
alias glance='docker run --rm -e TZ="${TZ}" -v /var/run/docker.sock:/var/run/docker.sock:ro -v /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock:ro --pid host --network host -it nicolargo/glances:latest-full'
alias ytdlp='docker run --rm -v /home/brad:/media -it --user 1000:1000 jauderho/yt-dlp:latest -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'

90
.bash_functions Normal file
View File

@@ -0,0 +1,90 @@
#Read the fucking manual
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
# Get your public IP
extip(){ ip=$(curl -s http://api.ipify.org);
echo "Public IP address is $ip"
}
# Cheatsheet for linux commands
ch() { curl "http://cheat.sh/$@"; }
# You can go to noti.toad.city and generate your own code to get browser notifications. It's all explained there. You'll need to modify this value
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
# Countdown Timer
countdown() {
start="$(( $(date '+%s') + $1))"
while [ $start -ge $(date +%s) ]; do
time="$(( $start - $(date +%s) ))"
printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
sleep 0.1
done
}
# Random quote to avoid making useful commit messages
function rgcm() {
api="https://whatthecommit.com/index.txt"
message=$(curl -s $api)
if [[ -z $message ]]; then
echo "Error: Failed to retrieve a random commit message"
return 1
fi
git add .
git commit -m "$message"
echo "Git commit submitted with message: $message"
}
function cntdn() {
local count=$1
while [ $count -gt 0 ]; do
echo -en "\n$count... "
if [ $count -eq 3 ]; then
echo "You've still got a few seconds to live it up before your time runs out!"
elif [ $count -eq 2 ]; then
echo "Tick-tock, tick-tock, time's running out!"
elif [ $count -eq 1 ]; then
echo "You had a good run, but it's time to face the music!"
fi
sleep 1
((count--))
done
echo "Time's up!"
}
function ramdisk() {
if [ -z "$1" ]; then
echo "Error: Ramdisk size not specified."
return 1
fi
if [ ! -d "$HOME/ramdown" ]; then
mkdir "$HOME/ramdown"
fi
size="$1"
sudo mount -t tmpfs -o size="$size" tmpfs "$HOME/ramdown"
}
ipin() {
local ip=$1
local endpoint="https://ipinfo.io"
# Append IP to the endpoint if provided
if [[ -n $ip ]]; then
endpoint+="/$ip"
fi
endpoint+="/json?token=4ea2457429bf23"
# Make the API call and prettify the JSON response
curl -s "$endpoint" | jq .
}
# Tere function
tere() {
local result=$(command tere "$@")
[ -n "$result" ] && cd -- "$result"
}
# Compress files. Like the name says.
function compress_files() {
if [ -z "$1" ]; then
echo "Usage: compress_files <archive_name.zip> <file1> <file2> ..."
else
zip -r "$1" "${@:2}"
fi
}

1
.bashlocal Normal file
View File

@@ -0,0 +1 @@
$DOCKER_COMPOSE_COMMAND="docker-compose"

189
.bashrc Normal file
View File

@@ -0,0 +1,189 @@
##########################################################
# USE ALIASES WITH SUDO HOORAY #
##########################################################
alias sudo='sudo '
#what cd should do by default
if command -v batcat &> /dev/null
then
alias cd='cd_func'
alias bat='batcat '
fi
cd_func ()
{
builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column
}
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
export DOCKER_COMPOSE_COMMAND="docker compose"
# Don't put duplicate lines in the history and do not add lines that start with a space
export HISTCONTROL=erasedups:ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='\[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u\[\033[33m\]↳\[\033[35m\]\h\[\033[;32m\])-[\[\033[44;1;33m\]\w\[\033[;32m\]]\n\[\033[31m\]⇛\[\033[33m\]⇛\[\033[93;25m\]⇛\[\033[92m\]⇛\[\033[32m\]⇛\[\033[34m\]⇛\[\033[36m\]⇛ \[\033[0m\]'
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# To have colors for ls and all grep commands such as grep, egrep and zgrep
export CLICOLOR=1
export LS_COLORS='no=00:fi=00:di=00;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.xml=00;31:'
#export GREP_OPTIONS='--color=auto' #deprecated
alias grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
# Color for manpages in less makes manpages a little easier to read
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
############################
# This allows you to have #
# a local aliases file #
# not affected by this #
# git repo #
############################
if [ -f ~/.bashlocal ]; then
. ~/.bashlocal
fi
if [ -f ~/.bash_docker ]; then
. ~/.bash_docker
fi
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# Extracts any archive(s) (if unp isn't installed)
extract () {
for archive in $*; do
if [ -f $archive ] ; then
case $archive in
*.tar.bz2) tar xvjf $archive ;;
*.tar.gz) tar xvzf $archive ;;
*.bz2) bunzip2 $archive ;;
*.rar) rar x $archive ;;
*.gz) gunzip $archive ;;
*.tar) tar xvf $archive ;;
*.tbz2) tar xvjf $archive ;;
*.tgz) tar xvzf $archive ;;
*.zip) unzip $archive ;;
*.Z) uncompress $archive ;;
*.7z) 7z x $archive ;;
*) echo "don't know how to extract '$archive'..." ;;
esac
else
echo "'$archive' is not a valid file!"
fi
done
}
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
export CDPATH=:..:$HOME:$HOME/dock:/dock
alias colors='for x in {16..231}; do printf "\e[48;5;${x}m%03d\e[0m " $x; done'
#fastfetch
printf "\n%s %s | Load: %s | Uptime: %s\n" \
"$(hostname -s)" \
"$(date +%H:%M)" \
"$(cut -d' ' -f1-3 /proc/loadavg)" \
"$(uptime -p | sed 's/up //')"
df -h . | awk 'NR==2{printf "Disk: %s free of %s\n",$4,$2}'
curl -s "https://wttr.in/?format=%l:+%c+%t+%w+%p"
echo

45
.vimrc Normal file
View File

@@ -0,0 +1,45 @@
set number
set cursorline
set cursorcolumn
" Set shift width to 4 spaces.
set shiftwidth=4
" Set tab width to 4 columns.
set tabstop=4
" Use space characters instead of tabs.
set expandtab
" Do not save backup files.
set nobackup
" Do not let cursor scroll below or above N number of lines when scrolling.
set scrolloff=10
" Do not wrap lines. Allow long lines to extend as far as the line goes.
set nowrap
" While searching though a file incrementally highlight matching characters as you type.
set incsearch
" Ignore capital letters during search.
set ignorecase
" Override the ignorecase option if searching for capital letters.
" This will allow you to search specifically for capital letters.
set smartcase
" Show partial command you type in the last line of the screen.
set showcmd
" Show the mode you are on the last line.
set showmode
" Show matching words during a search.
set showmatch
" Use highlighting when doing a search.
set hlsearch
" Set the commands to save in history default number is 20.
set history=1000

View File

@@ -1,126 +0,0 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
alias ~='cd ~/'
alias nano='vim'
alias trans='rsync -Pve ssh'
alias update='yay -Syu --noconfirm'
alias inst='yay --noconfirm -S'
alias burn='yay -Rns'
alias ls='ls --color=auto'
alias pacs='yay -Ss'
alias svim='sudo -E vim'
alias vi='vim'
alias h='history'
alias mux='tmux new -s main'
alias supd='sudo pacman -Syyuu'
alias ncdu='ncdu --color dark'
alias bigclock='watch -t -n 1 "date '+%D%n%I:%M:%S' | figlet -k"|lolcat'
alias gitview='git log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"'
alias cheat='/usr/bin/cheat'
alias weather='curl wttr.in'
alias whatthecom='git commit -am "$(whatcom)"'
alias null='/dev/null'
alias q='exit'
alias lsa='ls -a'
alias ....='cd ../../..;'
alias ...='cd ../..'
alias ..='cd ..'
alias ll='ls -AlhGrti'
alias ESC='cd ~/LocalGit/ESC618'
alias ta='tmux -2 a -t'
alias tn='tmux -2 new -s'
alias tm='tmux -2 attach-session || tmux -2 new-session'
alias nord='nordvpn connect'
alias nordd='nordvpn disconnect'
alias fucking='sudo'
alias please='sudo'
alias fuck='pkill -9'
alias mirrorupdate='curl -s "https://www.archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - | sudo tee /etc/pacman.d/mirrorlist'
alias bashrc='source ~/.bashrc'
export PATH=$PATH:~/scripts:/usr/local/go/bin
export npm_config_prefix=~/.node_modules
export EDITOR='vim'
export VISUAL='vim'
tempdrive () {
if [ -z $@ ]
then
echo "Please provide a disk size in Mb."
else
sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM"
fi
}
cd () {
builtin cd "$@" && ls -a
}
bk () {
if [ -z $1 ]
then
echo "Type a filename, dumbass"
else
cp $1{,.bak}
fi
}
md () {
mkdir -p "$@" && cd "$@";
}
function whatcom() {
curl --silent --fail https://whatthecommit.com/index.txt
}
teatimer() {
sleep $1;
mplayer "$HOME/Music/Tornado.mp3" & notify-send 'YOUR TEA IS READY OH FUCK';
curl -X POST "https://api.lifx.com/v1/lights/group_id:58da90e73566e43f037c7b6d59e56d24/effects/pulse" -H "Authorization: Bearer cfbc4b9dd981f5d99d486d22cb75a44535a8e616b9315580cac4ff5d5147ed86" -d 'period=1' -d 'cycles=4' -d 'color='$2;
fg
exit
}
mksketch(){
mkdir "$1";
if [ "$2" = 'adr' ]
then
cp "$HOME/skeletons/adr.ino" "$1/$1.ino"
elif [ "$2" = "web" ]
then
cp "$HOME/skeletons/webserv.ino" "$1/$1.ino"
else
cp "$HOME/skeletons/basic.ino" "$1/$1.ino"
fi
vim "$1/$1.ino"
}
bigtext(){
if [ -z "$1" ]
then
curl --silent --fail curl 'artii.herokuapp.com/make?text='FUCK+IT'&font='univers''
else
printf "$1\n"
curl --silent --fail curl 'artii.herokuapp.com/make?text='$1'&font='univers''
fi
}
branchdelete(){
git branch -d $1
git push --delete origin $1
echo There you go;
}
updateconfigs (){
cd ~/GIT/configs
whatthecom
git push origin master
cd ~
}

View File

@@ -1,66 +0,0 @@
set-option -g activity-action other
set-option -g assume-paste-time 1
set-option -g base-index 0
set-option -g bell-action any
set-option -g default-command ""
set-option -g default-shell "/bin/bash"
set-option -g destroy-unattached off
set-option -g detach-on-destroy on
set-option -g display-panes-active-colour red
set-option -g display-panes-colour blue
set-option -g display-panes-time 1000
set-option -g display-time 750
set-option -g history-limit 2000
set-option -g key-table "root"
set-option -g lock-after-time 0
set-option -g lock-command "lock -np"
set-option -g message-command-style fg=yellow,bg=black
set-option -g message-style fg=black,bg=yellow
set-option -g mouse off
set-option -g prefix C-b
set-option -g prefix2 None
set-option -g renumber-windows off
set-option -g repeat-time 500
set-option -g set-titles off
set-option -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
set-option -g silence-action other
set-option -g status on
set-option -g status-interval 15
set-option -g status-justify left
set-option -g status-keys vi
set-option -g status-left "[#S] "
set-option -g status-left-length 10
set-option -g status-left-style default
set-option -g status-position bottom
set-option -g status-right " \"#{=21:pane_title}\" %H:%M %d-%b-%y"
set-option -g status-right-length 40
set-option -g status-right-style default
set-option -g status-style fg=black,bg=green
set-option -g update-environment[0] "DISPLAY"
set-option -g update-environment[1] "SSH_ASKPASS"
set-option -g update-environment[2] "SSH_AUTH_SOCK"
set-option -g update-environment[3] "SSH_AGENT_PID"
set-option -g update-environment[4] "SSH_CONNECTION"
set-option -g update-environment[5] "WINDOWID"
set-option -g update-environment[6] "XAUTHORITY"
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g word-separators " -_@"
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

View File

@@ -1,37 +0,0 @@
let mapleader = "-"
inoremap kj <Esc>
nnoremap <left> <C-W>h
nnoremap <right> <C-W>l
nnoremap <up> <C-W>k
nnoremap <down> <C-W>j
map <F1> :bprevious<CR>
map <F2> :bnext<CR>
map <F3> :vertical resize -5<CR>
map <F4> :vertical resize +5<CR>
map <F5> :se fdm=manual<CR>
map <F6> :se nofoldenable<CR>
set foldmethod=manual
set rnu
set autoread
set nowrap
set shiftwidth=2
set shiftround
set showmatch
set ignorecase
set smarttab
set incsearch
set history=1000
set undolevels=1000
set visualbell
set title
set expandtab
set autoindent
set hlsearch
set tabstop=2
colo ron
syntax on
set shiftround
au CursorHoldI * stopinsert
au InsertEnter * let updaterestore=&updatetime | set updatetime=7000
au InsertLeave * let &updatetime=updaterestore

View File

@@ -1,115 +0,0 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias update='sudo apt-get update && sudo apt-get upgrade -y'
alias svim='sudo vim'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

61
alpine/answer.cfg Executable file
View File

@@ -0,0 +1,61 @@
# Example answer file for setup-alpine script
# If you don't want to use a certain option, then comment it out
# Use US layout with US variant
# KEYMAPOPTS="us us"
KEYMAPOPTS="us us"
# Set hostname to 'alpine'
HOSTNAMEOPTS="burner"
# Set device manager to mdev
DEVDOPTS=mdev
# Contents of /etc/network/interfaces
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname burner
"
# Search domain of example.com, Google public nameserver
# DNSOPTS="-d example.com 8.8.8.8"
# Set timezone to UTC
#TIMEZONEOPTS="UTC"
TIMEZONEOPTS=America/Chicago
# set http/ftp proxy
#PROXYOPTS="http://webproxy:8080"
PROXYOPTS=none
# Add first mirror (CDN)
APKREPOSOPTS="-1"
# Create admin user
USEROPTS="-a -u -g audio,video,netdev juser"
#USERSSHKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIiHcbg/7ytfLFHUNLRgEAubFz/13SwXBOM/05GNZe4 juser@example.com"
#USERSSHKEY="https://example.com/juser.keys"
# Install Openssh
SSHDOPTS=openssh
#ROOTSSHKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIiHcbg/7ytfLFHUNLRgEAubFz/13SwXBOM/05GNZe4 juser@example.com"
#ROOTSSHKEY="https://example.com/juser.keys"
# Use openntpd
# NTPOPTS="openntpd"
NTPOPTS=chronyd
# Use /dev/sda as a sys disk
DISKOPTS="-m sys /dev/sda"
# DISKOPTS=none
# Setup storage with label APKOVL for config storage
#LBUOPTS="LABEL=APKOVL"
LBUOPTS=none
#APKCACHEOPTS="/media/LABEL=APKOVL/cache"
APKCACHEOPTS=none

68
arch/pkglist.txt Normal file
View File

@@ -0,0 +1,68 @@
amd-ucode
arp-scan
barrier
bat
btrfs-progs
chromium
code
cronie
dd_rescue
ddrescue
debtap
dhcpcd
discord
dosfstools
exfat-utils
f2fs-tools
file-roller
firefox
flatpak
gparted
gptfdisk
htop
intel-ucode
jfsutils
lightdm-gtk-greeter
lsof
lzop
neofetch
network-manager-applet
networkmanager
nfs-utils
nmap
nmon
notepadqq
openssh
os-prober
p7zip
plasma-meta
powertop
ristretto
rsync
samba
sshfs
tailscale
thunar
thunar-archive-plugin
thunar-media-tags-plugin
thunar-volman
tixati
ttf-inconsolata
unrar
unzip
usbutils
vim
virtualbox
virtualbox-host-modules-arch
vlc
xorg-docs
xorg-font-util
xorg-fonts-100dpi
xorg-fonts-75dpi
xorg-fonts-alias-100dpi
xorg-fonts-alias-75dpi
xorg-fonts-misc
xorg-server
xorg-xinit
xorg-xinput
xorg-xrandr

21
bashset.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
echo $HOME/.bashrc
ln -s $PWD/.bashrc $HOME/.bashrc
echo "done"
echo $HOME/.bash_aliases
ln -s $PWD/.bash_aliases $HOME/.bash_aliases
echo $HOME/.bash_docker
ln -s $PWD/.bash_docker $HOME/.bash_docker
echo "done"
echo $HOME/.bash_functions
ln -s $PWD/.bash_functions $HOME/.bash_functions
echo "done"
echo $HOME/.vimrc
ln -s $PWD/.vimrc $HOME/.vimrc
echo "done"
echo $HOME/.bashlocal
touch $HOME/.bashlocal
echo "done"
read -p "lol maybe it worked"
source ~/.bashrc
exit 0

135
i3/config
View File

@@ -19,28 +19,41 @@ font pango:monospace 8
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8 #font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default: # The combination of xss-lock, nm-applet and pactl is a popular choice, so
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # they are included here as an example. Modify as you see fit.
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# X core fonts rendering does not support right-to-left and this being a bitmap # screen before suspend. Use loginctl lock-session to lock your screen.
# font, it doesnt scale on retina/hidpi displays. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec terminology bindsym $mod+Return exec terminator
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run #bindsym $mod+d exec --no-startup-id dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications bindsym $mod+d exec --no-startup-id rofi -show run --theme solarized-dark
# shipping a .desktop file. It is a wrapper around dmenu, so you need that # A more modern dmenu replacement is rofi:
# installed. # bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
@@ -55,10 +68,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+j move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+k move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+l move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+semicolon move right bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
@@ -67,7 +80,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+semicolon split h bindsym $mod+0x2d split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v bindsym $mod+v split v
@@ -106,35 +119,35 @@ set $ws9 "9"
set $ws10 "10" set $ws10 "10"
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $ws1 bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace $ws2 bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace $ws3 bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace $ws4 bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace $ws5 bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace $ws6 bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace $ws7 bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace $ws8 bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace $ws9 bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace $ws10 bindsym $mod+0 workspace number $ws10
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
@@ -144,10 +157,10 @@ mode "resize" {
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
bindsym h resize shrink width 3 px or 5 ppt bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 3 px or 5 ppt bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 3 px or 5 ppt bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 3 px or 5 ppt bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 10 px or 10 ppt
@@ -162,23 +175,33 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
bindsym XF86AudioMute exec amixer sset Master toggle
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
status_command i3status status_command i3status
mode hide mode hide
hidden_state hide hidden_state hide
modifier $mod modifier $mod
position top position top
} }
hide_edge_borders both
new_window 1pixel # input settings
exec_always xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1 exec_always xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Natural Scrolling Enabled" 1
exec_always xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1 exec_always xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Tapping Enabled" 1
exec_always feh --randomize --bg-fill /home/brad/walls bindsym 0x1008ff02 exec brightnessctl s +25
exec_always nm-applet bindsym 0x1008ff03 exec brightnessctl s 25-
exec_always sensors-applet
exec_always blueman-applet # window shit
default_border none
# Startup Executions
exec_always xinput set-prop "Atmel Atmel maXTouch Digitizer" "Device Enabled" 0
exec --no-startup-id blueman-applet
exec_always --no-startup-id nm-applet
exec_always --no-startup-id parcellite
exec_always --no-startup-id volumeicon
exec --no-startup-id nextcloud
exec --no-startup-id barrier
exec_always --no-startup-id feh --bg-scale /home/brad/wall.png

1
netmap.txt Normal file
View File

@@ -0,0 +1 @@
Starting Nmap 7.80 ( https://nmap.org ) at 2024-07-07 19:34 CDT

3
readme.md Normal file
View File

@@ -0,0 +1,3 @@
## These are my configs
I usually just clone the repo into the home directory of whatever machine I'm on (`git clone https://git.toad.city/brad/configs`), `cd` into the project directory(`cd configs`), and make executable/execute the install script (`chmod +x bashset.sh; ./bashset.sh`)
You could do something different. I don't actually care.