Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sukma Saputra ombak

🏠
Working from home
View GitHub Profile
View enable_short_tags_1.php
<?php $text = 'Hello world!'; ?>
<html>
<head>
<title>Contoh Short Tag</title>
</head>
<body>
//...tidak menggunakan Short Tag
<?php echo $text; ?>
View Perbedaan_Single_Quotes_dan_Double_Quotes_2.php
<?php
$text = 'Merokok tidak baik untuk kesehatan.';
//...output- $text
echo '$text';
//...output- Merokok tidak baik untuk kesehatan.
echo "$text";
View Perbedaan_Single_Quotes_dan_Double_Quotes_1.php
<?php
//...single quotes
echo 'Merokok tidak baik untuk kesehatan.';
//...double quotes
echo "Merokok tidak baik untuk kesehatan.";
View Fungsi_Serialize_dan_Unserialize_2.php
<?php
$array = array('sukma', 'wijaya', 'saputra'); //...array
$int = 14000; //...int
$string = 'Sukma Wijaya Saputra'; //...string
//...generate value
$aData = serialize($array);
View Fungsi_Serialize_dan_Unserialize_1.php
<?php
$array = array('sukma', 'wijaya', 'saputra'); //...array
$int = 14000; //...int
$string = 'Sukma Wijaya Saputra'; //...string
//...generate value
$aData = serialize($array);
View konfigurasi_postfix_di_macos_1.conf
# 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=
View install_mysql_pd_macos_dng_homebrew_3.sh
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
View install_mysql_pd_macos_dng_homebrew_2.sh
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
View memperbaiki_path_xcode.sh
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/