Skip to content

Instantly share code, notes, and snippets.

View abpin's full-sized avatar

Joseph Khoury abpin

  • Bitovi
  • La Jolla, CA
View GitHub Profile
#!/bin/bash
cronline="* * * * * /usr/bin/bash /root/movetos3.sh 1> /root/movetos3-log.txt 2> /root/movetos3-err.txt"
(crontab -u root -l; echo "$cronline" ) | crontab -u root -
@abpin
abpin / movetos3.sh
Last active May 7, 2022 14:48
move antmedia streams to s3
#!/usr/bin/bash
for i in {0..10}
do
aws s3 mv /usr/local/antmedia/webapps/WebRTCAppEE/streams/ s3://mofalive/streams/ --recursive
sleep 3
done
// General
button_tile_map : true,
editor_selector : 'lg_mceEditor',
mode:'textareas',
theme : 'advanced',
// Cleanup/Output
apply_source_formatting : true,
convert_fonts_to_spans : true,
convert_newlines_to_brs : false,
/*
A little node.js server for testing html5 ajax file uploads.
It serves up the current directory and receives uploads at /upload.
This is for use with xhr.send(file) where the entire request body is the file.
It just pauses one second between chunks so that client-side progress events
get a chance to fire. On my laptop it looks like the maximum chunk size is
around 40K, so you would still need images in the range of hundreds of kilobytes
to really be able to test it.
// Run Redis - cd redis-2.2.4 and run src/redis-server
var sip = require('sip');
var sys = require('sys');
var redis = require('redis');
var tropoapi = require('tropo-webapi');
//Trim leading and trailing whitespace from string values.
function trim(str) {
return str.replace(/^\s+|\s+$/g, '');
// Run Redis - cd redis-2.2.4 and run src/redis-server
var sip = require('sip');
var sys = require('sys');
var redis = require('redis');
var tropoapi = require('tropo-webapi');
//Trim leading and trailing whitespace from string values.
function trim(str) {
return str.replace(/^\s+|\s+$/g, '');
// History.js It!
// v1.0.1 - 30 September, 2012
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
@abpin
abpin / nginx.conf
Created September 21, 2012 02:00
nginx.conf File For ExpressionEngine or Codeigniter
server {
listen :80;
server_name www.example.com;
rewrite ^/(.*) http://example.com/$1 permanent;
}
server {
server_name example.com;
listen :80;
@abpin
abpin / top-cms-projects
Created July 14, 2012 18:13
List of top 1200 CMS systems
1. Joomla!
2. Drupal
3. Mambo
4. TYPO3 Enterprise CMS
5. WebGUI
6. WordPress
7. Plone
8. Xoops
9. PHP Nuke
10. eZ Publish