Skip to content

Instantly share code, notes, and snippets.

View ihsanberahim's full-sized avatar
💭
focusing on the strong base for long term

Muhammad Nur'Ihsan Bin Berahim ihsanberahim

💭
focusing on the strong base for long term
View GitHub Profile

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@ihsanberahim
ihsanberahim / app.shared.validators.ts
Created July 21, 2020 06:22
Custom Proper email validation
import { AbstractControl } from '@angular/forms';
export function ValidateProperEmail(control: AbstractControl) {
const error = { properEmail: true };
if (!control.value) {
return error;
}

LNMP

  • Linux
  • Nginx
  • Mysql
  • Php
@ihsanberahim
ihsanberahim / upgrade-latest-phpmyadmin.sh
Created March 14, 2020 14:42
Upgrade latest phpmyadmin
DATA="$(wget https://www.phpmyadmin.net/home_page/version.txt -q -O-)"
URL="$(echo $DATA | cut -d ' ' -f 3)"
VERSION="$(echo $DATA | cut -d ' ' -f 1)"
wget https://files.phpmyadmin.net/phpMyAdmin/${VERSION}/phpMyAdmin-${VERSION}-english.tar.gz
tar xvf phpMyAdmin-${VERSION}-english.tar.gz
rsync -av phpMyAdmin-${VERSION}-english/ /usr/share/phpmyadmin
@ihsanberahim
ihsanberahim / JavaScriptSPAValetDriver.php
Created August 17, 2018 04:25
Laravel Valet Driver for JavaScript SPAs.
<?php
/**
* JavaScript SPA Valet Driver
*/
class JavaScriptSPAValetDriver extends ValetDriver
{
/**
* Serves
*
@ihsanberahim
ihsanberahim / _README.md
Last active May 11, 2018 03:33
DUMP SQL USE WP

DUMP SQL USE WP

  • install Debug Bar Console
  • install File Manager
@ihsanberahim
ihsanberahim / _ionic3_ionitemsliding_click_event.MD
Last active January 29, 2019 19:22
IONIC3 - Trigger IonItemSliding using click event
@ihsanberahim
ihsanberahim / helpers.js
Created March 27, 2015 23:45
reset angular in cordova app
window.origin = window.location.href.replace(window.location.hash,'').replace(window.location.search,'').replace('#','');
var reset_app = function()
{
window.open(window.origin,'_top');
}
/**
* http://ihsanberahim.com
*/
@ihsanberahim
ihsanberahim / grunt_after.json
Last active August 29, 2015 14:17
generator yo polymer grunt improvement to make your project getting smaller
{
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,txt}',