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
import os | |
import urllib | |
import json | |
import platform | |
import tarfile | |
import shutil | |
import urllib2 | |
ACTIVATE_SH = """ | |
export PATH="{0}:$PATH" |
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
function download_node { | |
param([string]$node_directory, [string]$node_version) | |
$node_exe = (Join-Path $node_directory "node.exe") | |
if (Test-Path $node_exe) { | |
Write-Host "Doing nothing as $node_exe exists" | |
return | |
} | |
if (!$node_version) { |
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 arp-scan -I eth0 -l |
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
./mage mage-setup | |
./mage -V | |
./mage list-channels | |
./mage install connect20.magentocommerce.com/community/ | |
e.g. ./mage install connect20.magentocommerce.com/community/ IG_LightBox |
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
Open the Start menu and then hold down the Ctrl and Shift keys at the same time. Right-click on an empty area of the menu, and you’ll see a new option called “Exit Explorer” | |
From -> http://www.howtogeek.com/howto/windows-vista/hidden-trick-to-close-windows-explorer-in-vista/ | |
Explorer needs to be restarted from the task manager. Get to the task manager with CTRL+SHIFT+ESC |
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
puppet master --no-daemonize --debug |
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
Instead of modifying a binding in some way (for example you can make it dependent on other control name as it is proposed in other answer) I would move separate the control which will be disabled and control where DataContext will be changed. For example: | |
<ContentControl IsEnabled="{Binding CanModify}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"> | |
<localControls:TeamEmployeeSelector DataContext="{Binding Confidentiality}"/> | |
</ContentControl> | |
From http://stackoverflow.com/a/5444979/1260257 |
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
cat fields.txt | awk 'sub(";","",$2){print "const",$1,"Get"substr(toupper($2), 1,1)substr($2,2)"()","const","{ return",$2"; }"}' | |
E.g. fields.txt contains: | |
std::string test; | |
bool jaunTwoThree; | |
Note this command will remove semicolons |
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
int i = 0; | |
EnumType t = static_cast<EnumType>(i); |
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
wget --mirror -p --convert-links -P <destdir> <URL> |
NewerOlder