Skip to content

Instantly share code, notes, and snippets.

@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
@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

<?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>
@vmbrasseur
vmbrasseur / negotiation.markdown
Last active April 24, 2018 17:20
Negotiation Articles/Resources
@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.

@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
@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
@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.
#
@pedro-stanaka
pedro-stanaka / clean-install-linux.sh
Last active October 11, 2018 17:14
Install all things i need in a linux (debian-based)... 64 bits version
#!/bin/sh
# Upgrade packages that are available to update
sudo apt-get update
sudo apt-get -y upgrade
# Miscelaneous tools and media players and game emulators
sudo apt-get install -y build-essential ubuntu-restricted-extras htop vcl smplayer k3b audacity audacious audacious-plugins visualboyadvance pcsxr
@jtomaszewski
jtomaszewski / multi_column_clearance.sass
Created January 31, 2014 12:34
Bootstrap 3 Grid Multi Column Clearing
// See issue https://github.com/twbs/bootstrap/issues/8810 for more information.
//
// Thanks for the idea of the fix to:
// https://github.com/sixfootsixdesigns/Bootstrap-3-Grid-Columns-Clearing
@import "bootstrap/variables"
// Useful @media mixins (based on dimensions taken from bootstrap-sass)
=media-width-below($max)