I hereby claim:
- I am kevin-miles on github.
- I am kevinmiles (https://keybase.io/kevinmiles) on keybase.
- I have a public key ASBd5S3E-IzBKUKRCvP3FXe9OeG_g44e7XoMKZyZtPmOiQo
To claim this, I am signing this object:
| #!/bin/bash | |
| # A script to batch-compress MP4 files in parallel using GNU Parallel | |
| # Create a directory for the output files if it doesn't exist | |
| mkdir -p compressed | |
| echo "Starting parallel processing..." | |
| # Find all .mp4 files and pipe them to GNU Parallel to run ffmpeg jobs simultaneously | |
| # --bar shows a progress bar |
| This is a test Gist created using the provided GitHub token. |
| Testing GitHub token |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "golang.org/x/tour/wc" | |
| "strings" | |
| ) | |
| func WordCount(s string) map[string]int { | |
| elements := strings.Fields(s) | |
| elementMap := make(map[string]int) |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get dist-upgrade | |
| sudo apt-get clean | |
| sudo rpi-update |
| In Unix, a background process executes independently of the shell, leaving the terminal free for other work. To run a process in the background, include an & (an ampersand) at the end of the command you use to run the job. Following are some examples: | |
| To run the count program, which will display the process identification number of the job, enter: | |
| count & | |
| To check the status of your job, enter: | |
| ps | |
| To bring a background process to the foreground, enter: | |
| fg | |
| If you have more than one job suspended in the background, enter: | |
| fg %# |
| cat /etc/issue |
| "ycdn": "F", "ycompress": "F", "ycookiefree": "F", "ycsslink": "F", "ycsstop": "F", "ydns": "F", "ydom_access": "F", "ydupes": "F", "yemptysrc": "F", "yetag": "F", "yevents": "F", "yexpires": "F", "yexpressions": "F", "yexternal": "F", "yfavicon": "F", "yflush": "F", "yiframes": "F", "yimgnoscale": "F", "yjsbottom": "F", "ymincookie": "F", "ymindom": "F", "yminify": "F", "ymultipart": "F", "yno404": "F", "ynofilter": "F", "ynumreq": "F", "yopt_images": "F", "yopt_sprites": "F", "ypostloa": "F", "ypreload": "F", "yredirects": "F", "ysplit": "F", "yunder25": "F", "yxhr": "F", "yxhrmetho": "F" | |
| ycdn | |
| ycompress | |
| ycookiefree | |
| ycsslink | |
| ycsstop | |
| ydns | |
| ydom_access | |
| ydupes |
| //replaces a string's commas with spaces | |
| var replacement = 'test'; | |
| //in my use i had a for loop that used the index to generate the value | |
| //in this example if you had it in a loop it would replace each '$NUMBER' with 'test' | |
| for(var i=0; i<5; i++){ | |
| final = final.split('$'+value).join(replacement); | |
| } |