I’m in the middle of auditing our massive SharePoint setup and I needed a way to list out in a hierarchical way the sites, sub-sites, libraries etc in an easy manor.
Remember this KISS principal? Keep It Simple Stupid.
I had a duh moment.
Remember the DOS days? Remember the tree command?
Graphically displays the folder structure of a drive or path.
TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.
Continue reading “List SharePoint Folder Hierarchical Structure”
I have long hunted for this solution as many of our vendor’s applications break with each Java “update”. So here are the registry entries for Windows XP and Windows 7 x64. Note that this will work w/o Group Policy on a local machine but my purposes is for GP.
In Windows XP the EnableJavaUpdate registry key is located under HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava UpdatePolicy. It’s a REG_DWORD with 0×0000001 (1) value for enabled, and 0×0000000 (0) for disabled.
(You’ll see this in Windows 7 as well for the 32bit versions of Java)
Windows 7 x64
EnableJavaUpdate registry key is located under HKEY_LOCAL_MACHINESOFTWAREWow6432NodeJavaSoftJava UpdatePolicy. It’s a REG_DWORD with 0×0000001 (1) value for enabled, and 0×0000000 (0) for disabled.
Hope this helps. I refer to it constantly.
Note that this applies to ALL users at the machine level!
For some reason I’m always looking for this. This applies to Windows 7. Not sure about other versions.
You must run regedit as an administrator.
To disable these balloon messages follow the steps below:
1. Open the Registry Editor by clicking on Start -> Run and running REGEDIT.
2. Navigate to the following location:HKEY_CURRENT_USER\Software\Microsoft Windows\CurrentVersion\Policies\Explorer
3. Right-click in the blank area of the right-hand pane of the Registry Editor and create a new DWORD Value by selecting New -> DWORD Value.
4. Name this new DWORD Value NoLowDiskSpaceChecks
5. Double-click on the new DWORD value and assign it a value of 1.
6. Close the Registry Editor and restart the computer.
This can also be applied via Group Policy.
I just had the need to truncate all the tables in of my databases. Basically I wanted the data gone but the schema to stay. Below is the linux shell command I used to truncate the tables.
I’ve also included how to straight up drop the tables too- just keep in mind dropping tables dumps the schema and data.
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; done
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "drop table $table" DATABASE_NAME; done
Make sure the user executing this has privileges to the database in question.
I was (and hope to again) working on a PID loop for the dragon’s main light. The idea is simple- vary the heat lamp using a servo and rheostat. Some of you have expressed interest. Here are the photos of the servo setup. The code however is so bad I don’t even know where to start. If you get something working please let me know!
The servo and linkages work perfectly through the full 180 degree range. The issue is the PID code….
Continue reading “PID Hardware Photos”
I’m always needing to do this so here’s two quick ways.
[code]wget -qO- http://ipecho.net/plain[/code]
Or if you prefer curl:
The ifconfig.me site
If you browse this website with your normal browser it will show how to get a lot of information from the command line, using curl, to get just the IP you can use:
Now if windows was just as easy…if you have curl under Windows it is.