Skip to content

Instantly share code, notes, and snippets.

View aalfiann's full-sized avatar
🏠
Working from home

M ABD AZIZ ALFIAN aalfiann

🏠
Working from home
View GitHub Profile
@aalfiann
aalfiann / list-ecoystem-xec-ecash.txt
Created April 10, 2024 20:50
List Ecosystem of XEC eCash
Here is the list Ecosystem of $XEC #eCash.
Last update: 01 April 2024
Official:
- Exchange >> https://e.cash/get-ecash#exchanges
- Wallet >> https://e.cash/wallets
- Service Partner >> https://e.cash/get-ecash#Services
- Mining >> https://e.cash/get-ecash#mining
- eCash Community >> https://ecash.community
- eCash Play >> https://t.me/eCashPlay
@aalfiann
aalfiann / install_nodejs_kalilinux.md
Last active March 25, 2024 10:27
Install NodeJS in Kali Linux

Verify that you have all required tools

sudo apt-get install python g++ make checkinstall fakeroot

Create tmp dir and switch to it

src=$(mktemp -d) && cd $src

Download NodeJS Source

@aalfiann
aalfiann / validation_regex.js
Last active February 16, 2024 09:44
Validation Regex (Pure JS)
/**
* Validation Regex. Default is alphanumeric.
*
* @param strvalue = is the text or source to be regex. You can use selector id at here.
* @param regexvalue = your regex value here but there is alphanumeric, alphabet, numeric, username and email already exist.
* @param isElementID = if this set to true, then strvalue will read from element ID.
* @return boolean
*/
function validationRegex(strvalue,regexvalue,isElementID){
regexvalue=(regexvalue===undefined)?"alphanumeric":regexvalue;
@aalfiann
aalfiann / select-with-checkbox.js
Last active January 29, 2024 05:40
Select with checkbox pure javascript
"use strict";
/**
* Getmedik Select with Checkbox
*
* Note:
* Example required config
*
* {
* "element": "",
* "name": "",
@aalfiann
aalfiann / sqlite_big_data_pragma.php
Created January 31, 2019 13:30
SQLite for big data with pragma in php way
<?php
$db = new SQLite3('/my/sqlite/file.sqlite3');
$db->busyTimeout(5000);
// WAL mode has better control over concurrency.
// Source: https://www.sqlite.org/wal.html
$db->exec('PRAGMA main.cache_size=10000;PRAGMA main.locking_mode=EXCLUSIVE;PRAGMA main.synchronous=NORMAL;PRAGMA main.journal_mode=WAL;');
@aalfiann
aalfiann / Guide for Long-Term-Holder-Cryptocurrency-2023.md
Last active December 5, 2023 08:08
Guide for Long Term Holder Cryptocurrency 2023

Guide for Long Term Holder Cryptocurrency 2023

This is not a financial advices, because cryptocurrency is high risk and very volatile so there is no return guarantee.
But if you plan to hold for very long term, here is the some guides for you.

12 points which is describes below here is only based on medium of exchange and store of value point of view.

1. Mineable

Mineable coin will create a small inflation to stimulate an economic to the community.

@aalfiann
aalfiann / Multirequest_curl.php
Created August 13, 2018 07:35
Multi request curl php
<?php
function multiRequest($data, $options = array()) {
// array of curl handles
$curly = array();
// data to be returned
$result = array();
// multi handle
@aalfiann
aalfiann / url_check.php
Last active September 2, 2023 21:58
PHP Curl to check is url exist or not (support redirected url)
<?php
/**
* Determine that url is exists or not
*
* @param $url = The url to check
**/
function url_exists($url) {
$result = false;
$url = filter_var($url, FILTER_VALIDATE_URL);
@aalfiann
aalfiann / install_composer_xampp_ubuntu.md
Created September 3, 2019 12:41
Install composer xampp ubuntu 18

Install composer like so:

sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

After installation, you should then symlink it by running command:

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Then run the command below to allow the 'composer' command to be run globally (this will be run from within the folder where you've just installed composer in which a composer.phar file has just been created):

@aalfiann
aalfiann / maintenance_log_cwp.txt
Last active June 8, 2023 14:44
Maintenance log in Centos Web Panel
// Check the total log size all files
du -shc /usr/local/apache/logs/*
// Clean the log files
echo > access_log
echo > error_log
echo > suphp_log
// Troubleshoot CWP
502 Bad Gateway >> sh /scripts/restart_cwpsrv