Skip to content

Instantly share code, notes, and snippets.

View ehumphrey-payments's full-sized avatar

Erik Humphrey ehumphrey-payments

View GitHub Profile
@Krazete
Krazete / badapple_kizunaai.js
Last active November 30, 2024 19:24
Injects cognition.kizunaai.com with Bad Apple.
javascript:
/* https://cognition.kizunaai.com */
var video = document.createElement("video");
video.crossOrigin = "anonymous";
video.src = "https://raw.githubusercontent.com/NPCat/bad-apple-bot/main/bad_apple.mp4";
video.play();
var vw = 960;
var vh = 720;
@linuswillner
linuswillner / psa.md
Last active May 30, 2022 01:43
Public service announcement from The Coding Den staff about social engineering being utilised as an attack vector for server takeovers

Today, on the 27th of March 2021, The Coding Den was subjected to a social engineering attack that lead to a brief hostile takeover of the server before the situation was brought under control by staff. We are sharing this statement as a public service announcement on the methodology used in the scam and possible remediations to prevent it, in order to help other staff teams avoid becoming victims of it.

Methodology

The attack proliferates as follows:

  1. The attacker will look for a staff member who is presently offline. This will ensure that it appears as if the staff member's account was globally banned and forcefully booted offline.
  2. It is within the attacker's interest to choose a target with the highest possible privileges (to do the maximum amount of damage), meaning that they will likely prefer administrators over moderators and so forth.
  3. The attacker will create a new Discord account with the same name and profile picture as the target.
  4. The attacker will approach a staff member, claiming
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@ehumphrey-payments
ehumphrey-payments / New Release.sh
Created June 17, 2019 19:32
Bash script to push new releases easily
#!/bin/bash
current_date=`date +%Y-%m-%d`
cd
# Replace with path to repository
cd projects/sandbox
git fetch --tags
latest=`git describe --abbrev=0`
@MPThLee
MPThLee / enableDiscordExperiments.js
Last active July 27, 2025 01:25
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.
@DanH42
DanH42 / gmail-dematerialize.css
Last active June 21, 2020 17:29
Make the new Gmail design look like the old one
/* ==UserStyle==
@name Gmail - Dematerialize
@namespace gist.github.com/DanH42
@version 1.1.7
@description Make the new Gmail design look like the old one
@author Dan Hlavenka
@updateURL https://gist.github.com/DanH42/599cbdc85f53a0377042d8c418aec78e/raw
@preprocessor less
==/UserStyle== */
import requests
import praw
import logging
import time
import random
import schedule
import pickle
import sys
from datetime import datetime, timedelta
@jacobdanovitch
jacobdanovitch / quiz2.py
Last active December 15, 2017 00:39
Quiz 2 Answers
'''
QUESTION 1
'''
def question1(number):
if number-int(number)==0:
return number
return number // 1 + 1
'''
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting
@mp4096
mp4096 / ppt2pdf.ps1
Created April 28, 2016 10:56
Batch convert PowerPoint files to PDF
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders
# The produced PDF files are stored in the invocation folder
#
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf
# Thanks to MFT, takabanana, ComFreek
#
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system.
# You can allow them by calling PowerShell as an Administrator and typing
# ```
# Set-ExecutionPolicy Unrestricted