curl -s https://gist.githubusercontent.com/silviuvulcan/219034b94be99ec38fb2/raw/hsdeploy.sh | bash
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
| <?php | |
| $file = 'somefile.txt'; | |
| header("Content-Description: File Transfer"); | |
| header("Content-Type: application/octet-stream"); | |
| header('Content-Disposition: attachment; filename="'.basename($file).'"'); | |
| readfile($file); | |
| ?> |
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 | |
| # | |
| # Calomel.org | |
| # https://calomel.org/zfs_health_check_script.html | |
| # FreeBSD 9.1 ZFS Health Check script | |
| # zfs_health.sh @ Version 0.15 | |
| # Check health of ZFS volumes and drives. On any faults send email. In FreeBSD | |
| # 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS | |
| # pools. For now, in FreeBSD 9, we will make our own checks and run this script |
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/python | |
| # | |
| # HD44780 LCD Test Script for | |
| # Raspberry Pi | |
| # | |
| # Author : Matt Hawkins | |
| # Site : http://www.raspberrypi-spy.co.uk | |
| # | |
| # Date : 26/07/2012 | |
| # |
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 | |
| # goes in /sbin !!! | |
| nohup sh -c "sleep 1 ; /usr/local/sbin/update-issue.sh" & |
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/perl -w | |
| ############################################################################## | |
| ## | |
| ## Written by: Jared Cheney <[email protected]> | |
| ## | |
| ## Original Template written by: | |
| ## Brandon Zehm <[email protected]> and Jared Cheney <[email protected]> | |
| ## | |
| ## License: | |
| ## |
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 | |
| LV="$1" | |
| distros=( el6 el7 ) | |
| LOG="$HOME/deploy.log" | |
| if type tput >/dev/null 2>&1; then | |
| RED=$(tput setaf 1) | |
| GREEN=$(tput setaf 2) | |
| YELLOW=$(tput setaf 3) | |
| BLUE=$(tput setaf 4) |
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
| for i in $(seq 10); do command ARG1 ARG2 > output_$i.txt 2>&1 & sleep $(($RANDOM %3));done |
evs C:/Program Files (x86)/Evernote/Evernote/ENScript.exe showNotes /q "$$"
evn C:\Program Files (x86)\Evernote\Evernote\Evernote.exe /NewNote
cmd C:\Windows\System32\cmd.exe
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
| # /etc/apt/apt.conf.d/30detectproxy: | |
| # Fail immediately if a file could not be retrieved. Comment if you have a bad | |
| # Internet connection | |
| Acquire::Retries 0; | |
| # undocumented feature which was found in the source. It should be an absolute | |
| # path to the program, no arguments are allowed. stdout contains the proxy | |
| # server, stderr is shown (in stderr) but ignored by APT | |
| Acquire::http::ProxyAutoDetect "/etc/apt/detect-http-proxy"; |