#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <[email protected]> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
$(document).ready(function() | |
{ | |
/* Check to see if we have saved a style already, a bit verbose but you get the drift! */ | |
var theme = localStorage.getItem('style'); | |
if (!theme) { | |
localStorage.setItem('style', 'light'); | |
}; | |
updateTheme(); |
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Database Name: " | |
read -e dbname | |
echo "Database User: " | |
read -e dbuser | |
echo "Database Password: " |
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/.git
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<?php | |
# PDO Wrapper, supporting MySQL and Sqlite | |
# Usage: | |
# $db = new db(); | |
# | |
# // table, data | |
# $db->create('users', array( | |
# 'fname' => 'john', | |
# 'lname' => 'doe' | |
# )); |
<?php | |
class Conexao | |
{ | |
private static $conexao; | |
private function __construct() | |
{} | |
public static function getInstance() |
docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull |