Skip to content

Instantly share code, notes, and snippets.

View windows98SE's full-sized avatar
:shipit:
it's good, to be bad.

windows98SE windows98SE

:shipit:
it's good, to be bad.
View GitHub Profile
@windows98SE
windows98SE / md5.js
Created June 11, 2015 19:43
JavaScript implementation of the RSA Data Security
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 1.1 Copyright (C) Paul Johnston 1999 - 2002.
* Code also contributed by Greg Holt
* See http://pajhome.org.uk/site/legal.html for details.
*/
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
@windows98SE
windows98SE / logger.json
Created August 18, 2018 23:45
logging, coloredlogs, logging.config
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"console-simple": {
"()": "ext://coloredlogs.ColoredFormatter",
"format": "[%(asctime)s.%(msecs)03d] : %(message)s",
"datefmt": "%H:%M:%S",
"field_styles": {
"asctime": {"color": "green"}
@windows98SE
windows98SE / wpa_supplicant.conf
Created March 8, 2015 19:23
wpa_supplicant.conf for wpa2 (hidden ssid)
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
update_config=1
network={
mode=0
priority=1
scan_ssid=1
proto=WPA2
@windows98SE
windows98SE / settrade.py
Last active September 29, 2020 09:52
THAILAND SETTRADE for scrollphathd
import requests
import time
import scrollphathd
from scrollphathd.fonts import font3x5
class SETTRADE:
def __init__(self):
#!/bin/bash
# Slightly modified version from https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh
# Run with sudo ./openvpn-install.sh and not sudo sh ./openvpn-install.sh as read command has issues with external triggering of scripts
# OpenVPN road warrior installer for Debian, Ubuntu and CentOS
# This script will work on Debian, Ubuntu, CentOS and probably other distros
# of the same families, although no support is offered for them. It isn't
# bulletproof but it will probably work if you simply want to setup a VPN on
# your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and
# universal as possible.
@windows98SE
windows98SE / Terminal.sublime-settings
Created June 3, 2019 09:03
The command to execute for the terminal
{
// The command to execute for the terminal, leave blank for the OS default
// See https://github.com/wbond/sublime_terminal#examples for examples
"terminal": "C:\\Dropbox\\Win\\Console2\\Console.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["-d", "."],
{'packet_full': '005000060332001a283830373337643865613437346331333137323334323734353166393634313030353536393761623108b3f3c4e60510011a18312d3930303031303530372d362d31353537313634333931', 'packet_header': '00', 'packet_size': 80, 'packet_body': b'\x06\x032\x00\x1a(80737d8ea474c131723427451f96410055697ab1\x08\xb3\xf3\xc4\xe6\x05\x10\x01\x1a\x181-900010507-6-1557164391', 'packet_action': 'SEND', 'rom_protocol_id': 6, 'rom_protocol_type': 3, 'rom_protocol_name': 'SceneItem_pb.ItemUse'}
{'packet_full': '005000060332001a286236613136303961623336653066343136643664363633613537623237346634373764373039653608d4f3c4e60510011a18312d3930303031303530372d362d31353537313634333931', 'packet_header': '00', 'packet_size': 80, 'packet_body': b'\x06\x032\x00\x1a(b6a1609ab36e0f416d6d663a57b274f477d709e6\x08\xd4\xf3\xc4\xe6\x05\x10\x01\x1a\x181-900010507-6-1557164391', 'packet_action': 'SEND', 'rom_protocol_id': 6, 'rom_protocol_type': 3, 'rom_protocol_name': 'SceneItem_pb.ItemUse'}
{'packet_full': '005000060332001a2861613931363635633
@windows98SE
windows98SE / hexdump.pl
Created April 9, 2014 09:58
[perl] hexdump
#!/usr/local/bin/perl
sub hexdump{
my $data = $_[0];
my $len = length($data);
#hex, content
my $buf_hex = uc(unpack('H*', $data));
$buf_hex =~ s/\G(..)/$1 /g;
my $buf_content = $data;
@windows98SE
windows98SE / mikrotik.py
Created April 26, 2017 18:01
mikrotik basic login script
#!/usr/bin/env python
'''
mikrotik basic login script
'''
import re
import requests
from md5 import md5
USER = 'i am groot'
@windows98SE
windows98SE / fetch_yahoo_finance.py
Created January 15, 2019 15:59
fetch yahoo finance
#!/usr/bin/env python
import re
import requests
session = requests.Session()
stock = 'T'
start = '1547398800'
end = '1547485200'