This commit is contained in:
nm1 2026-11-04 00:33:23 +05:30
commit 74ae93a96e
5 changed files with 94691 additions and 0 deletions

View file

@ -0,0 +1,3 @@
alpine
- installing i3 on alpine : https://wiki.alpinelinux.org/wiki/I3wm

View file

@ -0,0 +1,59 @@
amber bash
https://docs.amber-lang.com/getting_started/getting_started
**installation**
download its release and add binary to PATH env variable
**usage**
`amber run main.ab` to simply run it
`amber build main.ab main.sh` to convert it into bash script
`./main.sh`
**example**
```js
// importing inbuilt methods for array and text variables
import { split, slice } from "std/text"
const reduceFactor = 10
// this main function allows using arguments
main(args){
echo(args[1])
// accepting first argument as folder. index 0 is just main.ab or bash
const folder = args[1]
// using commands and getting its output into text variable named 'res'
let filesSortedByTimeStr = $ ls -t "{folder}" $ failed {echo(-1)}
// converting string to array with demiliter
let filesSortedByTimeArray = split(filesSortedByTimeStr, "\n")
let abFilesSortedByTimeArray = []
for index,file in filesSortedByTimeArray{
if slice(file, -4) == ".fos" {
// add elements into array
abFilesSortedByTimeArray+=[file]
}
}
const bufferFolder = "{folder}/tobedeleted"
$ mkdir -p "{bufferFolder}" $ failed {echo("couldnt created tobedeleted folder")}
for index,file in abFilesSortedByTimeArray{
if index % reduceFactor != 0{
$ mv "{folder}/{file}" "{bufferFolder}/" $ failed {}
}
}
let res = abFilesSortedByTimeArray
$ echo {res} > output.txt $ failed{}
}
```

View file

@ -0,0 +1,18 @@
ssh
For connecting to remote device
`ssh user@<host>` then type password if no ssh keys setup
non interactively with password
1. install sshpaas https://github.com/kevinburke/sshpass
for deb [sshpass_1.10-0.1_amd64.deb](../../../_resources/sshpass_1.10-0.1_amd64.deb)
2. use this command
`sshpass -p 'mypassword' scp myblogs.7z root@192.168.1.4:/root/projects/static/`
more secure way
```sh
export SSHPASS='mypassword'
sshpass -e scp myblogs.7z root@ 198.12.73.213:/root/projects/static/
unset SSHPASS
```
3. for running commands non interactive
`ssh user@host "command"`

View file

@ -0,0 +1,28 @@
vps
podman start commands
to keep it running
podman run -itd -p 80:80 -p 443:443 --name vps1 vps-image:v1 /bin/bash
now later to open running container
podman exec -it vps1 bash
btop
btop --utf-force
2. java
java -jar demo-0.0.1-SNAPSHOT.jar
3. npm
pm2 start ecosystem.config.js --no-daemon
4.npm
npm run start
5. npm
npm run start
6. python
python3 -m http.server 9020

View file

@ -0,0 +1,13 @@
yazi
- copy file path, go to this mode by pressing c.
- to go to help press type `~` or f1 key
- to sort go to sort mode by `,`.
- to open options type `O`.
- to go to a specfic directory use `g` and then space key
- use `m` to show details like in detailed view
&nbsp;
tip
when opening tmux use this `tmux -u` to support icons