Skip to content

Instantly share code, notes, and snippets.

View luluhoc's full-sized avatar
🎯
Focusing

LULU luluhoc

🎯
Focusing
View GitHub Profile
@luluhoc
luluhoc / gist:d3475707c6b7c03f11a19959a1c19786
Last active August 4, 2023 09:21
First post to cloudflare then block
{
"pc0": "chl_api_m", // _cf_chl_opt.cType,
"Sxap5": "8721", // fu._cf_chl_opt.cNounce,
"lGAQX9": "2", // fu._cf_chl_opt.cvId,
"TPmikX3": 0, // static
"wxi0": 0, // static
"KeW5": 1, // static
"Vqo3": { // fu._cf_chl_opt.cRq,
"ru": "aHR0cDovL2NoYWxsZW5nZXMuY2xvdWRmbGFyZS5jb20vY2RuLWNnaS9jaGFsbGVuZ2UtcGxhdGZvcm0vaC9nL3R1cm5zdGlsZS9pZi9vdjIvYXYwL3JjdjAvMC9nZmdoNS8weDRBQUFBQUFBRG5QSURST3JtdDFXd2ovZGFyay9ub3JtYWw=",
"ra": "TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExNS4wLjAuMCBTYWZhcmkvNTM3LjM2",
{
"1": {
"i": "lfNYMzn/1UU=",
"h": "yes",
"tH": "",
"t": 21,
"DCibg7": 0,
"sOrUv4": {
"p": "Win32",
"l": [
@luluhoc
luluhoc / gist:fc6cb3936ce00c5c2d516846c50c94ac
Last active February 4, 2022 21:38
speechsynthesis voices array
[
"Microsoft David - English (United States)_en-US",
"Microsoft Mark - English (United States)_en-US",
"Microsoft Zira - English (United States)_en-US",
"Alex_en-US",
"Alice_it-IT",
"Alva_sv-SE",
"Amelie_fr-CA",
"Anna_de-DE",
"Carmit_he-IL",
@luluhoc
luluhoc / grab.js
Last active November 5, 2021 23:13
Steam Workshop Collection link grabber
const grab = () => {
const collection = document.querySelectorAll('.collectionChildren > .collectionItem');
let arr = [];
for (let i = 0; i < collection.length; i++) {
let link = collection[i].querySelector('.workshopItem > a').href;
arr.push(link);
}
return arr;
}
@luluhoc
luluhoc / ubuntu.conf
Created November 22, 2017 20:01
ubuntu.conf
http_port 3128
cache deny all
hierarchy_stoplist cgi-bin ?
access_log stdio:/var/log/squid3/access.log
cache_store_log none
cache_log /dev/null
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
@luluhoc
luluhoc / proxy-debian-linux.sh
Created October 29, 2016 14:32
Script to setup squid3 with no authentication accepting all traffic (run as sudo)
#!/bin/bash
#
# Debian
#
set -v
apt-get -y update
apt-get install -y ntpdate
@luluhoc
luluhoc / d3stryr-3stripes-atc-cs.php
Created October 13, 2016 10:06
Helper script for d3stryr-3stripes.php
<?php
set_time_limit(0);
$marketsList=[];
$marketsList['AT']='de_AT';
$marketsList['AU']='en_AU';
$marketsList['BE']='fr_BE';
$marketsList['BR']='pt_BR';
$marketsList['CA']='en_CA';
$marketsList['CL']='es_CL';
@luluhoc
luluhoc / d3stryr-3stripes.php
Created October 13, 2016 10:05
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; set_time_limit(0); ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();