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 | |
mysql -uroot -ppassword -e "SHOW PROCESSLIST;" |
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
@echo off | |
"C:\Program Files\Microsoft Office 15\root\office15\groove.exe" /clean /all |
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
runas /user:PERFORMANCE\Administrator "cmd" | |
compmgmt.msc | |
PS C:\Users\administrator.PERFORMANCE\Desktop> Get-WmiObject -computer localhost -class Win32_ServerConnection > there.txt |
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
@echo off | |
setlocal enabledelayedexpansion | |
set SOURCE_DIR=C:\build\subversion-1.9.3-ap24-x86 | |
set DEST_DIR=C:\build\subversion-1.9.3-ap24-x86_pdb | |
set FILENAMES_TO_COPY=*.pdb | |
for /R "%SOURCE_DIR%" %%F IN (%FILENAMES_TO_COPY%) do ( | |
if exist "%%F" ( | |
set FILE_DIR=%%~dpF |
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
<table id="people"> | |
<thead> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Phone Number</th> | |
<th>Location</th> | |
</thead> | |
<tbody> | |
<tr> | |
<td><input /></td> |
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
function format_number($number, $use_fixed) { | |
"use strict"; | |
if($use_fixed !== false){ | |
$number = $number.toFixed(2) + ''; | |
} | |
else | |
{ | |
$number = $number + ''; | |
} | |
var $array = $number.split('.'); |
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
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
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
x64 | |
http://subversion.apache.org/download/#recommended-release | |
get sqlite-amalgamation from http://www.sqlite.org/download.html | |
put NOT Compiled zlib into the source tree | |
https://serf.apache.org/download | |
needs scons ( https://bitbucket.org/scons/scons/downloads/scons-2.3.5.win-amd64.exe ) | |
open zlib\win32\Makefile.msc | |
replace line 20 with |
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
@echo off | |
net stop w32time | |
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org" | |
w32tm /config /reliable:yes | |
net start w32time | |
w32tm /query /configuration | |
w32tm /resync |
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 | |
# Copyright 2012 - Jean-Sebastien Morisset - http://surniaulula.com/ | |
# | |
# This script is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation; either version 3 of the License, or (at your option) any later | |
# version. | |
# | |
# This script is distributed in the hope that it will be useful, but WITHOUT |