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
clear host | |
# https://cloudrun.co.uk/powershell/how-to-keep-your-screen-alive-or-pc-from-going-to-sleep-during-presentations/ | |
# Script to keep the PC alive, will prevent screen lock and sleep. | |
# Works by pressing Print Screen every 2 minutes, side effect is that a screenshot will overwrite the clipboard contents | |
# | |
write-warning "I am out for lunch." | |
Do { | |
[void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | |
[System.Windows.Forms.SendKeys]::SendWait("{F1}") |
Need to copy .ssh if username
changed.
STEP 1 : check ssh is installed
prayagupd@DWNPCPU196:~$ ssh -v
OpenSSH_6.2p2 Ubuntu-6, OpenSSL 1.0.1e 11 Feb 2013
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
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
case "$2" in | |
development) | |
case "$1" in | |
clean) | |
clean | |
;; | |
runApp) | |
runApp | |
;; | |
test) |
Mac/Unix
$ getconf LONG_BIT
64
$ sysctl hw | grep cpu
hw.ncpu: 8
[1] Installation
Reference http://dba.stackexchange.com/a/1288/6710
[2] Add rule
public class CustomerOrderEventHandler extends MultiEventHandler {
private static Logger logger = LogManager.getLogger(CustomerOrderEventHandler.class);
//private BasicDataSource establishedConnections = new BasicDataSource();
//private DB2SimpleDataSource nativeEstablishedConnections = new DB2SimpleDataSource();
NewerOlder