Skip to content

Instantly share code, notes, and snippets.

View zhiephie's full-sized avatar
:octocat:
Focusing

Yudi Purwanto zhiephie

:octocat:
Focusing
View GitHub Profile
@zhiephie
zhiephie / mysql_backup.sh
Created July 26, 2019 08:10 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
@zhiephie
zhiephie / laravel.md
Last active December 4, 2022 23:05
Laravel Cheat Sheet & Best Practices
@zhiephie
zhiephie / How to use Images as Radio buttons.md
Created June 24, 2019 06:41 — forked from rcotrina94/How to use Images as Radio buttons.md
How to use images for radio buttons (input-radio).

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@zhiephie
zhiephie / gist:adb6947841444b39f6908e9ca321b3a9
Created March 25, 2019 07:23 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@zhiephie
zhiephie / php_upgrade_to_73.md
Last active March 2, 2019 13:22 — forked from pixeline/php_upgrade_to_71.sh
Update Mac Os X's php version to php 7.3 using homebrew.

Upgrade php

  • brew unlink php71
  • brew unlink php@7.1
  • brew list | grep php | while read x; do brew uninstall --force $x; done
  • rm -rf /usr/local/Cellar/php
  • rm -rf /usr/local/Cellar/php71/
  • sudo rm -rf /usr/local/Cellar/php71/
  • sudo rm -rf /usr/local/Cellar/php71
  • sudo rm -rf ~/Library/LaunchAgents/homebrew.mxcl.php*
  • sudo rm -rf /Library/LaunchDaemons/homebrew.mxcl.php*
@zhiephie
zhiephie / php72
Created February 22, 2019 09:02
php72
yum install php72u-cli \
php72u-common \
php72u-fpm \
php72u-gd \
php72u-imap \
php72u-mbstring \
php72u-mcrypt \
php72u-mysqlnd \
php72u-opcache \
php72u-pdo \