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
'http://www.devx.com/vb2themax/Tip/18726 | |
' this code assumes that you have used this Imports statement | |
' Imports Microsoft.Win32 | |
' Print ProgID, CLSID, and path of all the COM components | |
' installed on this computer. | |
Sub DisplayCOMComponents() | |
' Open the HKEY_CLASSES_ROOT\CLSID key | |
Dim regClsid As RegistryKey = Registry.ClassesRoot.OpenSubKey("CLSID") |
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
sudo -u postgres psql postgres |
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 ADB to find and pull an Android package from device | |
adb shell pm list packages | |
adb shell pm path com.package | |
adb pull /data/app/com.package.app.apk | |
# With APK local, can now adb push to device and run it | |
# Use tcpdump to log traffic to mon.txt | |
sudo tcpdump -A dst port 80 > mon.txt |
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
private Control FindControlRecursive(Control root, string id) | |
{ | |
if (root.ID == id) | |
{ | |
return root; | |
} | |
foreach (Control c in root.Controls) | |
{ | |
Control t = FindControlRecursive(c, id); |
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
bundle exec rake assets:precompile |
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
protected string RemoveHTMLMarkup(string str) | |
{ | |
return Regex.Replace(str, @"<(.|\n)*?>", String.Empty); | |
} |