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 { PAGE_SIZES, usePaginatedCollection } from "./paginationState"; | |
import firebase from "firebase/app"; | |
export type FirestoreUser = { | |
email: string; | |
address: string; | |
zip: string; | |
city: string; | |
name: string; | |
} |
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
#cloud-config | |
rancher: | |
network: | |
# interfaces: | |
# eth1: | |
# address: 172.68.1.100/24 | |
# gateway: 172.68.1.1 | |
# mtu: 1500 | |
# dhcp: false | |
dns: |
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
# Vendored javascript files | |
#= require select2 | |
# Configure defaults for all select2 inputs | |
$.fn.select2.defaults.set 'theme', 'classic' | |
$.fn.select2.defaults.set 'placeholder', 'Type to search' | |
# document ready function | |
jQuery -> |
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 | |
[ $DEBUG ] && set -x | |
WORKDIR=/tmp/repos | |
OLD_HOST=git.example.org | |
OLD_USER=gitolite | |
NEW_HOST=git.example.com | |
NEW_USER=gitolite | |
REPOS='comma,separated,list,of,repositories' |
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
source 'https://rubygems.org' | |
gem 'berkshelf', '~> 1.4.0' | |
gem 'chef', '~> 10.26.0' | |
# gem 'json', '~> 1.7.7' # if I uncomment this everything works | |
gem 'knife-solo', '~> 0.3.0.pre3' | |
gem 'capistrano' | |
gem 'capistrano_colors' | |
gem 'capistrano-notify' |
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
source 'http://rubygems.org' | |
gem 'rails', '3.1.10' | |
gem 'mysql2' | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
gem 'sass-rails', '~> 3.1.0' |
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
<?php | |
try { | |
$webthumb = new Bluga_Webthumb(); | |
$webthumb->setApiKey($APIKEY); | |
$job = $webthumb->addUrl($url,'medium2', 1024, 768); | |
$job->options->notify = "Your notify url"; | |
$webthumb->submitRequests(); | |
// save the job to retrieve it later | |
file_put_contents('/tmp/thumbjob.txt', serialize($job)); |
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
<?php | |
class ErrorController extends Zend_Controller_Action | |
{ | |
public function errorAction() | |
{ | |
$logError = true; | |
$errors = $this->_getParam('error_handler'); |
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/env ruby | |
require 'qrencoder' | |
result = "/tmp/qr.png" | |
qrcode = QREncoder.encode("a" * 2939) | |
qrcode.save_png result |
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
set :rails_env, "production" | |
set :passenger_port, 9292 | |
set :passenger_cmd, "#{bundle_cmd} exec passenger" | |
namespace :deploy do | |
task :start, :roles => :app, :except => { :no_release => true } do | |
run "cd #{current_path} && #{passenger_cmd} start -e #{rails_env} -p #{passenger_port} -d" | |
end | |
task :stop, :roles => :app, :except => { :no_release => true } do |
NewerOlder