krisanalfatimur@supernova ~/Temp/test (git)-[master] % git log --oneline
c470042 [ADD] New method to determine the number of cigarrete.
6ab57ea [ERROR] Here's an error has been introduced.
f12ef84 [UPDATE] New words.
3f1a4b3 [UPDATE] Now say hello!
3df8afb [UPDATE] Assign the function to variable.
867b7da [NEW] hello.php.
krisanalfatimur@supernova ~/Temp/test (git)-[master] %
krisanalfatimur@supernova ~/Temp/test (git)-[master] % php hello.php
View return.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$error = false; | |
function a() { | |
global $error; | |
$error = true; | |
var_dump('a'); | |
} |
View mongooo.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exportDb() { | |
echo "Exporting $1" | |
echo "db.getCollectionNames()" | | |
mongo $1 2> /dev/null | | |
grep '"' | | |
cut -d '"' -f 2 | | |
while read a; do | |
if [[ $a != "system.indexes" ]]; then |
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
View SuperContainer.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BindingResolutionException extends Exception {} | |
class SuperContainer implements ArrayAccess { | |
protected $resolved = array(); | |
protected $bindings = array(); | |
protected $instances = array(); |
View ArrayHelper.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ArrayHelper | |
{ | |
public static function except($attributes, $hidden) | |
{ | |
return array_diff_key($attributes, array_flip((array) $hidden)); | |
} | |
public static function isEmpty($array) |
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
View 02.make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-11-12 23:14:09 +0700 | |
make | |
-j4 | |
Scanning dependencies of target fastlz | |
[ 0%] Scanning dependencies of target afdt | |
Building C object third-party/fastlz/CMakeFiles/fastlz.dir/fastlz.c.o | |
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/lowlevel.c.o | |
Scanning dependencies of target pcre |
View iTerm.md
View tint2rc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tint2 config file | |
# Generated by tintwizard (http://code.google.com/p/tintwizard/) | |
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure | |
# Background definitions | |
# ID 1 | |
rounded = 0 | |
border_width = 1 | |
background_color = #2D2D2D 100 | |
border_color = #484848 100 |
View pas.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "xinix-technology/generalli", | |
"version": "1.0.0", | |
"profile": "docker", | |
"docker": { | |
"containers": { | |
"nginx": { | |
"ports": [ | |
"80:80" |
OlderNewer