A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
<?php | |
// Basics | |
// Get a value. | |
$value = $wrapper->field_x->value(); | |
// If the field is a reference field you will get the field object | |
// To get the wrapper back use: | |
$wrapper_b = $wrapper->field_ref; | |
// To set a value. |
# place to git, ipkg, another shell commands | |
PATH=/volume1/@optware/bin:$PATH | |
export PATH | |
# more useful prompt shell | |
#PS1="`hostname`> " | |
PS1='\u@\h:\w' | |
case `id -u` in | |
0) PS1="${PS1}# ";; |
#!/bin/bash | |
# | |
# ProcessWire upgrade script | |
# | |
# Upgrades ProcessWire ./wire directory. | |
# Use either master of dev branch. | |
# | |
# |
ProcessWire Webpage Workflow | |
1. Setup v-hosts, database and install processwire (usually fixate's boilerplate generator) | |
a. the generator already does bower install. | |
2. Determine project structure and install all required modules. | |
3. Setup all required fields and templates in PW admin. | |
4. Program the logic of the web page. All php that handles dynamic data. Site specific and contact controller. | |
5. Use styleguide to program initial css. | |
6. Program site css that was not done in styleguide. | |
7. finalize by adding javascripts that are used. |
$ dpkg --get-selections | grep -v deinstall | |
acpid install | |
adduser install | |
anacron install | |
apache2-mpm-prefork install | |
apache2-utils install | |
apache2.2-bin install | |
apache2.2-common install | |
apt install |
#!/bin/bash | |
######################################################## | |
# | |
# MODX (modx.com) CLI updater | |
# Kreuder 20140308 [email protected] | |
# | |
######################################################## | |
# | |
# Description: perform a MODX Basic Upgrade via CLI. | |
# |
# Install `dnsmasq` and configure for *.test domains | |
$ brew install dnsmasq | |
$ vim /usr/local/etc/dnsmasq.conf | |
# Reload configuration and clear cache | |
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ dscacheutil -flushcache |
// Notes on how to extend [postman](http://www.getpostman.com/) to support | |
// sharing small util scripts, like fabric tasks, along with a collection | |
// so we have repeatables/easy access for non-tech folks. | |
// | |
// How to extend schema? Build on collection or a new ground up like | |
// environments? Struct looks something like: | |
var scripts = [ | |
{ | |
"name": "Continuous Health Check", | |
"description": "Runs health-check every 60 seconds and logs result", |
<?php | |
namespace Insig\UtilBundle\Validator\Constraints; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* Metadata for the UpcEanValidator. | |
* | |
* @Annotation |