Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
5cd2b399
Commit
5cd2b399
authored
6 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Remove usage of monitor, replaced by command monitoring.
parent
128dd8d6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.bashrc
+7
-7
7 additions, 7 deletions
.bashrc
Documents/bin/apt-daily
+0
-0
0 additions, 0 deletions
Documents/bin/apt-daily
Documents/bin/flatpak-daily
+0
-0
0 additions, 0 deletions
Documents/bin/flatpak-daily
with
7 additions
and
7 deletions
.bashrc
+
7
−
7
View file @
5cd2b399
...
@@ -65,16 +65,11 @@ alias concat="perl -pe 's/\\n/\\\\n/g'"
...
@@ -65,16 +65,11 @@ alias concat="perl -pe 's/\\n/\\\\n/g'"
alias
deconcat
=
"perl -pe 's/
\\\\
n/
\\
n/g'"
alias
deconcat
=
"perl -pe 's/
\\\\
n/
\\
n/g'"
alias
hostlocal
=
'docker run --rm --privileged --net=host gliderlabs/hostlocal'
alias
hostlocal
=
'docker run --rm --privileged --net=host gliderlabs/hostlocal'
alias
cadvisor
=
'docker run --rm --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest'
alias
cadvisor
=
'docker run --rm --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest'
alias
apt-daily
=
"monitor __apt-daily"
alias
flatpak-daily
=
"monitor __flatpak-daily"
alias
cdtemp
=
'cd $(mktemp -d)'
alias
cdtemp
=
'cd $(mktemp -d)'
alias
0-day-cleanup
=
'ssh xbmc.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"'
alias
0-day-cleanup
=
'ssh xbmc.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"'
alias
httpbin
=
'gunicorn httpbin:app'
alias
httpbin
=
'gunicorn httpbin:app'
alias
update-requirements
=
'find -name "*requirements*.txt" -exec pur --requirement {} \;'
alias
update-requirements
=
'find -name "*requirements*.txt" -exec pur --requirement {} \;'
alias
restart-kodi
=
'ssh xbmc.shore.co.il "sudo systemctl kill --kill-who=all --signal=9 xorg.service"'
alias
restart-kodi
=
'ssh xbmc.shore.co.il "sudo systemctl kill --kill-who=all --signal=9 xorg.service"'
alias
__sync-podcasts
=
'(cd && unison podcasts)'
alias
sync-podcasts
=
'monitor __sync-podcasts'
alias
sync-comics
=
'monitor __sync_comics'
# shellcheck disable=SC2142
# shellcheck disable=SC2142
alias
tolower
=
'awk "{print tolower(\$0)}"'
alias
tolower
=
'awk "{print tolower(\$0)}"'
# shellcheck disable=SC2142
# shellcheck disable=SC2142
...
@@ -95,7 +90,7 @@ alias presentation='docker dev adarnimrod/presentation'
...
@@ -95,7 +90,7 @@ alias presentation='docker dev adarnimrod/presentation'
alias
netdata
=
'docker run --detach --name netdata --cap-add SYS_PTRACE --volume /proc:/host/proc:ro --volume /sys:/host/sys:ro --volume /var/run/docker.sock:/var/run/docker.sock --publish 19999:19999 firehol/netdata:alpine'
alias
netdata
=
'docker run --detach --name netdata --cap-add SYS_PTRACE --volume /proc:/host/proc:ro --volume /sys:/host/sys:ro --volume /var/run/docker.sock:/var/run/docker.sock --publish 19999:19999 firehol/netdata:alpine'
alias
newman
=
'docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/etc/newman" -t postman/newman_alpine33'
alias
newman
=
'docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/etc/newman" -t postman/newman_alpine33'
alias
http-server
=
'python3 -m http.server 8080'
alias
http-server
=
'python3 -m http.server 8080'
alias dd
=
'
monitor
dd status=progress'
alias dd
=
'dd status=progress'
alias
screenshot-cleanup
=
'find "$HOME/Pictures" -name "Screenshot from *.png" -delete'
alias
screenshot-cleanup
=
'find "$HOME/Pictures" -name "Screenshot from *.png" -delete'
alias
black
=
'black --line-length 79'
alias
black
=
'black --line-length 79'
alias
torrent_off
=
'ssh xbmc.shore.co.il sudo systemctl stop transmission-{rss,daemon}.service'
alias
torrent_off
=
'ssh xbmc.shore.co.il sudo systemctl stop transmission-{rss,daemon}.service'
...
@@ -179,7 +174,7 @@ gen_csr () {
...
@@ -179,7 +174,7 @@ gen_csr () {
openssl req
-new
-newkey
rsa:4096
-nodes
-out
"
$name
.csr"
-keyout
"
$name
.key"
openssl req
-new
-newkey
rsa:4096
-nodes
-out
"
$name
.csr"
-keyout
"
$name
.key"
}
}
__
sync_comics
()
{
sync_comics
()
{
local
this_month last_month format
local
this_month last_month format
format
=
'+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*'
format
=
'+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*'
this_month
=
"
$(
date
"
$format
"
)
"
this_month
=
"
$(
date
"
$format
"
)
"
...
@@ -188,6 +183,11 @@ __sync_comics () {
...
@@ -188,6 +183,11 @@ __sync_comics () {
find
"
$HOME
/Downloads/Comics/"
-name
"
$(
date
--date
'2 month ago'
+
'0-Day\ Week\ of\ %Y.%m.*'
)
"
-exec
rm
-r
{}
+
find
"
$HOME
/Downloads/Comics/"
-name
"
$(
date
--date
'2 month ago'
+
'0-Day\ Week\ of\ %Y.%m.*'
)
"
-exec
rm
-r
{}
+
}
}
sync_podcasts
()
(
cd
||
exit
1
unison podcasts
)
ddg
()
{
ddg
()
{
w3m
"https://duckduckgo.com/lite/?q=
$(
echo
"
$@
"
| urlencode
)
"
w3m
"https://duckduckgo.com/lite/?q=
$(
echo
"
$@
"
| urlencode
)
"
}
}
...
...
This diff is collapsed.
Click to expand it.
Documents/bin/
__
apt-daily
→
Documents/bin/apt-daily
+
0
−
0
View file @
5cd2b399
File moved
This diff is collapsed.
Click to expand it.
Documents/bin/
__
flatpak-daily
→
Documents/bin/flatpak-daily
+
0
−
0
View file @
5cd2b399
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment