Skip to content

Instantly share code, notes, and snippets.

@sqordfish
sqordfish / gist:e29c19673772ab957f8c
Last active August 29, 2015 14:08
enable rdp after win 7
net user CyberNexusSAIC password /add
net localgroup administrators CyberNexusSAIC /add
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall add rule name=" " dir=in action=allow protocol=TCP localport=3389
netsh advfirewall firewall add rule name=" " dir=in action=allow protocol=UDP localport=3389
@sqordfish
sqordfish / gist:c66bc81a946bb0ad752f
Last active August 29, 2015 14:08
Enable rdp before win 7
net user CyberNexusSAIC password /add
net localgroup administrators CyberNexusSAIC /add
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall set portopening all 3389 " "
@sqordfish
sqordfish / organize.py
Created June 23, 2014 02:54
Python script for organizing files in windows into multiple folders by file type. I made this primarily to organize my downloads folder.
#Author: Jacob Rust
#Date: 7/8/2013
#Description:This script organizes downloaded files into separate folders depending
#on the file type. This was made for windows systems.
#Download directory should be the first command line argument
#New file types can be added to the dictionary in the main method
import os
import sys
import hashlib