Skip to content

Instantly share code, notes, and snippets.

def vote(gall_id: str, no: str, mode: str, proxy: str = '') -> str:
result = ''
s = requests.session()
s.headers.update({ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36' })
if proxy:
s.proxies = {'http': 'http://' + proxy }
r1 = s.get('http://gall.dcinside.com/board/view/?id=' + gall_id, timeout=5)
#r1 = s.get('http://gall.dcinside.com/board/view/?id=' + gall_id + '&no=' + no, timeout=5)
s.headers.update({
'Host': 'gall.dcinside.com',
import time
import re
import requests
import math
from pyquery import PyQuery as pq
sess = requests.Session()
sess.headers.update({ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36'})
import re
import requests
import time
import random
import string
from pyquery import PyQuery as pq
def decode_service_code(_svc : str, _r : str) -> str:
_r_key = 'yL/M=zNa0bcPQdReSfTgUhViWjXkYIZmnpo+qArOBs1Ct2D3uE4Fv5G6wHl78xJ9K'
_r = re.sub('[^A-Za-z0-9+/=]', '', _r)
@wuhanstudio
wuhanstudio / qemu_armbian.sh
Last active December 28, 2024 15:26
Armbian on QEMU
# Install QEMU-6.1.0
wget https://download.qemu.org/qemu-6.1.0.tar.xz
tar xvJf qemu-6.1.0.tar.xz
cd qemu-6.1.0
./configure
make
sudo make install
# Download Armbian (Ubuntu Focal 20.04) for OrangePi PC
wget https://mirrors.netix.net/armbian/dl/orangepipc/archive/Armbian_21.08.1_Orangepipc_focal_current_5.10.60.img.xz
@telent
telent / gist:9742059
Last active December 28, 2024 15:25
12 factor app configuration vs leaking environment variables
App configuration in environment variables: for and against
For (some of these as per the 12 factor principles)
1) they are are easy to change between deploys without changing any code
2) unlike config files, there is little chance of them being checked
into the code repo accidentally
3) unlike custom config files, or other config mechanisms such as Java
@guidocella
guidocella / dump-cookies.sh
Last active December 28, 2024 15:16
Convert qutebrowser's cookies to Netscape format
#!/bin/sh
{
echo '# Netscape HTTP Cookie File' # needed by youtube-dl
# There is no attempt to url encode $1, but SQLite already handles
# characters like spaces, so only ? % and # should cause issues.
sqlite3 -separator ' ' "file:${1:-$HOME/.local/share/qutebrowser}/webengine/Cookies?nolock=1" "
SELECT
host_key,
@jctosta
jctosta / screen_cheatsheet.markdown
Last active December 28, 2024 15:15
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active December 28, 2024 15:15
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
@xujiaao
xujiaao / android-set-ntp-server.md
Last active December 28, 2024 15:11
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key: