Skip to content

Instantly share code, notes, and snippets.

import io
import uuid
import time
from flask import Flask, jsonify, request, send_file, render_template, make_response
APP = Flask(__name__)
VERSION = "1.0"
@temach
temach / fullscreen-style.css
Last active January 14, 2021 05:15
Stylish css style to read HPMOR japanese translation https://fanficfanfic.tumblr.com/toc
@-moz-document domain("fanficfanfic.tumblr.com") {
body header .description {
display: none;
}
body header #portrait {
display: none;
}
#logo {
@temach
temach / test.py
Created December 13, 2020 10:50
Natural Language ToolKit
import re
from pprint import pprint
import nltk
from nltk.stem.porter import PorterStemmer
stemmer = PorterStemmer()
new_mnemonic = """
Stop for a second or the egg will hatching in eights
"""
@temach
temach / .gitlab-ci.yml
Created December 12, 2020 09:01
CI/CD example for python webserver
stages:
- test
- package
- deploy
image: python:alpine
workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
@temach
temach / tchuntng.py
Created May 23, 2020 20:22
Analysis plugin for psort to find possibly encrypted files using TCHunt-ng, done for ccf-project
# -*- coding: utf-8 -*-
"""A plugin that reveals encrypted files on the filessystem."""
from __future__ import unicode_literals
import re
import requests
from plaso.analysis import interface
@temach
temach / using-timesketch-api.py
Created May 23, 2020 20:17
Please see ccf-project's report for more information
from timesketch_api_client import client
import pandas as pd
pd.options.display.max_colwidth = 60
# set the connection parameters
server = 'http://0.0.0.0'
user = 'admin'
password = 'INSERT_PASSWORD_HERE'
ts_client = client.TimesketchApi(server, user, password)
<!---
alert(1) ;
---->
@temach
temach / thiscode.cs
Created November 5, 2015 16:54
Try that code
interface IPromotion {
void promote();
}
struct Employee : IPromotion {
public string Name;
public int JobGrade;
public void promote() {
JobGrade++;