Skip to content

Instantly share code, notes, and snippets.

View Zxce3's full-sized avatar
💤
Sleep for a while

Memet Zx Zxce3

💤
Sleep for a while
View GitHub Profile
@Zxce3
Zxce3 / Remove Comment in Javascript with node
Created January 15, 2022 23:07
Removes multiline and single-line comments from a JavaScript source file. Author: aMarCruz - https://github.com/aMarCruz Usage: node [this-tool] [js-file]
#!/usr/bin/env node
/*
Removes multiline and single-line comments from a JavaScript source file.
Author: aMarCruz - https://github.com/aMarCruz
Usage: node [this-tool] [js-file]
*/
var path = require('path'),
fs = require('fs'),
file,
str;
@Zxce3
Zxce3 / index.html
Created May 12, 2022 04:03
Trello Webhook Manager
<!DOCTYPE html>
<meta charset="UTF-8">
<html>
<head>
<title>Trello Webhook Manager</title>
<meta name="description" content="A simple UI to manage your Trello Webhooks.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<link href=" https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC " crossorigin="anonymous">
@Zxce3
Zxce3 / autopage.js
Created June 2, 2022 23:11
automate create folder from data json
const path = require("path");
const fs = require("fs");
// Specific a path for output json
const spFile = path.join("folder", "page.json");
const spFolder = path.join("page");
const spContent = fs.readFileSync(spFile).toString();
const deserializedSpdf = JSON.parse(spContent);
const page = deserializedSpdf.page;
@Zxce3
Zxce3 / torrc
Last active June 19, 2022 13:21
# Runtime TOR.
RunAsDaemon 1
ORPort 0.0.0.0:63772
#ORPort [2400:6180:0:d1::6a4:a001]:63772
Nickname MalingIT
ContactInfo memetpea25[(at)]gmail[(dot)]com
Log notice file /home/memet/tor/notice.log
DirPort 63773
IPv6Exit 0
EntryStatistics 1
@Zxce3
Zxce3 / rename.sh
Created July 1, 2022 06:55
simple rename
#!/bin/bash
for f in *.pdf; do
mv -- "$f" "${f%.pdf}-@MalingIT.pdf"
done
@Zxce3
Zxce3 / monitorix.conf
Created July 25, 2022 14:26
monitorix.conf
# Monitorix - configuration file
#
# See monitorix.conf(5) manpage for a detailed description of each option.
#
title = Zxce3
hostname = zxce3.net
theme_color = black
refresh_rate = 150
iface_mode = graph
@Zxce3
Zxce3 / keybase.md
Created September 15, 2022 11:49
keybase.md

Keybase proof

I hereby claim:

  • I am zxce3 on github.
  • I am zxce3 (https://keybase.io/zxce3) on keybase.
  • I have a public key whose fingerprint is 54E2 2A55 68B7 963C 0D15 D496 926B 8A7E E00D F3A1

To claim this, I am signing this object:

@Zxce3
Zxce3 / file-listing.conf
Created September 27, 2022 13:39
Nginx File listing
server {
listen 80;
server_tokens off;
# special url for external healthchecks (monitoring systems, AWS Route 53 healthchecks, ALB etc)
location = /health {
types {}
default_type text/plain;
import requests
import json
text_to_check = input("[?] Input text to check with Turnitin > ")
burp0_url = "https://papersowl.com:443/plagiarism-checker-send-data"
burp0_cookies = {"PHPSESSID": "qjc72e3vvacbtn4jd1af1k5qn1", "first_interaction_user": "%7B%22referrer%22%3A%22https%3A%5C%2F%5C%2Fwww.google.com%5C%2F%22%2C%22internal_url%22%3A%22%5C%2Ffree-plagiarism-checker%22%2C%22utm_source%22%3Anull%2C%22utm_medium%22%3Anull%2C%22utm_campaign%22%3Anull%2C%22utm_content%22%3Anull%2C%22utm_term%22%3Anull%2C%22gclid%22%3Anull%2C%22msclkid%22%3Anull%2C%22adgroupid%22%3Anull%2C%22targetid%22%3Anull%2C%22appsflyer_id%22%3Anull%2C%22appsflyer_cuid%22%3Anull%2C%22cta_btn%22%3Anull%7D", "first_interaction_order": "%7B%22referrer%22%3A%22https%3A%5C%2F%5C%2Fwww.google.com%5C%2F%22%2C%22internal_url%22%3A%22%5C%2Ffree-plagiarism-checker%22%2C%22utm_source%22%3Anull%2C%22utm_medium%22%3Anull%2C%22utm_campaign%22%3Anull%2C%22utm_content%22%3Anull%2C%22utm_term%22%3Anull%2C%22gclid%22%3Anull%2C%22msclkid%22%3Anull%2C%22
[Unit]
Description=Guard-Bot Levina
Requires=network.target
[Service]
Type=simple
User=levina
Group=levina
# edit your working directory
WorkingDirectory=/home/levina/guard-bot