Skip to content

Instantly share code, notes, and snippets.

🔥
Hi

fen fenneh

🔥
Hi
  • London
Block or report user

Report or block fenneh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Deploy-Windows-Service-Via-MSBuild.proj.xml
<Project DefaultTargets="CopyOutputs;DeployService" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<!-- These settings control what the service's name, description etc appear in services.msc task panel. -->
<PropertyGroup Label="ServiceMetaData">
<ServiceName>ShinyNewService</ServiceName>
<ServiceDisplayName>Shiny New Service</ServiceDisplayName>
<ServiceDescription>A shiny new service, that changes the world for the greater good.</ServiceDescription>
</PropertyGroup>
<Choose>
View WindowsServiceLib.psm1
Set-StrictMode -Version Latest
$libPath = (Split-Path -Parent $MyInvocation.MyCommand.Definition)
Import-Module $libPath\SecurityLib.psm1
function New-WindowsService {
param
(
[Parameter(Mandatory=$True,Position=0,HelpMessage="The name of the Windows Service")]
[string]$serviceName,
View PSSessions.ps1
New-PSSession
Enter-PSSession
Exit-PSSession
Remove-PSSession
@fenneh
fenneh / suckadick.json
Created Dec 27, 2013
Bypass Virgin Blocks using HTTP Referrer
View suckadick.json
[{"id":"defaultAction","val":"dummy","type":"normal","filter":"","is3rd":true},{"id":1388180579896,"val":"http://piratebay*","type":"specific","filter":"assets.virginmedia.com","isregexp":false,"isfrom":true,"isto":true,"is3rd":true},{"id":1388180601615,"val":"http://1337x.org","type":"specific","filter":"assets.virginmedia.com","isregexp":false,"isto":true},{"id":1388180702550,"val":"http://abmp3.com","type":"specific","filter":"assets.virginmedia.com","isregexp":false},{"id":1388180723517,"val":"http://beemp3s.org","type":"specific","filter":"assets.virginmedia.com","isregexp":false},{"id":1388180844591,"val":"http://bitsnoop.com","type":"specific","filter":"assets.virginmedia.com","isregexp":false},{"id":1388180854934,"val":"http://bomb-mp3.com","type":"specific","filter":"assets.virginmedia.com","isregexp":false},{"id":1388180861637,"val":"http://emp3world.cc","type":"specific","filter":"assets.virginmedia.com","isregexp":false},{"id":1388180866825,"val":"http://extratorrent.cc","type":"specific","filter"
View wtf.ps1
$computers = Read-Host 'List computers to run against seperated by commas'
foreach($computer in $computers){
$width = (Get-WmiObject -ComputerName $computer -Class Win32_Processor).addresswidth
If($width -eq 64) Then
{psexec \\$computer msiexec /i \\Ukpddc01\netlogon\NSClient++\NSCP-0.4.1.102-x64.msi /quiet /norestart /log \\$computer\c$\NSClientInstall.log}
Else($width -eq 32) Then
{psexec \\$computer msiexec /i \\Ukpddc01\netlogon\NSClient++\NSCP-0.4.1.102-Win32.msi /quiet /norestart/log \\$computer\c$\NSClientInstall.log}
End If
}
View SecureSSL.ps1
function Set-SSLSecurityProtocols {
$protopath = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols"
& reg.exe add "$protopath\PCT 1.0\Server" /v Enabled /t REG_DWORD /d 00000000 /f
& reg.exe add "$protopath\SSL 2.0\Server" /v Enabled /t REG_DWORD /d 00000000 /f
& reg.exe add "$protopath\SSL 3.0\Server" /v Enabled /t REG_DWORD /d 00000001 /f
& reg.exe add "$protopath\TLS 1.0\Server" /v Enabled /t REG_DWORD /d 00000001 /f
& reg.exe add "$protopath\TLS 1.1\Server" /v Enabled /t REG_DWORD /d 00000001 /f
& reg.exe add "$protopath\TLS 1.1\Server" /v DisabledByDefault /t REG_DWORD /d 00000000 /f
& reg.exe add "$protopath\TLS 1.2\Server" /v Enabled /t REG_DWORD /d 00000001 /f
& reg.exe add "$protopath\TLS 1.2\Server" /v DisabledByDefault /t REG_DWORD /d 00000000 /f
@fenneh
fenneh / gist:5653601
Created May 26, 2013
Dururuirururmu Rotations
View gist:5653601
/ra G1 :: Red -> Blue -> Yellow :: Esinar, Tonz, Droodz, Milf, Tatsu, Cuttle, HP
/ra G2 :: Blue -> Yellow -> Red :: Gebuz, Araven, Mew, Tarrant, Essem, Puncehh
/ra G3 :: Yellow -> Red -> Blue :: Fen, Shen, Ani, Critten, Mean, Herc, Drae
View OctoDeploy.ps1
param
(
[string] $EnvironmentName,
[string] $Version,
[string] $ProjectName,
[string] $OctopusApiKey,
[string] $OctopusServerUrl,
[string] $ReleaseNotes
)
@fenneh
fenneh / ExchangeMMC.bat
Created Nov 1, 2012
Exchange MMC & Windows 8 -Fix
View ExchangeMMC.bat
@echo off
set __COMPAT_LAYER=RUNASINVOKER
set COMPLUS_Version=v2.0.50727
start C:\Progra~1\Microsoft\Exchan~1\V14\Bin\Exchan~1.msc
@fenneh
fenneh / DomainUser.Ps1
Created Aug 13, 2012
Get All users from AD
View DomainUser.Ps1
New-PSDrive -PSProvider ActiveDirectory -Name ADUser -Root "" -Server "dc1.lolololol.com"
pushd ADUser:
Get-ADUser -Filter * | Out-File "$env:temp\hihi.txt" -Encoding Default
popd
You can’t perform that action at this time.