Skip to content

Instantly share code, notes, and snippets.

@fluxsaas
fluxsaas / s3.sh
Created January 20, 2018 21:12 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@fluxsaas
fluxsaas / index-01-plugins.html
Created August 15, 2017 06:30
index-01-plugins.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>PLUGINS</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<h1 id="hello-world">HELLO WORLD!</h1>
<button id="change-it">greet</button>
@fluxsaas
fluxsaas / bump-version.sh
Last active January 25, 2017 07:09 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and commit with GIT. Works with GIT FLOW
#!/bin/bash
# FORK:
# this version is modified to work with git flow:
# develop$ git flow release start 3.5.6
# release/3.5.6$ ./bump-version.sh
# release/3.5.6$ git flow release finish 3.5.6 -m "finish up release 3.5.6"
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
@fluxsaas
fluxsaas / server.js
Created August 18, 2014 06:51
Node server for Backbone app with push state and redirects to Rails-API
// Server to foreward ajax requests
// http://stackoverflow.com/questions/7559862/proxy-with-nodejs-and-express/20539239#20539239
// http://stackoverflow.com/questions/10435407/proxy-with-express-js
var express = require('express'),
request = require('request'),
path = require('path'),
app = express(),
cson = require('cson'),
modRewrite = require('connect-modrewrite'),
@fluxsaas
fluxsaas / flightplan.coffee
Created July 14, 2014 08:51
example flightplan.coffee
# flightplan.js
Flightplan = require("flightplan")
plan = new Flightplan()
release_number = new Date().getTime()
application = 'backbone_stage'
deploy_to = "/var/www/#{application}/current"
releases_dir = "/var/www/#{application}/releases"
@fluxsaas
fluxsaas / config.ru
Last active August 29, 2015 14:02
example proxy config.ru to foreward ajax request to different domain (CORS - workaround)
# Rack app to proxy ajax request to server on different domain (CORS).
# This is usefull if you have a rails-api and a backbone frontend on different domains
# and you want an easy solution to develop both apps on your local mashine with pow.
# Put this file in your backbone/angular/javascript folder.
# The assets should be in the ./public folder
# extend the REGEX to match a path you want to redirect.
# @redirect_regex = /\/api/
@fluxsaas
fluxsaas / webhooks.txt
Created October 14, 2013 12:09
Fastbill Automatic Webhooks
mögliche Notifications:
-----------------------
- subscription.created
- subscription.changed
- subscription.canceled
@fluxsaas
fluxsaas / redis.csv
Last active December 25, 2015 05:19
minuteman redis RAM
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
0 string mm:minuteman_public_site_2013-10-10 10:28 175116462 string 175116331 175116331
0 string mm:minuteman_public_site_2013-10-10 175116456 string 175116331 175116331
0 string mm:minuteman_public_site_2013-W40 175116454 string 175116331 175116331
0 string mm:minuteman_public_site_2013-10 175116453 string 175116331 175116331
0 string mm:minuteman_public_site_2013 175116450 string 175116331 175116331
0 string mm:minuteman_public_site_2013-10-10 10:26 175098019 string 175097888 175097888
0 string mm:minuteman_public_site_2013-10-10 09:35 174714418 string 174714287 174714287
0 string mm:minuteman_public_site_2013-10-10 09:00 174714418 string 174714287 174714287
0 string mm:minuteman_public_site_2013-10-10 09:34 174712246 string 174712115 174712115
0 string mm:minuteman_public_site_2013-10-10 08:00 174430773 string 174430642 174430642
<div class="bs-callout bs-callout-danger">
<h4>Zeitplan und Weiterentwicklung</h4>
<p>
Die erste Beta-Phase startet am:
<strong>Fr. 23 August.</strong>
</p>
<p>
Zugänge versenden wir mit Hilfe unserers Email verteilers.
</p>
<p>
<ol>
<li>Synchronisation mit Third Party Applications</li>
<li>Festes Einkommen für Mitarbeiter definierbar</li>
<li>Timer, Pausen und Gehaltsabrechnungen vor Änderungen schützen.</li>
</ol>