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
# stolen from: | |
# http://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/ | |
# | |
# NOTE: Be sure to run as Admin and restart to take effect. | |
$svcName = Get-Service -DisplayName *jenkins* | select -Exp Name | |
$svcKey = Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\$svcName | |
# Set 9th bit, from http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx | |
$newType = $svcKey.GetValue('Type') -bor 0x100 |
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 | |
rem | |
rem **************************************************************************** | |
rem | |
rem Copyright (c) Microsoft Corporation. All rights reserved. | |
rem This code is licensed under the Microsoft Public License. | |
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF | |
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY | |
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR | |
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. |
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
me@ubuntu:/opt/blu/meshblu/node_modules/mosca/node_modules/zmq$ node-gyp rebuild | |
gyp info it worked if it ends with ok | |
gyp info using node-gyp@2.0.2 | |
gyp info using node@0.12.7 | linux | x64 | |
gyp info spawn python2 | |
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py', | |
gyp info spawn args 'binding.gyp', | |
gyp info spawn args '-f', | |
gyp info spawn args 'make', | |
gyp info spawn args '-I', |
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
#deb http://kambing.ui.ac.id/ubuntu/ trusty main restricted universe multiverse | |
#deb http://kambing.ui.ac.id/ubuntu/ trusty-updates main restricted universe multiverse | |
#deb http://kambing.ui.ac.id/ubuntu/ trusty-security main restricted universe multiverse | |
#deb http://kambing.ui.ac.id/ubuntu/ trusty-backports main restricted universe multiverse | |
#deb http://kambing.ui.ac.id/ubuntu/ trusty-proposed main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-updates main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-security main restricted universe multiverse | |
deb http://dl2.foss-id.web.id/ubuntu/ trusty-backports main restricted universe multiverse |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/bin/bash | |
echo | |
java -version | |
update-alternatives --display java | |
javac -version | |
update-alternatives --display javac | |
echo | |
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
#!/bin/bash | |
apt-get install mc htop git unzip wget curl aria2c -y | |
echo | |
echo "=====================================================" | |
echo " WELCOME" | |
echo "=====================================================" | |
echo | |
echo "Hub" |
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 Variables ***** | |
declare @GB float | |
declare @MB float | |
declare @KB float | |
declare @B float | |
--***** Assign Variable Values ***** | |
set @GB = (cast(8192 as float) / cast(1073741824 as float)) | |
set @MB = (cast(8192 as float) / cast(1048576 as float)) | |
set @KB = (cast(8192 as float) / cast(1024 as float)) |
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
--kode#1 | |
SELECT OBJECT_NAME(id) | |
FROM SYSCOMMENTS | |
WHERE [text] LIKE '%Foo%' | |
AND OBJECTPROPERTY(id, 'IsProcedure') = 1 | |
GROUP BY OBJECT_NAME(id) | |
--kode#2 | |
SELECT ROUTINE_NAME, ROUTINE_DEFINITION | |
FROM INFORMATION_SCHEMA.ROUTINES |
OlderNewer