Skip to content

Instantly share code, notes, and snippets.

Working from home

Rizqy Hidayat rizqyhi

Working from home
View GitHub Profile
rizqyhi /
Created Feb 12, 2018
Productive with Sublime #1

Source code awal


Hasil yang diinginkan

rizqyhi / deploy.js
Last active Jun 16, 2021
Deploy via FTP with Yarn dan ftp-deploy
View deploy.js
const FtpDeploy = require('ftp-deploy');
const chalk = require('chalk');
const ora = require('ora');
const logSymbols = require('log-symbols');
const deployer = new FtpDeploy();
const config = {
username: 'your-ftp-username',
password: 'your-ftp-password',
host: '',
rizqyhi / igfeed.php
Created Jul 18, 2017
Simple instagram media grabber. Result is cached. Output as JSON.
View igfeed.php
$username = 'sadarkawasan';
$cache_time = 60 * 60 * 2; // seconds
$media = "";
if (file_exists('igfeed.json') && (filemtime('igfeed.json') > (time() - $cache_time ))) {
$media = file_get_contents('igfeed.json');
} else {
$html = file_get_contents(''.$username);
rizqyhi / challenge.php
Last active May 22, 2017
Pak Amir punya perpus...
View challenge.php
21 May 2017
created by Arif Akbarul Huda.
Pak Amir adalah orang terpandang didesanya yang memiliki hobi membaca.
Dirumahnya tersimpan ratusan koleksi buku.
Supaya bermanfaat, Pak Amir membuat perpustakaan pribadi dan warga sekitar boleh meminjam.
rizqyhi / index.js
Created Apr 14, 2017
Belajar Firebase Functions: Kirim Email dari Contact Form
View index.js
var functions = require('firebase-functions');
var nodemailer = require('nodemailer');
// Setting email dan password pengirim
const gmailEmail = '';
const gmailPass = '';
const mailer = nodemailer.createTransport({
service: 'Gmail',
auth: {user: gmailEmail, pass: gmailPass}
rizqyhi / package.json
Last active Apr 14, 2017
Belajar Firebase Functions: Kirim Email dari Contact Form
View package.json
"name": "contact-form-email",
"description": "Kirim email dari contact form dengan Firebase Functions",
"dependencies": {
"nodemailer": "^2.4.1",
"firebase-admin": "^4.1.1",
"firebase-functions": "^0.5.1"

Naruto Scrapper

A small script to collect direct download link of Naruto. Its easier and more efficient rather than browse through the site episode by episode, then find a link to the download site, and messing with their super annoying auto-popup-ads. Thank you to the site's owner he made the permalink well organized so we don't need to search it first. Also rocks SF because they don't required us to enter captcha, click generate-link-button, etc. :)

First, we need a scrapper package, Goutte. Install it with composer:

composer require "fabpot/goutte:2.*"

Then simply put the scrapper.php inside the directory where you run the composer command.