This file contains 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
import * as React from 'react'; | |
import { NextPageContext } from 'next'; | |
import Error from 'next/error' | |
import Head from 'next/head'; | |
import compact from 'lodash/compact'; | |
// import find from 'lodash/find'; | |
// Material | |
import { Theme, withStyles, WithStyles, createStyles } from '@material-ui/core/styles'; | |
import Avatar from '@material-ui/core/Avatar'; | |
import Button from '@material-ui/core/Button'; |
This file contains 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
import * as React from 'react'; | |
import { NextPageContext } from 'next'; | |
import Error from 'next/error' | |
import Head from 'next/head'; | |
import compact from 'lodash/compact'; | |
// import find from 'lodash/find'; | |
// Material | |
import { Theme, withStyles, WithStyles, createStyles } from '@material-ui/core/styles'; | |
import Avatar from '@material-ui/core/Avatar'; | |
import Button from '@material-ui/core/Button'; |
This file contains 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
select id,name,wistia_id, book_call_url from staff where active=1 and publish=1; | |
alter table staff add column wistia_id text default null; | |
alter table staff add column book_call_url text default null; | |
-- example | |
update staff set wistia_id = 'gt0dmdff1b', book_call_url = 'https://anywhereinc.simplybook.me/v2/#book/location/3/service/1/provider/5/' where id =19; -- Erick Pinell |
This file contains 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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains 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
#!/usr/bin/python | |
""" | |
Simple script you can put in your | |
crontab to monitor replication state | |
of all docs in the _replicator | |
couchdb database. | |
Will send an email with the host name, | |
doc name and state if state is not 'triggered'. |
This file contains 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
#!/bin/sh | |
# script for optimizing images in a directory (recursive) | |
# pngcrush & jpegtran settings from: | |
# http://developer.yahoo.com/performance/rules.html#opt_images | |
# pngcrush | |
for png in `find . | grep .png`; do | |
echo "crushing $png ..." | |
pngcrush -rem alla -reduce -brute "$png" temp.png |
This file contains 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
#!/usr/bin/python | |
""" | |
S3 to Rackspace Cloud Files Migration | |
This script will copy the contents of a S3 | |
bucket to to a Rackspace Cloud Files container. | |
Depends on the boto and python_cloudfiles python libraries. |
This file contains 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
#!/bin/bash | |
DA='dahdi-linux-complete-2.5.0.1+2.5.0.1' | |
WAN="wanpipe-3.5.23" | |
PRI="libpri-1.4.12" | |
apt-get -y install build-essential | |
apt-get -y install gcc | |
apt-get -y install g++ | |
apt-get -y install automake |
This file contains 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
// some data used in the examples | |
Ext.namespace('Ext.exampledata'); | |
Ext.exampledata.states = [ | |
['AL', 'Alabama', 'The Heart of Dixie'], | |
['AK', 'Alaska', 'The Land of the Midnight Sun'], | |
['AZ', 'Arizona', 'The Grand Canyon State'], | |
['AR', 'Arkansas', 'The Natural State'], | |
['CA', 'California', 'The Golden State'], | |
['CO', 'Colorado', 'The Mountain State'], |
This file contains 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
<h1> | |
LOGIN REQUIRED | |
</h1> | |
<form method="post" action="/auth/login"> | |
<p> | |
<label for="username">Username</label> | |
<input type="text" name="username" value="${c.username}" /> | |
</p> | |
<p> | |
<label for="password">Password</label> |
NewerOlder