Skip to content

Instantly share code, notes, and snippets.

@FluidCoding
FluidCoding / PiTempServe.py
Created November 20, 2019 01:20
PiTempServe.py
import psycopg2
import os
import time
def application(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
conn = psycopg2.connect("dbname=home user= password=")
cur = conn.cursor()

Keybase proof

I hereby claim:

  • I am FluidCoding on github.
  • I am sonnie (https://keybase.io/sonnie) on keybase.
  • I have a public key whose fingerprint is EE2E 3AB9 740D DDE6 71E4 1782 C23F 6D2D 3F0A 74BB

To claim this, I am signing this object:

Dim dataSet : dataSet = Array(_
"#1 @ 661,227: 29x11",_
"#2 @ 391,45: 27x20",_
"#3 @ 467,241: 23x12",_
"#4 @ 120,334: 18x28",_
"#5 @ 671,406: 28x16",_
"#6 @ 422,790: 23x12",_
"#7 @ 321,868: 13x17",_
"#8 @ 509,931: 11x20",_
"#9 @ 362,833: 26x20",_
Dim dataSet : dataSet = Array("prtkqyluibmtcwqaezjmhgfndx",_
"prtkqylusbsmcwvaezjmhgfndt",_
"prgkqyluibsocwvamzjmhgkndx",_
"prjkqyluibsocwvahzjmhgfnsx",_
"prtkqylcibsocwvzezjohgfndx",_
"prtkqyluiksocwziezjmhgfndx",_
"prikqyluiksocwvaezjmkgfndx",_
"prtkgyluibsocwvwezjehgfndx",_
"prtkqyluiysocwvaezjghxfndx",_
@FluidCoding
FluidCoding / CodeChallengeDay1.vbs
Created December 12, 2018 05:37
CodeChallengeDay1
OPTION EXPLICIT
Dim dataSet : dataSet = Array(+13,_
-3,_
-8,_
+14,_
+16,_
-7,_
+3,_
Remove URL adjusting - Chrome 69
chrome://flags/#omnibox-ui-hide-steady-state-url-scheme-and-subdomains
let previewDiv = document.createElement('div');
previewDiv.id = 'torPreview'
previewDiv.style = 'overflow: scroll;position: fixed;top: 0px;right:0px;height: 615px;width: 657px;background-color:black;';
previewDiv.addEventListener('mouseover', () => isPreviewFocus = true)
previewDiv.addEventListener('mouseout', () => {
isPreviewFocus = false;
hideContent();
})
document.body.appendChild(previewDiv);
let isPreviewFocus = false;
@FluidCoding
FluidCoding / scrollToggle.js
Created January 15, 2018 01:14
Toggle Scroll with 'v'
(function() {
let isON = false;
let sTick;
window.document.addEventListener('keypress',
(e) => {
if(e.key=='v'){
isON=!isON;
sTick = isON ? setInterval(()=>{window.scrollBy(0,1); }, 20) : clearInterval(sTick);
}
});
@FluidCoding
FluidCoding / ntlm.js
Created January 10, 2018 09:29 — forked from andypols/ntlm.js
Javascript to create the type1, type3 messages you need to communicate with an ntlm server. I used this to talk to a NTLM enabled windows server from a node.js application.
var url = require('url');
var crypto = require('crypto');
/*
NTLM PROCESS FOR GET REQUESTS:
==============================
STEP 1: The Client requests a protected resource from the server
STEP 2: The Server responds with a 401 status, with a header indicating that the client must authenticate
STEP 3: The Client resubmits the request with an Authorization header containing a Base-64 encoded Type 1 message. From this point forward, the connection is kept open; closing the connection requires reauthentication of subsequent requests.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src='http://code.jquery.com/jquery-1.8.0.min.js'></script>
</head>
<body>