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
aptitude install build-essential make | |
aptitude install tk-dev tix-dev libsqlite3-dev |
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
<html> | |
<body> | |
<div style="background-color:red"> | |
Hello world | |
<div style="background-color:blue;border:10px solid green;width:100%;box-sizing: border-box"> | |
Sub text | |
</div> | |
</div> | |
</body> | |
</html> |
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
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions -dict ORGANIZATIONNAME "My Company Name GmbH" |
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
#!/bin/sh | |
wget http://www.yahoo.com/ >/dev/null 2>&1 | |
if [[ $? == 0 ]]; then | |
echo "found it." | |
fi |
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
status=$(ssh -o BatchMode=yes -o ConnectTimeout=5 $ip echo ok 2>&1) | |
if [[ $status == ok ]] ; then | |
echo $ip $host >> good | |
elif [[ $status == "Permission denied"* ]] ; then | |
echo $ip $host $status >> no_auth | |
else | |
echo $ip $host $status >> other | |
fi |
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 /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user |
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
@media only screen and (max-width: 450px) | |
.centerblock-when-small | |
float: none !important | |
margin-left: auto !important | |
margin-right: auto !important | |
text-align: center | |
display: table |
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
tell application "Things" | |
-- Loop through ToDos in Things | |
repeat with aToDo in to dos of list "Next" | |
-- Get title and notes of Things task | |
set theTitle to name of aToDo | |
set theNote to notes of aToDo | |
-- Get project name |
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
activate application "Skitch" | |
tell application "System Events" | |
keystroke "5" using {command down, shift down} | |
end tell |
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
tell application "Google Chrome" | |
set activeURL to URL of active tab of first window | |
end tell | |
activate application "Skitch" | |
tell application "System Events" | |
tell application process "Skitch" | |
click menu item "Snap from Link..." of menu "Capture" of menu bar 1 | |
tell (1st process whose frontmost is true) to keystroke activeURL | |
keystroke return |
OlderNewer