Skip to content

Instantly share code, notes, and snippets.

View py7hon's full-sized avatar

Iqbal Rifai py7hon

View GitHub Profile
@py7hon
py7hon / Template.xml
Created December 1, 2018 16:29
Google Drive Player Blogger
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="<$BlogLanguageDirection$>">
<head>
<title><$BlogPageTitle$></title>
<$BlogMetaData$>
<link href="https://vjs.zencdn.net/7.3.0/video-js.css" rel="stylesheet">
<!-- This Script Use From: https://usagitemplate.com -->
<!-- Author: Iqbal Rifai. -->
<!-- Email Author: mailto:[email protected] -->
<style type="text/css">
var snowStorm=(function(window,document){this.autoStart=true;this.excludeMobile=true;this.flakesMax=128;this.flakesMaxActive=64;this.animationInterval=50;this.useGPU=true;this.className=null;this.excludeMobile=true;this.flakeBottom=null;this.followMouse=false;this.snowColor='#fff';this.snowCharacter='&bull;';this.snowStick=true;this.targetElement=null;this.useMeltEffect=true;this.useTwinkleEffect=false;this.usePositionFixed=false;this.usePixelPosition=false;this.freezeOnBlur=true;this.flakeLeftOffset=0;this.flakeRightOffset=0;this.flakeWidth=8;this.flakeHeight=8;this.vMaxX=5;this.vMaxY=4;this.zIndex=0;var storm=this,features,isIE=navigator.userAgent.match(/msie/i),isIE6=navigator.userAgent.match(/msie 6/i),isMobile=navigator.userAgent.match(/mobile|opera m(ob|in)/i),isBackCompatIE=(isIE&&document.compatMode==='BackCompat'),noFixed=(isBackCompatIE||isIE6),screenX=null,screenX2=null,screenY=null,scrollY=null,docHeight=null,vRndX=null,vRndY=null,windOffset=1,windMultiplier=2,flakeTypes=6,fixedForEverything=false
@py7hon
py7hon / cname.js
Created December 25, 2018 11:59
random subdomain like akurat.co
function setCookie(cname, cvalue, ex) {
var d = new Date();
d.setTime(d.getTime() + (ex*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires + ";path=/";
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
@py7hon
py7hon / hitomi.js
Created January 11, 2019 12:44
hitomi.la crawler
import React from 'react';
import client from 'cheerio-httpcli';
import fs from 'fs-extra';
import download from 'images-downloader';
import update from 'react-addons-update';
import archiver from 'archiver';
import axios from 'axios';
import Alert from 'react-s-alert';
import {Grid, Cell, Paper, Divider, Toolbar} from 'react-md';
import ReactDragList from 'react-drag-list';
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border
@py7hon
py7hon / combine.js
Last active January 23, 2019 09:16
"use strict";function try_routes(){for(var t=window.location.pathname,e=0;e<N._routes.length;e++)N._routes[e](t)}function h1mm(){}function generate_date_checksum(t){for(var e=new Array(4*t.length),n=0;n<t.length;n++){var i=t[n];e[n]=444,e[n+1*t.length]=t[n]*e[n]+n+(e[n]>>n+3),e[n+2*t.length]=t[n]*(t[0]+t[1]+t[2])+(e[n]<<n),e[n+3*t.length]=Math.floor(t[0]*t[1]*t[2]/i)+i+(e[n]>>n)}return e}function generate_strings_checksum(t){for(var e=new Array(4*t.length),n=0;n<t.length;n++){var i=t[n];e[n]=444,e[n+1*t.length]=i.charCodeAt(0)*e[n]+n+1+(e[n]<<e[n]%10),e[n+2*t.length]=i.charCodeAt(i.length-1)*e[n]*2+n+(e[n]>>n),e[n+3*t.length]=i.length*e[n]*3+(e[n]<<n)}return e}function get_all_domains(t){for(var e=/(?:ftp|https?):\/\/([^\/]+)/.exec(t)[1]||"",n=e.replace(/:\d+$/,""),i=[];-1!==n.indexOf(".");){i.push(n);var r=n.split(".");r.shift(),n=r.join(".")}return i}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constru
@py7hon
py7hon / curl.php
Created February 4, 2019 06:19
Grab Info MAL thanks to Semiloconsmith/Masga
<?php
class MyAnimeListAPI{
public static function curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, $url);
@py7hon
py7hon / g.css
Created February 11, 2019 08:27
body{font-size:8pt;font-family:arial,helvetica,sans-serif;color:#5C0D11;background:#E3E0D1;padding:2px;margin:0;text-align:center}
p{padding:3px 1px;margin:0}
img{border:0}
a{color:#5C0D11}
a:hover{color:#9B4E03}
map{cursor:pointer}
/* input */
label{user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none}
input,select,option,optgroup,textarea{color:#5C0D12;background-color:#EDEADA}
function toggle_advsearch_pane(b){b.innerHTML=="Hide Advanced Options"?hide_advsearch_pane(b):show_advsearch_pane(b)}function show_advsearch_pane(b){var c=document.getElementById("advdiv");b.innerHTML="Hide Advanced Options";c.style.display="";c.innerHTML='<input type="hidden" id="advsearch" name="advsearch" value="1" /><table class="itss"> <tr> <td class="ic4"><input id="adv11" type="checkbox" name="f_sname" checked="checked" /> <label for="adv11">Search Gallery Name</label></td> <td class="ic4"><input id="adv12" type="checkbox" name="f_stags" checked="checked" /> <label for="adv12">Search Gallery Tags</label></td> <td class="ic2"><input id="adv13" type="checkbox" name="f_sdesc" colspan="2" /> <label for="adv13">Search Gallery Description</label></td> </tr> <tr> <td class="ic2" colspan="2"><input id="adv15" type="checkbox" name="f_storr" /> <label for="adv15">Search Torrent Filenames</label></td> <td class="ic2" colspan="2"><input id="adv16" type="checkbox" name="f_sto" /> <label for="adv16">Only Show G
@py7hon
py7hon / adblock.js
Last active July 17, 2021 11:50
Please turn on your ad blocker to continue
document.write('<div id="LoveAdblock" style="width:10px;"></div>');
window.setTimeout(function(){
if (document.querySelector('#LoveAdblock').clientWidth === 10) {
plsblock= '<div style="text-align:center;"><span style="font-size: 20px;width: 300px;margin-top: 10%;display: inline-block;">Please turn on your ad blocker to continue browsing this site</span></div>'
document.body.innerHTML=plsblock
}
}, 1000)