Skip to content

Instantly share code, notes, and snippets.

Rizqy Hidayat rizqyhi

Block or report user

Report or block rizqyhi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rizqyhi
rizqyhi / Formattting.md
Created Feb 12, 2018
Productive with Sublime #1
View Formattting.md

Source code awal

                        $table->string('type');
                        $table->string('name');
                        $table->text('description');
                        $table->text('data_sources');
                        $table->integer('created_by');

Hasil yang diinginkan

@rizqyhi
rizqyhi / deploy.js
Last active Jun 18, 2019
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: 'your-server.com',
@rizqyhi
rizqyhi / igfeed.php
Created Jul 18, 2017
Simple instagram media grabber. Result is cached. Output as JSON.
View igfeed.php
<?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('https://www.instagram.com/'.$username);
@rizqyhi
rizqyhi / challenge.php
Last active May 22, 2017
Pak Amir punya perpus...
View challenge.php
<?php
/*
21 May 2017
created by Arif Akbarul Huda.
PENGANTAR
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
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 = 'email.kamu@gmail.com';
const gmailPass = 'password.email.kamu';
const mailer = nodemailer.createTransport({
service: 'Gmail',
auth: {user: gmailEmail, pass: gmailPass}
@rizqyhi
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"
}
}
View readme.md

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.

You can’t perform that action at this time.