Skip to content

Instantly share code, notes, and snippets.

View machsix's full-sized avatar
🚀
Trip to Mars

MachX machsix

🚀
Trip to Mars
  • Mars
View GitHub Profile
const _0x42cb07 = _0x3fa1;
function _0x5450() {
const _0x1e6867 = ['URL', 'length', 'loading=\"lazy\"', '<div class=\"centbtd\"><ins class=\"eas6a97888e\" data-zoneid=\"4866610\"></ins></div>', '<head> <link rel=\'stylesheet\' href=\'/js/just.min.css?v=3\'>\x0a <script src=\'/js/jquery.min.js?v=3\'></script>\x0a <script src=\'/js/Galle.min.js?v=3\'></script>\x0a', 'navigate', '</div></p>', 'loading=\"lazy\" id=\"lazyImage\"', '<ins class=\"eas6a97888e31\" data-zoneid=\"5101246\"></ins> ', '<p><a href', 'I/AAA', 'location', 'catch', '<div class=\"centbtd\"><ins class=\"eas6a97888e\" data-zoneid=\"5217188\"></ins></div>', 'https://i0.wp.com/pic', 'message', 'skipWaiting', '12EvEAyV', 'url', '<div class=\"centbtd\"><ins class=\"eas6a97888e\" data-zoneid=\"5217200\"></ins></div>', 'open', '33943bfzOFk', '.jpg', 'img.4khd.com', '.png', '<!-- /wp:gallery --></p>', 'mode', '<div class=\"centbtd\"><ins class=\"eas6a97888e\" data-zoneid=\"5217208\"></ins></div>', 'headers', 'toLowerCase', '<div class=\"ce
@machsix
machsix / scss.js
Last active December 12, 2024 07:36
4khd
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/static/scss.js").then(function(_0x2854af) {});
}
self.addEventListener('install', function(_0xd98ed) {
_0xd98ed.waitUntil(self.skipWaiting());
});
self.addEventListener("activate", function(_0x227080) {
console.log("001");
_0x227080.waitUntil(self.clients.claim().then(function() {
self.caches["delete"]("my-cache");
#
# Original idea:
# https://discourse.haproxy.org/t/haproxy-unable-to-redirect-to-https-when-terminating/2158
#
# Stats:
# https://blog.sleeplessbeastie.eu/2020/01/29/how-to-use-haproxy-stats-socket
#
# Global
global
@machsix
machsix / v2ray.html
Last active December 29, 2022 23:54
v2ray
<table style="max-width:1300px;">
<thead>
<tr>
<th><i class="fa fa-qrcode" aria-hidden="true"></i></th>
<th align="center">Address</th>
<th align="right">Port</th>
<th align="center">UID</th>
<th align="center">Network</th>
<th align="center">Path</th>
<th align="center">TLS</th>
! Title: Personal_filter by machsix
! Expires: 4 days
! Download link: https://gist.githubusercontent.com/machsix/bc579deb5b8138a0a1ce8b36b152a30c/raw/
anime1.me##script:inject(abort-on-property-read.js, eSX9S3upNm)
||xr0*.cc^$script
||xr0*.xyz^$script
||worldcup1.com/imgs/*.gif$image
#!/bin/bash
# CHANGE THESE
API=1aeb5xxxxxxxxxx9dd194c56d07caf311
EMAIL="[email protected]"
DOMAIN="example.net"
LOG_DEV="/var/log/ddns.json"
get_zone_id () {
local zone_id=`curl -fs -X GET "https://api.cloudflare.com/client/v4/zones" \
// https://stackoverflow.com/questions/48014050/wait-promise-inside-for-loop
// let each promise in for to finish
function test(n) {
let promiseChain = Promise.resolve();
for (let i = 0; i < n; i++) {
const makePromise = (j) => () => new Promise((resolve,reject)=> {
setTimeout(resolve, j*1000);
}).then(()=>{
console.log(j);
if (j < 5 ) {
@machsix
machsix / mount-bitlocker
Last active July 12, 2019 22:17 — forked from dumbledore/mount-bitlocker
Mount/umount wrapper for dislocker on Linux x64
#!/bin/bash
BITLOCKER_PARTITION="${1}"
BITLOCKER_PASSWORD="${2}"
function usage() {
echo "$(basename ${0}) <partition> <password>"
echo "Unlocks and mounts a bitlocker partition as read-only"
echo "Get by lsblk -f"
}
@machsix
machsix / owo.whats-th.is.user.js
Created April 6, 2019 09:32 — forked from cking/owo.whats-th.is.user.js
owo.whats-th.is.user.js
// ==UserScript==
// @name OwO, whats this :D
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author Christopher König
// @include *
// @connect api.awau.moe
// @grant GM_registerMenuCommand
// @grant GM_setValue
@machsix
machsix / npm-git-log-module.js
Last active April 1, 2019 01:00
npm-git-log.js
const {spawnSync} = require("child_process");
const path = require("path");
const gitLog = function(cwd, obj, magicKey) {
magicKey = "^^" || magicKey;
cwd = cwd || ".";
const args = ["log"];
let logFormat = {
commit: "%H",