Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am y0ug on github.
  • I am y0ug (https://keybase.io/y0ug) on keybase.
  • I have a public key whose fingerprint is 260F 136C F2B3 8151 E0E9 8E02 53DE E8FD 72F6 A9E3

To claim this, I am signing this object:

REM install WinRM and powershell
START "" /WAIT WindowsXP-KB968930-x86-ENG.exe /quiet /passive /norestart
REM disable all the shitz
set LIST=(helpsvc ERSvc FastUserSwitchingCompatibility RDSessMgr WZCSVC Dot3scv VSS Themes LmHosts srservice SSDPSRV SCardSvr wscsvc Spooler wuauserv CiSvc SwPrv)
for %%i in %LIST% do CALL sc config %%i start= disabled
REM enable DCOM auth without domain
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v forceguest /t REG_DWORD /d 0 /f
$path_irma = $env:SystemDrive + '\irma'
$path_probe = $path_irma + '\irma-probe'
If(Test-Path $path_irma) {
cd $path_probe
git pull
git fetch --recurse-submodules
} Else {
New-Item -path $path_irma -type directory
cd $path_irma
@y0ug
y0ug / -
Created October 12, 2014 08:32
#!/bin/bash
# 2014-10-09 17:49 CEST
# y0ug
BIF=br0
EIF=enp0s25
ip link add name $BIF type bridge
ip link set dev $BIF up
ip link set dev $EIF down
ip link set dev $EIF promisc on
# Clean temp folder
$tempfolders = @("C:\Windows\Temp\*", "C:\Windows\Prefetch\*", "C:\Documents and Settings\*\Local Settings\temp\*", "C:\Users\*\Appdata\Local\Temp\*")
Remove-Item $tempfolders -force -recurse
# Clean windows update folder
Stop-Service wuauserv
dir $env:windir\SoftwareDistribution\Download -Recurse | Remove-Item 'Recurse
#Start-Service wuauserv
# Remove hybernation file
REM disable all the shitz
REM set LIST=(helpsvc ERSvc FastUserSwitchingCompatibility RDSessMgr WZCSVC Dot3scv VSS Themes LmHosts srservice SSDPSRV SCardSvr wscsvc Spooler wuauserv CiSvc SwPrv Win32Time)
REM for %%i in %LIST% do CALL sc config %%i start= disabled
set LIST=(HKCU HKLM)
REM classic theme
CALL rundll32.exe %SystemRoot%\system32\shell32.dll,Control_RunDLL %SystemRoot%\system32\desk.cpl desk,@Themes /Action:OpenTheme /file:"C:\Windows\Resources\Ease of Access Themes\classic.theme"
[2014-11-10 20:48:21,102: ERROR/MainProcess] consumer: Cannot connect to amqp://probe:**@172.16.1.30:5672/mqprobe: timed out.
Trying again in 2.00 seconds...
[2014-11-10 20:48:23,150: INFO/MainProcess] Connected to amqp://probe:**@172.16.1.30:5672/mqprobe
[2014-11-10 20:48:23,227: INFO/MainProcess] mingle: searching for neighbors
[2014-11-10 20:48:24,305: INFO/MainProcess] mingle: sync with 2 nodes
[2014-11-10 20:48:24,305: INFO/MainProcess] mingle: sync complete
[2014-11-10 20:48:24,352: WARNING/MainProcess] celery@irma-probe-win-kav ready.
AeLookupSvc # Application Experience
BITS # Background Intelligent Transfer Service
Browser # Computer Browser
DPS # Diagnostic Policy Service
fdPHost # Function Discovery Provider Host
SharedAccess # Internet Connection Sharing (ICS)
clr_optimization_v2.0.50727_64 # Microsoft .NET Framework NGEN v2.0.50727_X64
clr_optimization_v2.0.50727_32 # Microsoft .NET Framework NGEN v2.0.50727_X86
MMCSS # Multimedia Class Scheduler
NetTcpPortSharing # Net.Tcp Port Sharing Service
$filename = "service_disabled.txt"
foreach ($line in get-content $filename) {
$line = $line.trim()
if($line.StartsWith("#")){ continue }
$elems = $line.split("#")
$srv = $elems[0].trim()
$desc = $elems[1].trim()
write-host "Disabled:" $srv "|" $desc
set-service $srv -startuptype disabled
}
# After full update of all the repo and subrepo
# in config with export VM_ENV=allinone_dev
# current patch for the issue with rabbitmq
sudo rabbitmqctl add_user frontend frontend
sudo rabbitmqctl add_user probe probe
sudo rabbitmqctl add_user brain brain
sudo rabbitmqctl change_password frontend frontend
sudo rabbitmqctl change_password probe probe
sudo rabbitmqctl change_password brain brain