Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
1stevengrant / .htaccess
Created May 24, 2014 14:18
htaccess that can protect an environment
#
# .htaccess
# Apache Configuration File
#
# This code has been assembed from various places. A LOT of it came from
# the HTML boilerplate. See their awesome stuff here: http://html5boilerplate.com/
#
# Created by Jesse Bunch on 2011-04-15.
# Copyright 2011 Jesse Bunch (www.GetBunch.com). All rights reserved.
#
@johnmeilleur
johnmeilleur / Install-Statamic.sh
Last active August 29, 2015 14:13
Install Statamic
# Update Ubuntu with the latest updates
sudo apt-get update
# Install Apache
sudo apt-get --yes install apache2
# Enable mod_rewrite and mod_headers Apache modules
sudo a2enmod rewrite
sudo a2enmod headers
@andre3k1
andre3k1 / sunrise-calendar-icons.txt
Created January 27, 2015 21:43
An unofficial list of available icons in the Sunrise calendar app. Found any others? Let me know. http://support.sunrise.am/article/36-event-icons
airplane
airport
bank
beer
bicycle
boat
breakfast
bus
buy
cab
@jasonvarga
jasonvarga / _readme.md
Last active August 29, 2015 14:23
Restricting an account to specific sections in the CP

Simple Statamic CP edit restrictions

  • Add the hooks file to _add-ons/restrict_to/hooks.restrict_to.php.
  • Add the restrict_to tags field to your _config/bundles/member/fields.yaml.
  • To restrict pages, add them to the restrict_to field. eg. /blog, /calendar. They will only be allowed to edit pages that begin with this url.

Warning

If your member listing is visible, (it is by default), they can edit their own restricted pages.

@vmbrasseur
vmbrasseur / negotiation.markdown
Last active April 24, 2018 17:20
Negotiation Articles/Resources
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>font-name-aliases</key>
<dict>
<!-- N.B. 'system-font' is also available as an alias; it will be mapped to the actual system font at runtime. -->
<key>light</key>
<string>.SFNSText-Light</string>
<key>light-italic</key>
@jcohlmeyer
jcohlmeyer / statamic.md
Last active August 15, 2018 23:53
Statamic DO

SSH config (on your local machine)

Host [name]
  HostName [floating_ip]
  User root
  IdentityFile ~/.ssh/[ssh_key]
  IdentitiesOnly yes

Update software

@kjaymiller
kjaymiller / text_to_things3.scptd
Last active October 7, 2021 22:24
AppleScript Import Text to Things3
on run {input, parameters}
set delimitedList to paragraphs of (input as string)
tell application "Things3"
repeat with currentTodo in reverse of delimitedList
set newToDo to make new to do with properties {name:currentTodo} at beginning of list "Inbox"
end repeat
end tell
end run