Skip to content

Instantly share code, notes, and snippets.

💭
Building shit

Steve Anderson / Steve Ronuken fuzzysteve

💭
Building shit
Block or report user

Report or block fuzzysteve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fuzzysteve
fuzzysteve / fleetup-exporter.py
Last active Oct 17, 2019
a quick and dirty exporter
View fleetup-exporter.py
import requests
import os
import json
appkey="nope"
userid="nuhu"
apikey="nahmate"
basedir="export"
View gist:eaef4434773f8e311e417f6c37a16fa8
let
Source = Binary.Decompress(Web.Contents("https://market.fuzzwork.co.uk/aggregatecsv.csv.gz"),Compression.GZip),
#"Imported CSV" = Csv.Document(Source,[Delimiter=",", Columns=10, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(#"Imported CSV", [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"what", type text}, {"weightedaverage", type number}, {"maxval", type number}, {"minval", type number}, {"stddev", type number}, {"median", type number}, {"volume", Int64.Type}, {"numorders", Int64.Type}, {"fivepercent", type number}, {"orderSet", Int64.Type}})
in
#"Changed Type"
@fuzzysteve
fuzzysteve / editedwright.py
Last active Jun 25, 2019
editedwright.py
View editedwright.py
from collections import defaultdict
import sys
# --------
# - Read in the BLT file
# --------
fname = sys.argv[2]
fp = open(fname, "r")
@fuzzysteve
fuzzysteve / gist:a1582580f650c608990ec823fe154134
Created Jun 16, 2019
Powerquery getting market type ids from a sheet.
View gist:a1582580f650c608990ec823fe154134
let
Source = Json.Document(Web.Contents("https://market.fuzzwork.co.uk/aggregates/?region=10000002&types="&Text.Combine(Table.ToList(Table.TransformColumnTypes(Table.SelectRows(Excel.CurrentWorkbook(){[Name="typelist"]}[Content], each ([Column1] <> null)),{{"Column1", type text}})),","))),
#"Converted to Table" = Record.ToTable(Source),
#"Expanded Value" = Table.ExpandRecordColumn(#"Converted to Table", "Value", {"buy", "sell"}, {"Value.buy", "Value.sell"}),
#"Expanded Value.buy" = Table.ExpandRecordColumn(#"Expanded Value", "Value.buy", {"weightedAverage", "max", "min", "stddev", "median", "volume", "orderCount", "percentile"}, {"Value.buy.weightedAverage", "Value.buy.max", "Value.buy.min", "Value.buy.stddev", "Value.buy.median", "Value.buy.volume", "Value.buy.orderCount", "Value.buy.percentile"}),
#"Expanded Value.sell" = Table.ExpandRecordColumn(#"Expanded Value.buy", "Value.sell", {"weightedAverage", "max", "min", "stddev", "median", "volume", "orderCount", "percentile"}, {"Value.sell.
View keybase.md

Keybase proof

I hereby claim:

  • I am fuzzysteve on github.
  • I am fuzzysteve (https://keybase.io/fuzzysteve) on keybase.
  • I have a public key ASCYnNQiwS_Lg2CqNj8Du_8BocVRuHkuTVb8fU-7y-2EPQo

To claim this, I am signing this object:

View callback.php
<?php
session_start();
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
View gist:971cd8807911a42c1ac8741ee4ecb01f
from requests.auth import HTTPBasicAuth
import requests
import json
import time
auth=HTTPBasicAuth('firstbitgoeshere', 'secondbitgoeshere')
baseurl="https://api.dnspark.com/v2/dns/"
@fuzzysteve
fuzzysteve / checkSSL.py
Created Dec 1, 2017
python script to check SSL certs
View checkSSL.py
import socket
import ssl
from ssl import CERT_OPTIONAL
import datetime
import logging
def ssl_cert_info(hostname):
ssl_date_fmt = r'%b %d %H:%M:%S %Y %Z'
context = ssl.create_default_context()
View gist:4f9bf15b5f10f81c6afcee1a9bac8f2a
3 13692 Jin'taan
32 12858 Suitonia
14 12667 The Judge
45 9353 Steve Ronuken
29 9237 Sullen Decimus
16 8551 rhiload Feron-drake
25 8122 Innominate
51 7852 Dancul1001
7 7479 Yukiko Kami
53 7095 Aryth
@fuzzysteve
fuzzysteve / gist:ca0e30a2f9388384705c548074cc214b
Created May 3, 2017
linear weighting. position 1 is worth 10 votes, position 10 is worth 1
View gist:ca0e30a2f9388384705c548074cc214b
3 124910 Jin'taan
32 117452 Suitonia
14 115639 The Judge
45 86364 Steve Ronuken
29 83680 Sullen Decimus
16 78109 rhiload Feron-drake
25 73778 Innominate
51 71117 Dancul1001
53 68836 Aryth
7 68104 Yukiko Kami
You can’t perform that action at this time.