Skip to content

Instantly share code, notes, and snippets.

View eternal-flame-AD's full-sized avatar

饺子w (Yumechi) eternal-flame-AD

View GitHub Profile
#!/bin/bash
rm -fr *.deb
wget --no-clobber http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb || exit 1
wget --no-clobber https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_FLAVOUR}_${HUGO_VERSION}_Linux-64bit.deb || exit 1
grep "hugo=" ~/.bashrc || echo "alias hugo='LD_LIBRARY_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu $(pwd)/tmp/usr/local/bin/hugo'" >> ~/.bashrc
find -name '*.deb' -exec dpkg -x {} $(pwd)/tmp \;
rm -fr *.deb
exit 0
@eternal-flame-AD
eternal-flame-AD / bili_novel.py
Created November 23, 2018 04:41
Format bilibili novel into HTML format
import sys
import os
from xml.sax.saxutils import escape
import bs4
import requests
class BiliArticle():
def __init__(self, title: str, author: str, main_markup: str = ""):
@eternal-flame-AD
eternal-flame-AD / rejet.py
Last active October 5, 2018 08:00
Crawl rejetweb blog pictures~ Tested on yuroma and kengakimi~ prprpr~
# Kengakimi: python3 rejet.py kengakimi
# Yuroma: python3 rejet.py yuroma
from http import client as Httpconn
import urllib.parse
import re
import sys
import os
images = []
@eternal-flame-AD
eternal-flame-AD / stripsni.go
Created September 16, 2018 12:01
HTTPS Man-in-the-Middle for stripping SNI from requests, with elazarl/goproxy
package main
import (
"bufio"
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io"
"log"

Keybase proof

I hereby claim:

  • I am eternal-flame-ad on github.
  • I am eternal_flame (https://keybase.io/eternal_flame) on keybase.
  • I have a public key ASDyz3HhKezq44G-BNES8yda6hFoY29pFYRcmQ3cQZBfwwo

To claim this, I am signing this object:

@eternal-flame-AD
eternal-flame-AD / openpgp.txt
Last active March 3, 2018 05:31
OpenKeychain 关联用户标识
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:356982fadcbddc60dbad25e84cbbc48c2f2ff36b]