Compare commits

..

31 Commits
master ... vhs

Author SHA1 Message Date
786178195b
Merge branch 'master' into vhs 2024-08-13 19:05:17 +02:00
29bff234fd
place requirements for at tape 2024-08-07 18:01:34 +02:00
3e3e072623 Merge branch 'master' into vhs 2024-08-06 20:47:23 +01:00
a6907d7a91
Merge branch 'master' into vhs 2024-06-02 05:27:58 +02:00
3f98db3d3a
Merge branch 'dev' into vhs 2023-12-02 03:10:14 +01:00
17b90a54cb
Merge branch 'dev' into vhs 2023-09-23 09:29:51 +02:00
0587e9914a
place requirements for tapes 2023-09-14 19:06:16 +02:00
257ece871c
provide yes.tape 2023-09-14 19:05:47 +02:00
89ec9614e5
Merge branch 'dev' into vhs 2023-09-14 19:00:06 +02:00
6f8902ff8f
add lf tape 2023-09-04 21:06:03 +02:00
1eab64e1bc
Merge branch 'dev' into vhs 2023-09-04 20:29:11 +02:00
92f90b51f7
Merge branch 'dev' into vhs 2023-09-04 19:24:52 +02:00
b44d6b88ed
Merge branch 'dev' into vhs 2023-08-23 22:10:21 +02:00
23160b22ad
Merge branch 'dev' into vhs 2023-07-19 15:16:42 +02:00
fd2c44f49b
Merge branch 'dev' into vhs 2023-07-12 03:23:28 +02:00
8b599e2c77
Merge branch 'master' into vhs 2023-07-02 12:39:49 +02:00
4a9d2d61d2
Merge branch 'dev' into vhs 2023-06-20 15:08:40 +02:00
fda9fcdec4
unify sc-im formatting 2023-06-08 17:45:22 +02:00
395cb363db
place w3m gif in file 2023-06-08 16:34:33 +02:00
abc2add177
add w3m tape 2023-06-08 16:30:59 +02:00
2dbc7965da
Merge branch 'master' into vhs 2023-06-08 13:37:46 +02:00
4dd6c979b6
Merge branch 'dev' into vhs 2023-04-20 21:02:21 +02:00
8672905dc4
fix at.gif syntax 2023-04-13 22:23:05 +02:00
6a3703a2d0
add at tape 2023-04-13 06:18:57 +02:00
8bb0c57ddb
Merge branch 'master' into vhs 2023-04-13 06:17:15 +02:00
8994bbe0e2
include tapes in xbps 2023-04-11 14:02:51 +02:00
ea5ecad274
Merge branch 'master' into vhs 2023-04-11 14:02:28 +02:00
c6f2891003
add xbps tapes 2023-04-11 14:01:43 +02:00
46f538bbe8
Merge branch 'master' into vhs 2023-04-11 12:37:51 +02:00
f80bc47a24
fix path 2023-04-10 17:15:31 +02:00
6162bb1502
add which.tape 2023-04-10 17:09:30 +02:00
17 changed files with 342 additions and 74 deletions

View File

@ -64,6 +64,8 @@ atrm 2
Check `/var/spool/atd/` to see the jobs. Check `/var/spool/atd/` to see the jobs.
![At it again](/tapes/at.gif)
## Automation ## Automation
Automatically add a job for later, by setting the date, then using echo for the command. Automatically add a job for later, by setting the date, then using echo for the command.

42
basics/at.tape Normal file
View File

@ -0,0 +1,42 @@
Require at
Require atd
Sleep 500ms
Type "at teatime"
Enter
Sleep 1.5s
Type "./"
Sleep 500ms
Type "baskup.sh"
Sleep 1.5s
Enter
Sleep 1.5s
Ctrl+D
Sleep 3.5s
Type "atq"
Enter
Sleep 1.5s
Type "atq 1"
Sleep 500ms
Type "4"
Enter
Sleep 500ms
Type "at"
Sleep 1s
Type " -c 15"
Enter
Sleep 1.5s
Type "at"
Sleep 500ms
Type " "
Sleep 500ms
Type "-"
Sleep 500ms
Type "c 15 | grep PWD"
Enter
Sleep 5.5s
Type "atrm 15"
Sleep 2s
Enter
Sleep 3s
Ctrl+D

View File

@ -10,6 +10,8 @@ tags: [ "Documentation", "Basics" ]
type cmus type cmus
``` ```
![where is cmus?](/tapes/which.gif)
# Whereis the Program # Whereis the Program
Ask where the `angband` program is, along with all its configuration files: Ask where the `angband` program is, along with all its configuration files:

33
basics/which.tape Normal file
View File

@ -0,0 +1,33 @@
Require cmus
Type "whereis cmus"
Enter
Sleep 1s
Type "which cmus"
Enter
Sleep 500ms
Type "type /bin/cmus"
Enter
Sleep 5s
Type "man cmus"
Enter
Sleep 1s
Type " "
Sleep 1s
Type " "
Sleep 1s
Type " "
Sleep 500ms
Type " "
Sleep 1.5s
Type " "
Sleep 500ms
Type " "
Sleep 1.5s
Type " "
Sleep 500ms
Type " q"
Sleep 500ms
Type "cmus"
Sleep 3s
Ctrl+D

11
basics/yes.tape Normal file
View File

@ -0,0 +1,11 @@
Require yay
Set Shell "bash"
Set FontSize 20
Set Width 1400
Set Height 900
Sleep 2s
Type "yes | yay"

View File

@ -92,7 +92,7 @@ A branch is a full copy of the project to test additional ideas.
You can make a new branch called 'featurez' like this: You can make a new branch called 'featurez' like this:
```bash ```bash
git branch $FEATURE_BRANCH git branch *featurez*
``` ```
Have a look at all your branches: Have a look at all your branches:
@ -104,20 +104,19 @@ git branch
Switch to your new branch: Switch to your new branch:
```bash ```bash
git checkout $FEATURE_BRANCH git checkout *featurez*
``` ```
And if your changes are rubbish, checkout the "master" branch again, then delete "featurez": And if your changes are rubbish, checkout the "master" branch again, then delete "featurez":
```bash ```bash
git branch -D $FEATURE_BRANCH git branch -D *featurez*
``` ```
Or if it's a good branch, push it to the remote: Or if it's a good branch, push it to the remote:
```bash ```bash
remote=origin git push *origin* *featurez*
git push $remote $FEATURE_BRANCH
``` ```
## Merging ## Merging
@ -125,13 +124,13 @@ git push $remote $FEATURE_BRANCH
Once you like the feature, merge it into the main branch. Switch to master then merge it: Once you like the feature, merge it into the main branch. Switch to master then merge it:
```bash ```bash
git merge $FEATURE_BRANCH git merge *featurez*
``` ```
And delete the branch, as you've already merged it: and delete `featurez` as you've already merged it:
```bash ```bash
git branch -d $FEATURE_BRANCH git branch -d featurez
``` ```
# Subtree # Subtree
@ -142,6 +141,34 @@ git branch -d $FEATURE_BRANCH
git subtree add -P config git@gitlab.com:bindrpg/config.git master git subtree add -P config git@gitlab.com:bindrpg/config.git master
``` ```
## Pulling a Subtree from an existing git
The project has subdirectories sub-1,sub-2,sub-3. The first should be its own repository, but should also retain its own history.
First, we extract its history as an independent item, and make that into a seprate branch.
```bash
git subtree split --prefix=sub-1 -b sub
```
If you want something a few directories deep, you can use `--prefix=sub-1/dir-2/dir-3
Then go and create a new git somewhere else:
```bash
cd ..;mkdir sub-1;cd sub-1;git init --bare
```
Then go back to your initial git repo, and do the following:
git push ../subtest sub:master
Finally, you can clone this repo from your original.
```bash
git clone ../subtest
```
# Tricks # Tricks
## Delete All History ## Delete All History

View File

@ -1,9 +0,0 @@
---
title: "git secret"
tags: [ "data", "git" ]
---
This utility is largely useless, as it can only identify people by their email.
So if someone has multiple GPG keys associated with one email, the tool will not work.
Worse than not working, it may 'suddenly' stop working as you try to transfer a secret to someone, who then discovers that `git-secret` requires them to mess about with their GPG keyring in order to use the repository.

View File

@ -1,34 +0,0 @@
---
title: "git"
tags: [ "Documentation", "data", "git", "subtree" ]
---
## Pulling a Subtree from an existing git
The project has subdirectories `sub-1`, `sub-2`, `sub-3`.
The first should be its own repository, but should also retain its own history.
First, we extract its history as an independent item, and make that into a seprate branch.
```bash
git subtree split --prefix=sub-1 -b sub
```
If you want something a few directories deep, you can use `--prefix=sub-1/dir-2/dir-3
Then go and create a new git somewhere else:
```bash
cd ..;mkdir sub-1;cd sub-1;git init --bare
```
Then go back to your initial git repo, and do the following:
git push ../subtest sub:master
Finally, you can clone this repo from your original.
```bash
git clone ../subtest
```

View File

@ -2,29 +2,6 @@
title: "sc-im" title: "sc-im"
tags: [ "Documentation", "data" ] tags: [ "Documentation", "data" ]
--- ---
# Basic Commands
> H = highest part
> L = lowest part
> gg = top
> g$ = most right.
> g0 = most left.
> \ = insert middle
> \> = insert left
> < = insert right
gb4 = to to cell b4
> aa = see all text in cells
> f = format cells so you can see it.
> fl = format wider right
> fh = format smaller left
> fj = format wider down
> fk = format smaller down
# Edit # Edit
## Text ## Text
@ -33,6 +10,7 @@ gb4 = to to cell b4
|:----------------------|:---:| |:----------------------|:---:|
| text (left align) | < | | text (left align) | < |
| text (right align) | > | | text (right align) | > |
| text (right align) | `|` |
| Edit existing text | E | | Edit existing text | E |
## Meta Actions ## Meta Actions
@ -47,6 +25,26 @@ gb4 = to to cell b4
| paste with format | Pc | | paste with format | Pc |
| delete a cell | x | | delete a cell | x |
# Movement
| Action | Key |
|:-------------------------------:|:---:|
| highest part | H |
| lowest part | L |
| top | gg |
| move right | g$ |
| move left | g0 |
| insert middle | \ |
| insert left | \> |
| insert right | < |
| to to cell b4 | b4 |
| see all text in cells | aa |
| format cells so you can see it. | f |
| format wider right | fl |
| format smaller left | fh |
| format wider down | fj |
| format smaller down | fk |
## Functions ## Functions

View File

@ -19,3 +19,4 @@ w3m ddg.gg
| T | new tab | | T | new tab |
| { / } | switch tabs | | { / } | switch tabs |
![w3m browser](/tapes/w3m.gif)

43
data/w3m.tape Normal file
View File

@ -0,0 +1,43 @@
Require w3m
Sleep 1s
Type "w3m ddg.gg"
Sleep 500ms
Enter
Sleep 1.5s
Tab
Enter
Type "cats"
Enter
Sleep 2s
Tab
Enter
Sleep 2s
Type "jjjjjjjjjjjj"
Tab
Enter
Sleep 2s
Type "U"
Sleep 500ms
Ctrl+U
Sleep 500ms
Type "dmz.rs"
Sleep 500ms
Enter
Sleep 4.5s
Type "jjjjjjjj"
Tab
Type "j"
Sleep 500ms
Enter
Sleep 1s
Type " "
Sleep 2s
Backspace
Sleep 500ms
Type " "
Sleep 1.5s
Type " "
Sleep 2s
Type "qy"
Sleep 500ms

View File

@ -0,0 +1,28 @@
Require xbps-query
Require xbps-install
Set Shell "bash"
Set FontSize 20
Set Width 1400
Set Height 900
Type "sudo xbps-install --sync" Enter Sleep 700ms Enter
Type "sudo xbps-install --update --yes" Sleep 700ms
Backspace 33
Type "echo same but faster!" Sleep 200ms Enter
Type "sudo xbps-install -uy" Enter Sleep 700ms
Type "echo now we just download" Sleep 2s Enter
Type "sudo xbps-install -SD --yes" Sleep 700ms Enter
Type "echo and install from the downloaded updates..." Sleep 2s Enter
Type "sudo xbps-install -Du" Sleep 700ms Enter
Sleep 4s

View File

@ -0,0 +1,64 @@
Require xbps-query
Require xbps-install
Set Shell "bash"
#Set FontSize 20
#Set Width 1400
#Set Height 900
#Hide
#
#Type "sudo xbps-remove -y cowsay xcowsay aerc"
Show
Type "xbps-query cows" Enter Sleep 1s
Type "nothing..."
Backspace 11
Type "xbps-query --search cows" Sleep 500ms Enter
Type "xbps-query --repository --search cows" Sleep 500ms Enter
Type "echo same but faster!" Sleep 200ms Enter
Type "xbps-query -Rs cows" Sleep 500ms Enter
Sleep 3s
Type "sudo xbps-install -y xcowsay" Enter Sleep 700ms Enter
Sleep 5
Type "xbps-query --repository --search 'email'" Sleep 300ms Enter
Type "too much...." Sleep 1s
Backspace 13
Sleep 1s
Type "xbps-query -R --search '^email'" Sleep 300ms Enter
Sleep 2s
Type "xbps-query -Rs --regex '^email terminal'" Sleep 300ms Enter
Type "???" Sleep 2s
Backspace 3
Sleep 3s
Type "regex first!" Sleep 2s
Backspace 12
Type "xbps-query --regex -Rs '^email.*terminal'" Sleep 300ms Enter Sleep 900ms
Type "xbps-query --regex -Rs '^terminal.*email'" Sleep 300ms Enter Sleep 900ms
Type "sudo xbps-install aerc" Enter Sleep 300ms Enter Sleep 2s

View File

@ -0,0 +1,28 @@
Require xbps-query
Require xbps-install
Set Shell "bash"
#Set FontSize 20
#Set Width 1400
#Set Height 900
Type "sudo xbps-remove --yes thunderbird" Enter Sleep 2s
Type "time to kill orphans" Sleep 600ms
Backspace 21
Enter
Type "xbps-remove --remove-orphans --dry-run" Sleep 700ms
Backspace 38
Enter
Type "xbps-remove -on | cowsay" Sleep 300ms Enter Sleep 1.5s
Type "sudo xbps-remove --yes -o" Sleep 700ms Enter
Sleep 2s

View File

@ -22,6 +22,8 @@ Search with regex:
xbps-query --regex -Rs 'cow(s)?\w' xbps-query --regex -Rs 'cow(s)?\w'
``` ```
![xbps searches](/tapes/xbps-query.gif)
List what's required for cowsay List what's required for cowsay
```bash ```bash
@ -68,6 +70,8 @@ Upgrade current packages.
xbps-install -Suv xbps-install -Suv
``` ```
![xbps searches](/tapes/xbps-install.gif)
## Remove/ Uninstall ## Remove/ Uninstall
Remove cowsay Remove cowsay
@ -90,6 +94,8 @@ xbps-remove -o
Show information about cowsay Show information about cowsay
![xbps searches](/tapes/xbps-remove.gif)
## Fixes ## Fixes
Reinstall cowsay Reinstall cowsay

View File

@ -3,6 +3,8 @@ title: "lf - The Light File Manager"
tags: [ "Documentation", "File Browser" ] tags: [ "Documentation", "File Browser" ]
--- ---
![lf](/tapes/lf.gif)
## Config File ## Config File
If you don't have a `~/.config/lf/lfrc` file, you can probably find an example in `/usr/share/examples/lf`. If you don't have a `~/.config/lf/lfrc` file, you can probably find an example in `/usr/share/examples/lf`.

24
system/lf.tape Normal file
View File

@ -0,0 +1,24 @@
Require lf
Set Shell "bash"
Set FontSize 12
Set Width 800
Set Height 600
Type "lf"
Sleep 1.5s
Enter
Sleep 1.5s
Type "jjj"
Sleep 1s
Enter
Sleep 2s
Type "fortune > file"
Enter
Sleep 2s
Enter
Type "/file"
Enter
Sleep 3s
Type "q"