This file contains 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
@echo off | |
:: some macros to improve legibility | |
set CHECK_DELETE= || ( echo deletion failed - exiting & exit /b ) | |
set CHECK_CREATE= || ( echo creation failed - exiting & exit /b ) | |
set CHECK_COMMIT= || ( echo commit failed - exiting & exit /b ) | |
set CHECK_READ= || ( echo read failed - exiting & exit /b ) | |
set CHECK_RENAME= || ( echo rename failed - exiting & exit /b ) | |
:: clean up |
This file contains 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
If Wscript.Arguments.Count < 3 Then | |
WScript.Echo "usage: sendmail email title file" | |
WScript.Quit 1 | |
End If | |
EmailTo = Wscript.Arguments(0) | |
EmailTitle = Wscript.Arguments(1) | |
EmailFile = Wscript.Arguments(2) | |
This file contains 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
@echo. %~$PATH:1 |
This file contains 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
/** | |
* | |
*/ | |
package martin.patrick; | |
import java.util.Arrays; | |
/** | |
* @author Patrick | |
* |
This file contains 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
INPUT_FILTER = C:/pas2dox/pas2dox.exe |
This file contains 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
sudo apt-get install apache2 | |
sudo apt-get install php5 | |
sudo /etc/init.d/apache2 restart | |
sudo a2enmod userdir | |
sudo a2enmod php5 # just as a reminder | |
# sudo emacs /etc/apache2/mods-enabled//php5.conf # comment out the admin directve for userdirs | |
sudo /etc/init.d/apache2 restart |
This file contains 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 ((a=1; a <= 1000 ; a++)); do ./wake-ls-mini-bk; sleep 10 ; done |
This file contains 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
$ sudo os-prober | |
/dev/sda1:Windows Recovery Environment (loader):Windows:chain | |
/dev/sda2:Windows 8 (loader):Windows1:chain | |
$ sudo update-grub2 | |
Generating grub.cfg ... | |
Found background image: /usr/share/images/desktop-base/desktop-grub.png | |
Found linux image: /boot/vmlinuz-3.2.0-4-amd64 | |
Found initrd image: /boot/initrd.img-3.2.0-4-amd64 | |
Found Windows Recovery Environment (loader) on /dev/sda1 |
This file contains 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
# define the list of names | |
names = ["Benchmark Bills", | |
"Benchmark Bonds", | |
"Bills", | |
"Bonds", | |
"Agency", | |
"Sub-National", | |
"Corporate", |
This file contains 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 {1..1000}; do echo sending wakeup && ../bin/swakeup 00:1D:73:4C:99:2E && sleep 100 ; done |
OlderNewer