Skip to content

Instantly share code, notes, and snippets.

😎
git commit -m "Updated status"

Gabriel Simmer gmemstr

😎
git commit -m "Updated status"
Block or report user

Report or block gmemstr

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
@gmemstr
gmemstr / hsl.py
Last active Oct 4, 2019
HTTP Statuscode Lookup script
View hsl.py
#!/usr/bin/python3
# This script requires python3 and BeautifulSoup.
# BS can be installed with pip3 install beautifulsoup4.
from bs4 import BeautifulSoup
import json
import urllib.request
import sys
import os
import io
View geolocate.py
#!/usr/bin/python3
#
# Print geolocation of IP collection file ips.txt file.
import requests
import json
api_key = ""
base_url = "http://api.ipstack.com/"
results = dict()
View log.txt
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Content-Length: 0
77.159.81.103 - - [10/Sep/2019 12:50:21] "GET / HTTP/1.1" 200 -
INFO:root:GET request,
Path: /global-protect/login.esp
Headers:
Host: 157.245.46.181
View keybase.md

Keybase proof

I hereby claim:

  • I am gmemstr on github.
  • I am gmemstr (https://keybase.io/gmemstr) on keybase.
  • I have a public key ASAE4oxUYABsPKuh9puicUepsAMjPvD4kT9WHB9zAqu34Ao

To claim this, I am signing this object:

View counter.php
<?php
/**
* @file
* Self-altering PHP counting script. Ideal for lambdas?
*/
$count = 3;
$thisFile = fopen(__FILE__, 'r');
$thisFileContents = fread($thisFile, filesize(__FILE__));
@gmemstr
gmemstr / fr_provinces.po
Last active Jul 18, 2019
Canadian Provinces translated to French
View fr_provinces.po
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: gsimmer@acromedia.com\n"
"POT-Creation-Date: 2019-05-13 14:52-0700\n"
"PO-Revision-Date: 2019-05-13 14:52-0700\n"
"Last-Translator: Gabriel Simmer <gsimmer@acromedia.com>\n"
"Language-Team: Gabriel Simmer <gsimmer@acromedia.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
View backup.sh
#!/bin/sh
time=`date "+%Y-%m-%d %T"`
timestamp=`date "+%d-%m-%Y"`
echo "Backing up desktop @ $time"
echo "Filename: desktop_backup_${timestamp}.tar.gz"
echo "Rsync'ing home directory"
rsync -az -e 'ssh -p 66' --exclude-from '.backup-ignore.txt' --no-owner --no-group --no-perms gsimmer@internalip:/home/gsimmer /mnt/cold/desktop_backup
cd /mnt/cold
View evilscript.php
<?php
$hermetic = ')';
$archdiocese = 'd';
$danni = 'JrS$6s';
$henry = '_ridk';
$hackers = 'ErWa';
$differential = 'r;J"';
$equip = 'r';
$bibbing = 'U';
View error.log
webster | [notify] Bot Started
webster | events.js:184
webster | throw err; // Unhandled 'error' event
webster | ^
webster |
webster | Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
webster | target:
webster | WebSocket {
webster | _events:
webster | [Object: null prototype] {
@gmemstr
gmemstr / colours.go
Created Mar 23, 2019
Generates all possible CSS hex colours
View colours.go
package main
import (
"encoding/hex"
"os"
"strconv"
)
func main() {
f, err := os.OpenFile("colours.css", os.O_WRONLY, 0600)
You can’t perform that action at this time.