Skip to content

Instantly share code, notes, and snippets.

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

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 Apr 18, 2017 — forked from masato9000/adobe-flash-package
Downloader/packager of flash plugins for XBPS-based systems (Void Linux)
View adobe-flash-package
#!/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 Oct 17, 2015 — forked from venkateshshukla/AndroidDevLinux
Setting up your Linux for Android Application Development
View AndroidDevLinux
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
View watchfile.sh
#!/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
----------------------------------------
View 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({
View package.json
{
"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"
View drupal_redis_settings.php
<?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';
View elitedesktop.md

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

View install_venv.sh
#!/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
CSS Rounded Corners
View 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;