This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo 'Cisco AnyConnect reinstall script' | |
| echo '' | |
| USERID=`id -u` | |
| # check user permissions | |
| if [ "$USERID" -ne 0 ] | |
| then echo "Please run as root!" | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| kill -9 `pidof tcpdump` | |
| #tcpdump -i any -nlq "tcp[13] == 2 and dst port 22" | while read x; do echo "${x}"; tg_say "<b>SSH connection</b>: <i>${x}</i>"; done | |
| function get_port() { echo `echo $1|tr "." " "|awk '{print $5}'`; };tcpdump -i any -nlq 'tcp[13] == 2 and dst port 22' | while read x; do echo "${x}";SRCPORT="$(get_port `echo $x|awk '{print $3}'`)";DSTPORT="$(get_port `echo $x|awk '{print $5}'`)";echo "SRC: $SRCPORT; DST: $DSTPORT";tg_say "<b>SSH connection</b>: <i>${x}</i>";echo "SRC: $SRCPORT; DST: $DSTPORT"|tg_say;echo PROCINFO=`netstat -a -e -W -v -n -p 2>&1 |grep -v 'support'|grep -e "$SRCPORT" -e "$DSTPORT"`;$PROCINFO && echo 'related processes: ';echo $PROCINFO|tg_say; done | |
| #x='23:46:42.080380 IP 127.0.0.1.38850 > 127.0.0.1.9229: tcp 0';SRCPORT="$(get_port `echo $x|awk '{print $3}'`)";DSTPORT="$(get_port `echo $x|awk '{print $5}'`)";echo "SRC: $SRCPORT"; echo "DST: $DSTPORT";echo 'related processes: ';netstat -a -e -W -v -n -p 2>&1 |grep -v 'support'|grep -e "$SRCPORT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| transformResponse: (data, headersGetter, status) => { | |
| if (status >= 300) { | |
| return {}; | |
| } | |
| // decompressing | |
| return MappedJSON.decompress(angular.fromJson(data)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## REDACTED | |
| alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)' | |
| alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)' | |
| alias docker_clean_cache='docker system prune -a -f' | |
| alias remote_mic='ssh redacted.tor "sox -G -t alsa plughw:1,0,0 -p" | sox - -G -tcoreaudio' | |
| alias home_sound='ssh [email protected] -p 10022 "ffmpeg -f alsa -ac 1 -i hw:1 -f ogg -" | mplayer - -idle -demuxer ogg' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env bash | |
| REC_PROG_PATH=`which recordmydesktop` | |
| if [[ -z $REC_PROG_PATH ]]; then | |
| sudo apt-get install recordmydesktop | |
| REC_PROG_PATH=`which recordmydesktop` | |
| fi; | |
| WINDOW_ID=`xwininfo -name "Zoom Meeting" | grep 'id: 0x' | grep -Eo '0x[a-z0-9]+'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name legacy_workdiary | |
| // @namespace https://gist.github.com/santaklouse/b29acab90b87140a0de7b6fd90af38a9 | |
| // @version 0.3.1 | |
| // @description TamperMonkey Script that enables legacy Upwork workdiary page | |
| // @author Alex N (santaklouse) | |
| // @license 0BSD | |
| // @copyright 2022, santaklouse (https://openuserjs.org/users/santaklouse) (https://gist.github.com/santaklouse/) | |
| // @updateURL https://gist.github.com/raw/b29acab90b87140a0de7b6fd90af38a9 | |
| // @downloadURL https://gist.github.com/raw/b29acab90b87140a0de7b6fd90af38a9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| version: "2.1" | |
| services: | |
| wireguard: | |
| image: lscr.io/linuxserver/wireguard | |
| container_name: wireguard | |
| cap_add: | |
| - NET_ADMIN | |
| - SYS_MODULE | |
| environment: |