Skip to content

Instantly share code, notes, and snippets.

View aice09's full-sized avatar

Carl Angelo Nievarez aice09

View GitHub Profile
@aice09
aice09 / mangfreak_auto.js
Last active November 19, 2023 16:21
Automatically download MangaFreak files
// Before running this code, please make sure to configure your browser settings to allow automatic downloads.
// Define the base URL and set the initial number
let baseUrl = 'https://images.mangafreak.net/downloads/One_Piece_';
let startNumber = 1; // You can change this to any specific number set by the user
for (let i = startNumber; i <= 1083; i++) { // Change the end number to 1083 or any specific number set by the user
setTimeout(() => {
// Format the number with leading zeros
let num = i;
@aice09
aice09 / upgrade_script.py
Created September 20, 2023 16:08
Netbox Manual Upgrade
########## upgrade_script.py - start ##########
import argparse
parser = argparse.ArgumentParser(description='A simple script to help with netbox upgrades')
parser.add_argument("-f",help="Version of netbox you're looking to upgrade FROM 'ex 2.7.8'")
parser.add_argument("-t",help="Version of netbox you're looking to upgrade TO 'ex 2.7.9'")
args = parser.parse_args()
goFrom = str(args.f)
@aice09
aice09 / digester.js
Last active November 7, 2023 14:36
Download multiple files at a time
var itemurl=`https://cdn.hxmanga.com/file/majekayoo/record-of-ragnarok/Chapter-68/`
for(let i=1; i<=42; i++){
setTimeout(() => {
//let num = i < 10 ? '0' + i : i;
//if less than 100 add 1 zeros to the left and if less than 10 add 2 zeros to the left
let num = i.toString().padStart(3, '0');
fetch(itemurl+`${num}.jpg`)
.then(resp => resp.blob())
.then(blob => {
@aice09
aice09 / sync.php
Last active February 27, 2022 16:37
How to Sync User Data From Biometrics A to B,C, and others | vodvud/php_zklib
<?php
include('zklib/ZKLib.php');
$users = [];
//Main device
$zk = new ZKLib('192.168.1.100');
$ret = $zk->connect();
if ($ret) {
$zk->disableDevice();
//Get users
@aice09
aice09 / ms365batchscript.bat
Created February 12, 2022 11:51
Microsoft Office 365 batch script activator.
@echo off
title Activate Office 365 ProPlus for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products: Office 365 ProPlus (x86-x64)&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&echo Activating your Office...&c
@aice09
aice09 / factorychain.html
Last active February 7, 2022 02:26
Factory Chain Getting Exchanges Block with CORS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!--button onclick function-->
var dataTable = $('#example').DataTable({
"processing": true,
"serverSide": true,
"ajax": {
url: "folder1/subfolder1/datatable.php",
type: "POST",
success: function(response) {
console.log(response);
},
error: function(response) {
<?php
$genpath = "../fileshere/";
$category = "Folder Test 1";
$folder = scandir($genpath . $category);
$files = array_diff($folder, array(
'.',
'..',
'.metadata'
));
@aice09
aice09 / books.xml
Last active September 15, 2020 08:43
Books XML
<?xml version="1.0" encoding="utf-8"?>
<bookstore>
<book category="cooking">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price> </book>
<book category="children">
<title lang="en">Harry Potter</title>
@aice09
aice09 / tomcat-users.xml
Created March 13, 2020 06:06
Tomcat Users
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="username" password="yourpasswordhere" roles="admin-gui,manager-gui"/>