Skip to content

Instantly share code, notes, and snippets.

View IbnSaeed's full-sized avatar

Ibn Saeed IbnSaeed

View GitHub Profile
@IbnSaeed
IbnSaeed / gitflow-breakdown.md
Created May 9, 2017 18:13 — forked from morrismatts/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@IbnSaeed
IbnSaeed / adobe-flash-package
Created April 18, 2017 03:56 — forked from masato9000/adobe-flash-package
Downloader/packager of flash plugins for XBPS-based systems (Void Linux)
#!/bin/sh
_bsdl='
Copyright (c) 2017, masato9000@users.noreply.github.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
@IbnSaeed
IbnSaeed / AndroidDevLinux
Created October 17, 2015 10:54 — forked from venkateshshukla/AndroidDevLinux
Setting up your Linux for Android Application Development
Step 1. Preparation
--------------------
First take care of the dependencies for Android Application Development.
Dependencies are -
1. Java
2. ant
3. Eclipse and Android Development tools (IDE)
4. Android SDK and NDK
5. adb
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------
@IbnSaeed
IbnSaeed / example.js
Last active August 29, 2015 14:19 — forked from shakyShane/example.js
var browserSync = require("browser-sync");
browserSync.use({
plugin: function () { /* noop */},
hooks: {
'client:js': require("fs").readFileSync("./reloader.js", "utf-8") // Link to your file
}
});
browserSync({
{
"name": "my-app",
"version": "0.0.0",
"dependencies": {
"browserify": "~2.36.1",
"less": "~1.5.1"
},
"devDependencies": {
"watchify": "~0.4.1",
"catw": "~0.2.0"
<?php
// ...
define('PREDIS_BASE_PATH', DRUPAL_ROOT . '/sites/all/libraries/predis/lib/');
$conf['redis_client_interface'] = 'Predis';
$conf['cache_backends'][] = 'sites/all/modules/redis/redis.autoload.inc';

THIS ASSUMES YOU RUN DEBIAN (or ubuntu, mint) AND ARE NOT A SUCKA MC

XDM

sudo aptitude install xdm
sudo echo '/usr/bin/xdm' > /etc/X11/default-display-manager

spectrwm, dmenu

sudo aptitude install dmenu libxtst-dev
git clone git://opensource.conformal.com/spectrwm.git
cd spectrwm/linux

#!/bin/bash
PYTHONVER=2.7
PYTHON=python${PYTHONVER}
mkdir -p $HOME/{bin,tmp,lib/$PYTHON}
easy_install-${PYTHONVER} pip
pip2.7 install virtualenv --no-use-wheel
pip2.7 install --install-option="--user" virtualenvwrapper --no-use-wheel
# Update $HOME/.bashrc with appropriate environment variables
echo 'export PATH="$HOME/bin:$PATH"' >> $HOME/.bashrc
@IbnSaeed
IbnSaeed / Rounded Corners
Created May 31, 2011 09:52
CSS Rounded Corners
.round_corners {
margin-right: 10px;
padding: 10px;
width: 80px;
-moz-border-radius: 35px;
-khtml-border-radius: 35px;
-webkit-border-radius: 35px;
behavior: url('border-radius.htc');/* override for Microsoft Internet Explorer browsers*/
border-radius: 35px;/* override for Microsoft Internet Explorer browsers*/
border: 4px solid #grey;