Skip to content

Instantly share code, notes, and snippets.

@mistergraphx
mistergraphx / README.md
Last active March 10, 2022 13:51 — forked from senorihl/README.md
Preserve merge order

Bash script for clean staging branch

Installation

On Mac Os 11 first install wget and tac

brew install wget
brew install coreutils
/** Creating and Deploying using Git, Github and PHP **/
Prerequisites:
Server: SSH Acces, PHP, Git
Local: SSH, Git
0.Create a PHP file in your project called "deploy.php" with this content: /*<?php `git pull`;*/
1. Create Your Github Repo
2. Go to your project folder and initiate a git repository
@mistergraphx
mistergraphx / git_cheatsheet.md
Last active February 24, 2019 06:51 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@mistergraphx
mistergraphx / MySQL_macOS_Sierra.md
Last active May 1, 2018 09:51 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@mistergraphx
mistergraphx / Create iOS Icons.jsx
Last active July 28, 2016 06:10 — forked from RichardBronosky/Create iOS Icons.jsx
Photoshop Script to Create iPhone Icons from iTunesArtwork Original: https://gist.github.com/appsbynight/3681050
// Photoshop Script to Create iPhone Icons from iTunesArtwork
// Original: https://gist.github.com/appsbynight/3681050
// Turn debugger on. 0 is off.
// $.level = 1;
try
{
// Prompt user to select iTunesArtwork file. Clicking "Cancel" returns null.
var iTunesArtwork = File.openDialog("Select a sqaure PNG file that is at least 1024x1024.", "*.png", false);
@mistergraphx
mistergraphx / _decimal.scss
Created July 15, 2016 14:57 — forked from terkel/_decimal.scss
Rounding decimals in Sass
// _decimal.scss | MIT License | gist.github.com/terkel/4373420
// Round a number to specified digits.
//
// @param {Number} $number A number to round
// @param {Number} [$digits:0] Digits to output
// @param {String} [$mode:round] (round|ceil|floor) How to round a number
// @return {Number} A rounded number
// @example
// decimal-round(0.333) => 0
@mistergraphx
mistergraphx / Super simple background image slideshow.css
Created February 29, 2016 16:51 — forked from mhulse/Super simple background image slideshow.css
Super simple jQuery background-image random slideshow (using CSS3 for the transition and gets the image paths via HTML5 `data` attribute).
[data-slides] {
background-image: url(../../uploads/banner1.jpg); /* Default image. */
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
transition: background-image 1s linear;
}
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
// Brightness math based on:
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx
$red-magic-number: 241;
$green-magic-number: 691;
$blue-magic-number: 68;
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number;
@function brightness($color) {
// Extract color components
// ----
// libsass (v3.2.2)
// ----
/*# Theme generator
@see - Source : <http://www.developwithpurpose.com/creating-a-sass-theme-engine/>
Styleguide theming
*/