Skip to content

Instantly share code, notes, and snippets.

View ombak's full-sized avatar
🎯
Focusing

Sukma Saputra ombak

🎯
Focusing
View GitHub Profile
<?php
//....basic true/false declaration
$user_id = (!empty($id) ? $id : '');
<?php
if ( $kondisi ) {
print 'statement';
} else {
print 'other statement';
}
<?php
$text = 'Merokok tidak baik untuk kesehatan.';
//...output- $text
echo '$text';
//...output- Merokok tidak baik untuk kesehatan.
echo "$text";
<?php
//...single quotes
echo 'Merokok tidak baik untuk kesehatan.';
//...double quotes
echo "Merokok tidak baik untuk kesehatan.";
<?php
$array = array('sukma', 'wijaya', 'saputra'); //...array
$int = 14000; //...int
$string = 'Sukma Wijaya Saputra'; //...string
//...generate value
$aData = serialize($array);
<?php
$array = array('sukma', 'wijaya', 'saputra'); //...array
$int = 14000; //...int
$string = 'Sukma Wijaya Saputra'; //...string
//...generate value
$aData = serialize($array);
# Minimum Postfix-specific configurations.
mydomain_fallback = localhost
mail_owner = _postfix
setgid_group = _postdrop
relayhost=smtp.gmail.com:587
# Enable SASL authentication in the Postfix SMTP client.
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/X.X.X/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"