Useful scripts thread

Post scripts you've written or use that you have found useful

Had to do a pastebin since Jow Forums won't let me post them here for some reason (anyone know why?)
pastebin.com/pFj6bKEX

Attached: alex jones gun.png (637x608, 425K)

Other urls found in this thread:

github.com/mmercedes/ghb
golang.org/doc/
gobyexample.com/
play.golang.org/
twitter.com/NSFWRedditVideo

>using 4chanx
enjoy your botnet faggot

print("Hello World.")

I tried posting in firefox instead of chrome (doesn't have Jow Forums x installed) and it still happened :/

#!/bin/bash
declare -i n
n=$(cat sl_count.txt)

for((;;))
do
clear
sl
n+=1
echo $n
echo $n > sl_count.txt
sleep 1
done

what is in sl_count.txt?

just number of executed "sl" commands

BUMP

What do you mean? I don't notice any http requests to anything other than Jow Forums with it

I just wrote a script to backup github gists and starred repositories in case someone decides to delete them. it also deletes old gists since most of the ones I create are throwaway anyways

github.com/mmercedes/ghb

recommend a resource for learning go

The go docs are actually great in comparison to other languages
golang.org/doc/

Also this site is super helpful
gobyexample.com/

and the online go playground is good to
play.golang.org/

Icm $allprodservers {Get-service * | stop-service -force}

thanks guy

happy hacking. I'm liking go so far but i havent really made use of much of the features yet (parallelization in mind)
any feedback on my project would be appreciated if you have any

It's the shitty cloudflare filters blocking random letter sequences.

fzf

lonely retard here's your (you)

#!/bin/bash
# In /usr/local/bin/keepalive
# Add this to sudoers
sudo /usr/local/bin/_keepalive &> /dev/null

#!/bin/bash
# /usr/local/bin/_keepalive
# Will only run in a terminal, will stop as soon as you kill it
systemd-inhibit --what=handle-lid-switch bash -c read

#!/usr/bin/env node
// /usr/local/bin/lodash - lodash CLI, can be used for any node tools
// My shop uses a lot of FP and this is useful to experiment

const repl = require('repl').start();

// Requires setting something up like
// export NODE_PATH=/home/$USER/.config/yarn/global/node_modules
repl.context._ = require('lodash');

#!/bin/bash
# homefox - start my home Firefox profile
# Simply copy your profile or a blank profile to the indicated directory
# You can use this with as many profiles as you need (work, hobby, etc.)
# You currently have to close your running instance

firefox --profile /home/$USER/.mozilla/firefox/home

Forgot to mention, this keeps your laptop screen alive when you close it

bump