Skip to content

Instantly share code, notes, and snippets.

View alvnfaiz's full-sized avatar
💭
Energic

Alvin Faiz alvnfaiz

💭
Energic
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alvnfaiz
alvnfaiz / auto-follow.js
Last active April 3, 2022 21:18
Auto Click Follow Instagram Account
//Open https://www.instagram.com/explore/people/
// Open Developer Console
buton = document.getElementsByClassName("y3zKF");
for(let i = 0; i <buton.length;i++){
buton[i].click()
}
import React,{useState} from 'react'
import { ACTIONS } from './App';
function ListOfTodo({todo, dispatch}) {
const [isEdit, setIsEdit] = useState(false);
const [newTask, setNewTask] = useState(todo.name);
const handleSave=()=>{
dispatch({type: ACTIONS.EDIT_TODO, payload: {id: todo.id, name: newTask}});
setIsEdit(false);
// 1. Open Popcat.click
// 2. Open F12 (Console, Tab Network)
// 3. Check request seperti ini
// pop?pop_count=800&captcha_token=03AGdBq27QtkikSZjqoUI0bwXeQYgA2JSCwDih04xKWVkT4ZTTky9GpW0lypn-MlTEbYYT----------------------
//
// Buka aja di tab baru
// 4. isi variable request_url dengan link request di atas
var request_url = "isi Disini";
setInterval(function() {
@alvnfaiz
alvnfaiz / gg.js
Last active January 23, 2020 05:16
var _0x3297=['ceil','random','getTimezoneOffset','//www.madcpms.com/watch.','?key=','&kw=','stringify','&custom=','join','&dev=','isEmulate','&tz=','runTests','&res=','getResults','true','frameElement','HEAD','getElementsByTagName','childNodes','insertBefore','string','container','atContainer-','&uuid=','DONE','<!--video_banner=1;-->','var\x20dfc221c35e','match','replace','script','about:blank','innerHTML','\x22]\x20=\x20\x22','contentWindow','document','complete','margin','onerror','send','error','Invalid\x20invocation\x20parameters\x20passed','atAsyncContainers','atOptions','atAsyncOptions','splice','//www.madcpms.com/','.js','head','top','title','textContent','innerText','split','','false','','false','push','forEach','result','hasOwnProperty','test','userAgent','vendor','opera','substr','some','MSInputMethodContext','[object\x20OperaMini]','prototype','toString','call','operamini','LieDetector','createElement','div','appendChild','style','styleSheet','cssText','createTextNode','fake','background','overflow
function format_filesize( $bytes, $decimals = 2 )
{
$units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' );
for ( $i = 0; ( $bytes / 1024) > 0.9; $i++, $bytes /= 1024 ) {} // @codingStandardsIgnoreLine
return sprintf( "%1.{$decimals}f %s", round( $bytes, $decimals ), $units[ $i ] );
}
@alvnfaiz
alvnfaiz / gist:1ef307f7c66f3b995a784c671b37bde1
Created August 15, 2019 17:48 — forked from chrisle/gist:2252209
CURL as GoogleBot 2.1
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@
// TODO: Set folder ID
var folderId = 'My folder ID';
// Main function 1: List all folders, & write into the current sheet.
function listFolers(){
getFolderTree(folderId, false);
@alvnfaiz
alvnfaiz / list-files-in-folder.js
Created August 12, 2019 09:09 — forked from hubgit/list-files-in-folder.js
List all files in a folder (Google Apps Script)
function listFilesInFolder() {
var folder = DocsList.getFolder("Maudesley Debates");
var contents = folder.getFiles();
var file;
var data;
var sheet = SpreadsheetApp.getActiveSheet();
sheet.clear();
.jconfirm.jconfirm-modern.jconfirm-open{
display:none;
}