###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
<theme> | |
<imagesizes> | |
<imagesize name="carouselimage" width="939" height="479" /> | |
</imagesizes> | |
<extensions> | |
<extension type="Component" subType="Slider" hasBody="0"> | |
<attributeset name="Slider Options" container="Basic"> | |
<attribute |
#! /bin/sh | |
# ================================================================== | |
# ______ __ _____ | |
# /_ __/___ ____ ___ _________ _/ /_ /__ / | |
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
# / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
# Multi-instance Apache Tomcat installation with a focus | |
# on best-practices as defined by Apache, SpringSource, and MuleSoft |
public any function onBeforeContentSave($) { | |
var newBean = $.event('newBean'); | |
if( !len(trim(newBean.getCredits())) ) { | |
newBean.setCredits( $.currentUser().getFullName() ); // autoinsert name | |
//newBean.setCredits( $.currentUser().getUserID() ); // autoinsert id | |
} | |
} |
<!--- | |
1) Drop this in your Site or Theme contentRenderer.cfc | |
2) Call this on a template: #$.dspColumnizedChildren(columns=3, imageSize='medium')# | |
3) Or within the editor via Mura tags [m]$.dspColumnizedChildren(columns=3, imageSize='medium')[/m] | |
---> | |
<cffunction access="public" output="false" returntype="any" name="dspColumnizedChildren"> | |
<cfargument name="columns" default="3" type="numeric" /> | |
<cfargument name="imageSize" default="medium" type="string" /> | |
<cfscript> | |
var str = ''; |
###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
###Let's install Vagrant###
###Select a Vagrant Box from https://vagrantcloud.com###
#add it to your list of boxes
vagrant box add hashicorp/precise32
#create a new folder for your project & init vagrant
// Brightness math based on: | |
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
$red-magic-number: 241; | |
$green-magic-number: 691; | |
$blue-magic-number: 68; | |
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
@function brightness($color) { | |
// Extract color components |
/*================================================================*/ | |
/* DESKTOP MENU | |
/*================================================================*/ | |
if (document.documentElement.clientWidth > 767) { //if client width is greater than 767px | |
ddsmoothmenu.init({ | |
mainmenuid: "main_menu", | |
orientation: 'h', | |
contentsource: "markup", | |
showhidedelay: {showdelay: 300, hidedelay: 100} //set delay in milliseconds before sub menus appear and disappear, respectively |
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all. | |
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one. | |
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format | |
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files. | |
$ cd /tmp/ | |
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist . | |
$ plutil -convert xml1 com.googlecode.iterm2.plist | |
$ vi com.googlecode.iterm2.plist |
$base-font-size: 16px; | |
$base-line-height: 1.5; | |
// this value may vary for each font | |
// unitless value relative to 1em | |
$cap-height: 0.68; | |
@mixin baseline($font-size, $scale: 2) { |