This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcm.!default { | |
type plug | |
slave.pcm "asymed" | |
} | |
pcm.dmixer { | |
type dmix | |
ipc_key 1025 | |
slave { | |
pcm "hw:VSL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($is_single_payment) { ?> <!-- Build a way to differentiate between single payment purchases and multi-payment purchases --> | |
<div | |
class="pbg-button" ng-show="pbgEnabled" style="display:inline"; | |
data-payload=' | |
{ | |
"product": { | |
"name": "<?php echo $location_name; ?>", | |
"defaultImageUrl": "<?php echo $thumbnail; ?>", | |
"start_date": "<?php echo $start_date; ?>", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#install network ups tools | |
brew install nut | |
#create directories and change permissions | |
sudo mkdir -p /var/state/ups/upssched/ | |
sudo chown -R `whoami`:nobody /var/state/ups | |
sudo chmod 775 /var/state/ups/ | |
sudo chmod 664 /var/state/ups/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
cd | |
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
wget http://www.imagemagick.org/download/ImageMagick.tar.gz | |
tar xzvf ImageMagick.tar.gz | |
cd "$(\ls -1dt ./*/ | head -n 1)" | |
./configure && make | |
checkinstall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<%= renderPartial('users/_form.html', {user : user}) %> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<%= renderPartial('users/_form.html') %> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
res.render('users/show.html', { layout : 'application' }) | |
// Or in a beforeAction that runs in all controller methods | |
var UsersController = Class('UsersController').inherits(BaseController)({ | |
beforeActions : [ | |
{ | |
before : [function(req, res, next) { | |
res.locals.layout = 'users-layout' | |
next() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<!-- webpack -d --> | |
<script src="/dist/bundle.js"></script> | |
</head> |
NewerOlder