Skip to content

Instantly share code, notes, and snippets.

@alexdwagner
alexdwagner / guide.markdown
Created October 11, 2016 21:06 — forked from bluehat/guide.markdown
Privacy Guide for Activists with Haters

Privacy Guide for Activists with Haters

In light of the gamergate fiasco, we realized that most of the targeted individuals had their private information trivially publicly online. Later, several authors had more immediate experience with online harassment. This guide is meant to help people take basic steps required to protect their online privacy, hopefully reducing the number of crazies who threaten to show up at your house.

We do not believe that leaving your information online means you deserve harassment, we simply wish to arm people who want to speak up with all the defensive tools available.

This guide is not an anti-government-surveillance document, as it only helps you make your information private and does not remove it.

Hiding Your Whois Data

This one should be easy, but it is the number one privacy failure we found when checking information of individuals who have previously been harassed.
<html>
<canvas id ="gameCanvas" width = "800" height= "600"></canvas>
<script>
var canvas;
var canvasContext;
var ballX = 50;
var ballY = 50;
var ballSpeedX = 10;
var ballSpeedY = 4;
/* This is a Processing sketch in which two rectangles in back-and-forth vertical motion paint the canvas
in Rothko-like fashion. Click the mouse to change the color of "Brick 1" and click-and-drag the mouse to change
the color of "Brick 2".
Brick b1;
Brick b2;
void setup()
{
size(1280, 720);
<!doctype html>
<html lang="en-US">
<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, IE=11, IE=10">
<link rel="pingback" href="https://strategyu.co/xmlrpc.php" />
<meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />
<script>window._wca = window._wca || [];</script>
# This is a simple Python script that fetches a list of videos with their details and outputs a CSV.
# Right now, maxResults is set to 50, but change as needed, and as API rate-limiting will allow.
# You need a Google/Youtube API key to run this script.
import os
import csv
from googleapiclient.discovery import build
# Simplified configuration; ensure you have these values correctly set up
API_KEY = 'YOUR_API_KEY'
@alexdwagner
alexdwagner / server.js
Created March 9, 2024 23:43
Node.js Server for Key-Value Store and Journal Entries
/*
* Node.js Server for Key-Value Store and Journal Entries
*
* This server provides in-memory storage for key-value pairs and structured journal entries.
*
* It listens on http://localhost:4000/, storing key-value pairs sent via http://localhost:4000/set?somekey=somevalue
* and retrieving values when requested via http://localhost:4000/get?key=somekey.
*
* It supports storing and retrieving data via HTTP POST and GET requests. Key features include:
*
@alexdwagner
alexdwagner / gist:333846f18750628fe73783d2cf4e7927
Created March 29, 2024 16:19
Form Validation - Pramp - 03292024
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sign up form</title>
<style>
input {
color: blue
}
// pages/api/groups.ts
import { NextApiRequest, NextApiResponse } from 'next'
import { withSessionRoute } from '@/ironAuth/withSessionApiRoute'
import { getAccountFromDB, initDB } from '@/utils/database'
import { AccountNotFoundError } from '@/utils/errors'
import { getSlugFromText } from '@/utils/generic_utils'
const handler = async (req: NextApiRequest, res: NextApiResponse) => {