I would expect to get
3 4 5 6
3 4 5 6
but the shifted parameters are still in place :-(
wwalker@serenity:~ ✓ $ ./a.sh 1 2 3 4 5 6
3 4 5 6
1 2 3 4 5 6
#!/bin/bash | |
args=() | |
arg_parser(){ | |
shift | |
shift | |
while (( $# > 0 )); do | |
args+=("$1") | |
shift |
I would expect to get
3 4 5 6
3 4 5 6
but the shifted parameters are still in place :-(
wwalker@serenity:~ ✓ $ ./a.sh 1 2 3 4 5 6
3 4 5 6
1 2 3 4 5 6
wwalker@polonium:~/timeouts ✘ $ curl -X GET 'https://threatgrid.app.vividcortex.com/api/v2/queries/samples/search?from=1556668800&offset=0&limit=400&query=%7B%22filters%22:%5B%7B%22attribute%22:%22latency%22,%22operator%22:%22%3E%22,%22value%22:120%7D%5D%7D&until=1574208000&host=11' -H 'Authorization: Bearer pT113awxsl1GBNgfdFdjfkoBZrMDqWgx' -H 'X-Indent: true' > 0.out | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 126k 0 126k 0 0 195k 0 --:--:-- --:--:-- --:--:-- 195k | |
wwalker@polonium:~/timeouts ✓ $ curl -X GET 'https://threatgrid.app.vividcortex.com/api/v2/queries/samples/search?from=1556668800&offset=400&limit=400&query=%7B%22filters%22:%5B%7B%22attribute%22:%22latency%22,%22operator%22:%22%3E%22,%22value%22:120%7D%5D%7D&until=1574208000&host=11' -H 'Authorization: Bearer pT113awxsl1GBNgfdFdjfkoBZrMDqWgx' -H 'X-Indent: true' > 400.out |
#include "grab-keyboard.h" | |
static int ApplicationErrorHandler(Display *display, XErrorEvent *theEvent) | |
{ | |
exit(127); /* clearly we aren't calling the error handler :-( */ | |
(void) fprintf(stderr, | |
"Ignoring Xlib error: error code %d request code %d\n", | |
theEvent->error_code, | |
theEvent->request_code) ; |
#include "grab-keyboard.h" | |
static int ApplicationErrorHandler(Display *display, XErrorEvent *theEvent) | |
{ | |
exit(127); /* clearly we aren't calling the error handler :-( */ | |
(void) fprintf(stderr, | |
"Ignoring Xlib error: error code %d request code %d\n", | |
theEvent->error_code, | |
theEvent->request_code) ; |
#include "grab-keyboard.h" | |
int main(int argc, char **argv) | |
{ | |
Display *dpy; | |
int x=0; | |
XEvent ev; | |
if((dpy = XOpenDisplay(NULL)) == NULL) { | |
perror(argv[0]); |
logging_collector = off # Enable capturing of stderr and csvlog | |
log_min_duration_statement = 1000 # -1 is disabled, 0 logs all statements | |
log_checkpoints = on | |
log_line_prefix = '%m [%p]: u=[%u] db=[%d] app=[%a] c=[%h] s=[%c:%l] tx=[%v:%x] ' | |
log_statement = 'ddl' # none, ddl, mod, all | |
log_timezone = 'UTC' |
Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
# Take the session history and append it to the .bash_history file, and if successful, remove the session file | |
cat "$HISTFILE" >> "$HOME"/.bash_history && /bin/rm "$HISTFILE" |
*.gpg filter=gpg diff=gpg | |
*.asc filter=gpg diff=gpg |