Skip to content

Instantly share code, notes, and snippets.

View GypsyDangerous's full-sized avatar
🖥️
Coding

David Snyder GypsyDangerous

🖥️
Coding
View GitHub Profile
0.0.0.0 foxnews.com
0.0.0.0 noi.org
0.0.0.0 www.freedomphone.com
0.0.0.0 freedomphone.com
*, *::after, *::after{
box-sizing: border-box;
}
button, input, optgroup, select, textarea{
font-family: inherit;
}
a{
color: inherit;
@GypsyDangerous
GypsyDangerous / download_file.ts
Created November 6, 2020 14:19
code snippet to download a file from a url in node with typescript
import fs from "fs";
import request from "request"
const download = (uri: string, filename: string, callback: Function) =>{
request.head(uri, function(err, res, body){
console.log('content-type:', res.headers['content-type']);
console.log('content-length:', res.headers['content-length']);
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback);
});

🧒 COPPA Procedure

👉 Situations involving viewers under 13, or suspected of being so.


🔍 Background

Noone under the age of 13 can be knowingly allowed to message, communicate or otherwise share data via any online platform that Coding Garden currently uses. As this violates Discord / Twitch ToS, the most direct explanation is that CJ is at risk of having his channel/discord deleted were he not to take this action.

This all stems from child protection laws in the US (COPPA) and elsewhere. Please note that knowingly communicating directly with a child online, or coming into possession of their personal data, also exposes you to significant legal risk personally as well.

David Snyder

Wheel bot user auth process

  1. user id is used as oauth token when user joins the server
  2. user can run !wheelbot link if they want to link their token to github
  3. user would have to login to link their account
  4. the wheelbot uses the id of the message sender to determine if they can access the data
class stack:
def __init__(self, data=None):
self.data = []
if isinstance(data, list):
self.data.extend(data)
elif not data is None:
self.data.append(data)
https://repl.it/repls/EnragedNeighboringWebsite
@GypsyDangerous
GypsyDangerous / delete_email.py
Created April 11, 2019 15:26 — forked from giovaneliberato/delete_email.py
Python script to delete emails from a specific sender at gmail
#coding: utf-8
import imaplib
import sys
'''
Simple script that delete emails from a given sender
params:
-username: Gmail username
-pw: gmail pw
-label: If you have a label that holds the emails, specify here