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 | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| warn='!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' | |
| echo -e "$warn\n$warn\n$warn" | |
| echo " WARNING" |
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 | |
| # GUI version. Could be really useful for Partedmagic. Work-in-progress. | |
| export MAIN_DIALOG=' | |
| <window title="Mouse Jiggler"> | |
| <vbox> | |
| <text> | |
| <label>Jiggle the mouse to prevent the display from sleeping</label> | |
| </text> |
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 | |
| # Have a character tell you a fortune every n minutes | |
| # Dependencies: | |
| # - sed | |
| # - shuf | |
| # - sleep | |
| # - fortune | |
| # - cowsay |
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 | |
| # automatically log into Thruk | |
| # useful for wall mounted monitors | |
| # midori is a low resources browser suitable for raspberryPi | |
| pkill midori | |
| midori http://example.com/thruk/#cgi-bin/tac.cgi & | |
| sleep 5 | |
| wmctrl -i -r 0x2c00004 -b add,maximized_vert |
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
| Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinst powershell | |
| cinst notepadplusplus | |
| cinst 7zip | |
| cinst chocolatey | |
| cinst firefox | |
| cinst vlc | |
| cinst malwarebytes |
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 | |
| ## | |
| ## CONFIGURATION (Edit at will) | |
| ## | |
| screenw=1280 | |
| screenh=1024 | |
| speed=2 # the amount of pixels to move the window by | |
| debug=0 # level 0-2 |
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
| , ,_ | |
| |`\ `;;, ,;;' | |
| | `\ \ '. .'.' | |
| | `\ \ '-""""-' / | |
| `. `\ / |` | |
| `> /; _ _ \ | |
| / / | . ; | |
| < (`";\ () ~~~ (/_ | |
| ';;\ `, __ _.-'` ) | |
| >;\ ` _.' |
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
| --- | |
| - name: create array of installable package names | |
| set_fact: | |
| myItems: | |
| - firefox | |
| - googlechrome | |
| - vcredist2008 | |
| - vcredist2012 | |
| - notepadplusplus |
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
| --- | |
| - fail: | |
| when: var1 is undefined or | |
| var2 is undefined or | |
| var3 is undefined |
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
| module['exports'] = function lolSummoner(hook) { | |
| hook.res.json(hook.params); | |
| http.get('https://na1.api.riotgames.com/lol/summoner/v3/summoners/by-name/'+hook.params.name, function(res) { | |
| hook.debug(hook.params.name + " is the summoner name requested" + res.body); | |
| hook.res.end(res.body); | |
| }).on('error', function(e) { | |
| hook.debug(e); | |
| hook.res.end(e); | |
| }); |