Skip to content

Instantly share code, notes, and snippets.

@kjaymiller
kjaymiller / text_to_things3.scptd
Last active Feb 5, 2021
AppleScript Import Text to Things3
View text_to_things3.scptd
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
View statamic.md

SSH config (on your local machine)

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

Update software

View OFIFontRegistry.plist
<?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 Apr 24, 2018
Negotiation Articles/Resources
View negotiation.markdown
@jasonvarga
jasonvarga / _readme.md
Last active Aug 29, 2015
Restricting an account to specific sections in the CP
View _readme.md

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 Jan 27, 2015
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
View sunrise-calendar-icons.txt
airplane
airport
bank
beer
bicycle
boat
breakfast
bus
buy
cab
View Install-Statamic.sh
# 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
htaccess that can protect an environment
View .htaccess
#
# .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 Oct 11, 2018
Install all things i need in a linux (debian-based)... 64 bits version
View clean-install-linux.sh
#!/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 Jan 31, 2014
Bootstrap 3 Grid Multi Column Clearing
View multi_column_clearance.sass
// 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)