# cdf: cd to frontmost window of Finder
cdf ()
{
currFolderPath=$( /usr/bin/osascript <<" EOT"
tell application "Finder"
try
set currFolder to (folder of the front window as alias)
on error
This file contains hidden or 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
<?xml version="1.0" standalone='no'?> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_rfb._tcp</type> | |
<port>5900</port> | |
</service> | |
</service-group> |
This file contains hidden or 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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
-
Install Avahi Netatalk
sudo apt-get install netatalk
-
Make VNC service available via Bonjour
- Create a file /etc/avahi/services/rfb.service (as root) with this content:
<?xml version="1.0" standalone='no'?>
-
Install TightVNC Server
sudo apt-get install tightvncserver
-
Run TightVNC Server
tightvncserver
Note: By default this will set up a VNC session on display 1 (i.e. port 5901)
- Set password
This file contains hidden or 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
on run | |
tell application "Google Chrome" | |
make new window | |
set URL of active tab of window 1 to "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&shva=1" | |
activate | |
end tell | |
end run |
References and Resources from the Design Days presentation at Microsoft Paris October, 2014
The Post-PSD Era | Brad Frost Web
“The Post-PSD Era: A problem of expectations,” an article by Dan Mall
This file contains hidden or 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/bash | |
# ------------------------------------------------------------------ | |
# Title: piupdate.sh | |
# Author: Andrew Miller | |
# Version: 0.1.1 | |
# | |
# Description: | |
# A really simple script that runs through all of the usual updates | |
# for a Raspbian Raspberry Pi. | |
# |
This file contains hidden or 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 /sys/class/thermal/thermal_zone0/temp | awk '{ $1 = (((9/5)*$1)+32)/1000 } 1' |