https://orga.cat/posts/most-useful-git-commands http://guides.beanstalkapp.com/version-control/common-git-commands.html
bahasa indonesia https://www.petanikode.com/tutorial/git/
git fetch daripada git pull
# | |
# Fancy two-line prompt with git integration | |
# | |
# ┌───=[ specious :: sharp -( 0 )-[ ~ ]-( master ) | |
# └──( | |
# | |
git_current_head () { | |
git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD | |
} |
#!/bin/bash | |
if [ "$(whoami)" != "root" ] | |
then | |
echo "Sorry, you are not root." | |
exit 1 | |
fi | |
echo "Downloading the latest PhpStorm to /tmp" | |
cd /tmp |
https://orga.cat/posts/most-useful-git-commands http://guides.beanstalkapp.com/version-control/common-git-commands.html
bahasa indonesia https://www.petanikode.com/tutorial/git/
git fetch daripada git pull
/*! dynamically change favicon from CSS (does not work on Internet Explorer and Safari) | |
* | |
* use with: | |
* <link id='linkCSS' href='my.css' type='text/css' rel='stylesheet' /> | |
* <link id='favicon' rel="shortcut icon" href="../images/favicon.png" type="image/png" /> | |
* | |
* my.css can contain: | |
* #favicon { background-image: url(any valid URL); } | |
*/ |
#!/bin/bash | |
if [ $# -eq 1 ] | |
NM=`uname -a && date` | |
NAME=`echo $NM | md5sum | cut -f1 -d" "` | |
then | |
ppa_name=`echo "$1" | cut -d":" -f2 -s` | |
if [ -z "$ppa_name" ] | |
then | |
echo "PPA name not found" | |
echo "Utility to add PPA repositories in your debian machine" |
#!/bin/bash | |
sudo apt-get install qt5-default | |
wget http://kcachegrind.sourceforge.net/kcachegrind-0.7.4.tar.gz | |
tar xvf kcachegrind-0.7.4.tar.gz | |
cd kcachegrind-0.7.4 | |
qmake && make | |
sudo install -m 755 qcachegrind/qcachegrind /usr/local/bin | |
sudo install -m 644 qcachegrind/qcachegrind.desktop \ | |
/usr/local/share/applications/ |
This is an example of a web that uses a remote API as a database wrapper.
The remote API is stateless and the web uses cookies to maintain session persistence.
The API authentication endpoint returns a TOKEN that allows the web to make each request to the API with the user authentication header.
Este es un ejemplo de web que usa una API remota como wrapper de base de datos.
package | |
{ | |
/** | |
* ActionScript 3.0 Code Snippet | |
* Convert Number to Rupiah & vice versa | |
* https://gist.github.com/845309 | |
* | |
* Copyright 2011-2012, Faisalman | |
* Licensed under The MIT License | |
* http://www.opensource.org/licenses/mit-license |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :