Skip to content

Instantly share code, notes, and snippets.

View abdul's full-sized avatar
🎯
Focusing

Abdul Qabiz abdul

🎯
Focusing
View GitHub Profile
#!/bin/sh
# Usage:
# ./clone.sh TESTENV_TO_CLONE_DIR NEW_TEST_ENV_DIR
# ./clone.sh TESTENV08-HOST TESTENV03-HOST
# The above will clone 08 to 03 and register the vm
#
# * Do not end the argument directories with a slash!
# Date: Mar 10, 2015
DIR_DS=$(pwd)
@abdul
abdul / gist:bf8bcd851aca44dae4ed
Created March 23, 2016 08:46 — forked from mklooss/gist:4023540
Magento Delete Old Session Files
#!/bin/bash
# delete files older than 14 days
DIR=/var/www/magento/var/session/
/usr/bin/find $DIR -depth -mtime +14 -exec rm -rf '{}' \;
@abdul
abdul / .eslintrc.js
Created March 21, 2016 10:58 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@abdul
abdul / .eslintrc
Created March 21, 2016 10:58 — forked from CrabDude/.eslintrc
.eslintrc with Babel parser support (via babel-eslint package)
{
"env": {
"node": true,
"es6": true
},
"parser": "babel-eslint",
"rules": {
"no-throw-literal": 1,
"strict": "never",
"semi": [2, "never"],
@abdul
abdul / Readme.md
Created February 19, 2016 21:55 — forked from ChuckJHardy/Readme.md
ZeroMQ + Node.js + Socket.io + UI for sending message from Ruby to a Javascript UI running on Node.js

Install the following requirements:

brew info zeromq
npm install zmq
npm install socket.io
gem install ffi-rzmq

Within the app directory run the following commands in different panes.

ruby worker.rb

@abdul
abdul / dash-avc264 command lines
Created November 25, 2015 10:54 — forked from ddennedy/dash-avc264 command lines
Use ffmpeg and mp4box to prepare DASH-AVC/264 v1.0 VoD
See my DASH-IF presentation from October, 2014:
https://s3.amazonaws.com/misc.meltymedia/dash-if-reveal/index.html#/
1. encode multiple bitrates with keyframe alignment:
ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \
-g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4
My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment
size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012.
@abdul
abdul / deis-backup.sh
Last active August 29, 2015 14:28 — forked from ianblenke/deis-backup.sh
Script for backing up deis ceph buckets to S3
#!/bin/bash
# File: deis-backup.sh
# Author: Ian Blenke
# License: Apache License, Version 2.0
#
# Note: This script is meant to be run under CoreOS "toolbox", as it uses the /media mount and talks locally to etcd to obtain Deis ceph credentials.
# Error out whenever something returns a non-zero errno
set -eo pipefail
@abdul
abdul / gotty-Dockerfile
Last active August 29, 2015 14:27 — forked from cGuille/gotty-Dockerfile
Dockerfile to run GoTTY commands inside a Docker container. Details about GoTTY here: https://github.com/yudai/gotty
FROM debian:8.1
MAINTAINER @cGuille <[email protected]>
RUN apt-get update && apt-get -y dist-upgrade
RUN apt-get install -y golang git
ENV GOPATH /usr/go
RUN mkdir $GOPATH
ENV PATH $GOPATH/bin:$PATH
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"ElasticBeanstalkEnvironmentPermissions",
"Effect":"Allow",
"Action":[
"elasticbeanstalk:DescribeEnvironmentResources",
"elasticbeanstalk:DescribeEnvironments",
"elasticbeanstalk:DescribeEvents",
package com.abdulqabiz.utils
{
public class CursorAttributes extends Object
{
public var cursorType:Class = null;
public var priority:int = 2;
public var xOffset:Number = 0;
public var yOffset:Number = 0;
public function CursorAttributes (cursorType:Class,