Skip to content

Instantly share code, notes, and snippets.

View abdul's full-sized avatar
🎯
Focusing

Abdul Qabiz abdul

🎯
Focusing
View GitHub Profile
@abdul
abdul / screen.md
Last active August 29, 2015 14:13

Set up screen

  1. docker run --detach --interactive --tty --privileged --net=host fedora /bin/bash
  2. docker attach $CONTAINER_ID
  3. yum install screen

Create screen session

  1. docker attach $CONTAINER_ID
  2. screen -S test
  3. Detach from screen
@abdul
abdul / .backupignore
Last active August 29, 2015 14:15
A rsync incremental backup script which backs all data on a non-bootable partition. This script doesn't delete anything on destination/target disk.
.Spotlight-*/
.DocumentRevisions-*/
.MobileBackups/
.Trashes
/afs/*
/automount/*
/cores/*
/dev/*
/Network/*
/private/tmp/*

Keybase proof

I hereby claim:

  • I am abdul on github.
  • I am abdul (https://keybase.io/abdul) on keybase.
  • I have a public key whose fingerprint is 2AE0 8E56 51F5 B378 1F94 6C85 8229 D2D6 AB6B 9C23

To claim this, I am signing this object:

/**
* @class Base64
* @author Abdul Qabiz (http://www.abdulqabiz.com)
* @version 1.0
* @requires ActionScript 3.0 and Flash Player 8.5 (atleast)
*
* @credits Based on Aardwulf Systems'(www.aardwulf.com) Javascript implementation.
* (http://www.aardwulf.com/tutor/base64/base64.html)
*
**/
<?php
// Youtube FLV Fetcher
// Responds to both HTTP GET and POST requests
// Author: Abdul Qabiz (abdul dot qabiz at gmail dot com)
//
// Description:Gets the path of FLV from YouTube URL
// Is it a POST or a GET?
if (isset($_GET['url']))
{
$url = $_GET['url'];
@abdul
abdul / as2-fontlibrary.jsfl
Created March 10, 2015 06:36
Create <font>.swf using Flash IDE and JSFL
/**
_________________________________________________________________________________________________________________
Font Lib creator JSFL
@author Abdul Qabiz ([email protected])
@version 1.00 (7/13/2006)
@availability 7.0+
@usage a) Double-click to run or Run from Flash IDE's command menu.
@dependency - Requires fontlist.txt, that contains newline separated font-names.
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,
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"ElasticBeanstalkEnvironmentPermissions",
"Effect":"Allow",
"Action":[
"elasticbeanstalk:DescribeEnvironmentResources",
"elasticbeanstalk:DescribeEnvironments",
"elasticbeanstalk:DescribeEvents",
@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
@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