Skip to content

Instantly share code, notes, and snippets.

View toddlerya's full-sized avatar
🌊
Study

GuMuXi toddlerya

🌊
Study
View GitHub Profile
@hash3liZer
hash3liZer / install mitmproxy certificate from command line.md
Last active June 22, 2023 06:50
Installing Mitmproxy certificate into Windows from command line

Installation

Tried these commands and none of them worked?

$ certutil.exe -addstore root .\mitmproxy-ca-cert.p12
root "Trusted Root Certification Authorities"
CertUtil: -addstore command FAILED: 0x80092009 (-2146885623 CRYPT_E_NO_MATCH)
CertUtil: Cannot find the requested object.
@mkmark
mkmark / jsstm.py
Last active April 11, 2022 00:51
苏康码自动健康申报
# %% import
import json
import datetime
import dateutil.tz
import logging
import io
import requests
@mayufo
mayufo / 验证中国身份证 前6位对应地区码
Created January 16, 2018 10:12
验证中国身份证 前6位对应地区码
var GB2260 = {
"110000": "北京市",
"110100": "北京市市辖区",
"110101": "北京市东城区",
"110102": "北京市西城区",
"110103": "北京市崇文区",
"110104": "北京市宣武区",
"110105": "北京市朝阳区",
"110106": "北京市丰台区",
"110107": "北京市石景山区",
@tupunco
tupunco / vscode-go 插件安装.md
Last active April 18, 2023 09:13
vscode-go 配置

ctrl+shift+p

  • 安装 vscode-go 插件:
> ext install Go
  • 安装 go tools:
> Go Install/Update Tools
@binderclip
binderclip / flask_file_upload.py
Created July 18, 2016 08:57
Flask file upload
import os
from flask import Flask, request, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/tmp/flask-upload-test/'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@ppflrs
ppflrs / Convert "application octet-stream; charset=binary" to ASCII Raw
Last active February 23, 2024 22:55
Convert "application/octet-stream; charset=binary" to ASCII
cat $BIN_FILE | tr -d '\0' > $NEW_FILE
import itertools as itt
from collections import deque
# Each element of a sequence can have these values
possible_elements = [0, 1, 2, 3, 4, 5, 6, 7]
element_count = len(possible_elements)
# A sequence contains this many elements
sequence_length = 4
@ebridges
ebridges / JarList.java
Created April 25, 2013 02:30
Given a jar file, extract out the `pom.properties` and create a java.util.Properties object from it.
import java.io.*;
import java.util.*;
import java.util.jar.*;
public class JarList
{
public static void main (String args[]) throws IOException
{
if (args.length != 1)
{