Skip to content

Instantly share code, notes, and snippets.

@kidpixo
kidpixo / README.md
Last active Sep 26, 2017 — forked from ewenchou/README.md
Run Python script as systemd service
View README.md
  1. Create a service file like MYSERVICE.service
  2. Put it in /lib/systemd/system/
  3. Reload systemd using command: systemctl daemon-reload
  4. Enable auto start using command: systemctl enable MYSERVICE.service
  5. addon (thanks @nadrimajstor) : after network is up in [Unit]
View emily-mom.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kidpixo
kidpixo / CiscoVPNConnection.scpt
Last active May 29, 2016 — forked from twksos/CiscoVPNConnection.scpt
Cisco VPN Connection: Adapted for 10.8.5 notification window prompt "Enter Username and Password.".
View CiscoVPNConnection.scpt
-- Please set your vpn connection name and password here
set VPNName to "VPN name"
set VPNpassword to "VPN password"
set window_prompt to "Enter Username and Password." -- this works for OS X 10.8.5, check yours.
tell application "System Events"
tell current location of network preferences
set VPNService to service VPNName
end tell
View gist:9526076

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.