--General query |
Thursday, 16 December 2010
Confluence : FIx space permissions via SQL
Posted by
Ook
at
09:21
0
comments
Friday, 19 November 2010
Keeping an SSH tunnel (passworded) running perniciously
* Download and compile sshpass and place in DIR http://sshpass.sourceforge.net/ * Create a script like this DIR=/? LOG=$DIR/ssh.log LOCAL_PORT=15000 REMOTE_SERVER=192.168.69.69 REMOTE_PORT=1521 echo "`date` - Restarting " >> $LOG export SSHPASS='PASSWORD' $DIR/sshpass -e ssh $USERNAME@ $REMOTE_SERVER -L${LOCAL_PORT}:localhost:${REMOTE_PORT} -N -o ServerAliveInterval=30 -o TCPKeepAlive=yes -o ServerAliveCountMax=172800 echo "`date` - Ending " >> $LOG * Add the following to /etc/inittab - replace xxxx with a unique id, USER with the user to login as and and script.sh accordingly with full path xxxx:35:respawn:/bin/su - USER "/?/script.sh" * Get the init process to reload (as root) kill -HUP 1 * Test |
Posted by
Ook
at
06:14
0
comments
Thursday, 18 November 2010
Keeping Your SSH Sessions Alive Through Firewalls
To send a keep alive every 4 minutes either change ~/.ssh/config or /etc/ssh/ssh_config to add Host * ServerAliveInterval 240 |
Posted by
Ook
at
01:00
0
comments
Wednesday, 13 October 2010
Windows : More RDP-related commands
Connect to a share to get an admin connectionsLog a user off a machine * logoff sessionId /server:targetmachine<br /> |
Posted by
Ook
at
07:24
0
comments
Tuesday, 5 October 2010
Sharepoint - Where is the data hidden
SELECT TOP 1000 [tp_ID] ,tp_author ,tp_version ,[datetime1]+8 x1 ,[datetime2]+7 x2 ,[datetime1] ,[datetime2] ,[nvarchar1] ,[nvarchar2] ,[nvarchar3] ,[nvarchar4] ,[nvarchar5] ,[nvarchar6] ,[nvarchar7] ,[datetime3] ,[datetime4] ,[datetime5] ,[int1] ,[int2] ,[int3] ,[int4] ,[int5] ,[int6] FROM [WSS_Content].[dbo].[AllUserData] where 1=1 --and tp_ListId = 'DA7307B0-4D77-4DEE-A347-D183BE27CCC3' and tp_DirName = 'hr/holidays/Lists/Absences' and nvarchar5 = 'IT Development' and tp_author = 51 and tp_ID = 709 order by datetime1 desc |
Posted by
Ook
at
04:31
0
comments
Thursday, 9 September 2010
Perl : One liner to find files less than an hour old in a dir
perl -e 'for ( glob "./*" ) { system "ls -l $_" if ( -M $_ <= (1/24) ) };' |
Posted by
Ook
at
05:40
0
comments
Tuesday, 7 September 2010
iTunes Error 9808
Itunes error -9808 logging into the iTunes Music Store In Internet Explorer, go up to Tools > Internet Options. Then go to the last tab, Advanced, and scroll down to the Security section. It is the fifth box down and make sure "Check for server certificate revocation (requires restart)" is unchecked. Then access the iTunes Store. |
Posted by
Ook
at
09:57
0
comments
Subscribe to:
Posts (Atom)