Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
maxUnsigned = 0x1FFFFFFF | |
bitsInUnsigned = int(29) | |
seventyFivePercent = int(22) | |
twelvePercent = int(4) | |
highBits = 0x1E000000 | |
lowBits = 0x01FFFFFF | |
def generateRegCode(userName): | |
reg = "" | |
sn = "" |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
1) Add this code to a new file in Script Editor | |
2) Export the script as "Application" and make sure it's code signed | |
3) Put "Startup.app" in the root folder of the test website (e.g. where index.html is located) | |
4) Make sure that "Startup.app" has Full Disk Access in System Preferences > Security & Privacy > Privacy |
#!/bin/bash | |
# | |
# GitHub Flavored Markdown | |
# https://gist.github.com/levigroker/96f96253c992b7a947d93c3d32d80b8d | |
# | |
# A BBEdit Preview Filter script to render GitHub flavored markdown as HTML | |
# See the "Applying Preview Filters" section of the BBEdit Manual | |
# https://www.barebones.com/support/bbedit/index.html#docs | |
# GitHub Flavored Markdown Spec: https://github.github.com/gfm/ | |
# GitHub Flavored Markdown CLI: https://github.com/github/cmark-gfm |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
UPDATE: Typekit Font Events have been opensourced as WebFont Loader. Typekit's available events will be updated soon with full support for the WebFont Loader API.
Web fonts may be the best thing to happen to web design in years, but that doesn't mean there aren't some tricky issues to overcome. One of the most annoying things is dealing with what's become known as the FOUT or 'Flash of
/** | |
* Filter out hard-coded width, height attributes on all images in WordPress. | |
* https://gist.github.com/4557917 | |
* | |
* This version applies the function as a filter to the_content rather than send_to_editor. | |
* Changes made by filtering send_to_editor will be lost if you update the image or associated post | |
* and you will slowly lose your grip on sanity if you don't know to keep an eye out for it. | |
* the_content applies to the content of a post after it is retrieved from the database and is "theme-safe". | |
* (i.e., Your changes will not be stored permanently or impact the HTML output in other themes.) | |
* |
#!/usr/bin/perl | |
# Description: http://daringfireball.net/2010/08/open_urls_in_safari_tabs | |
# License: See below. | |
# http://gist.github.com/507356 | |
use strict; | |
use warnings; | |
use URI::Escape; |
<?php | |
/** | |
* Instructions: | |
* | |
* 1. Put this into the document root of your Kirby site | |
* 2. Make sure to setup the base url for your site correctly | |
* 3. Run this script with `php statify.php` or open it in your browser | |
* 4. Upload all files and folders from static to your server | |
* 5. Test your site |