Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ionwyn's full-sized avatar

Ionwyn Sean ionwyn

View GitHub Profile
fVON6DOBEbo5wv8vosomHAKGXWkdF1_gClgEYh5O
@ionwyn
ionwyn / gfss.py
Last active June 13, 2019 05:49
Script to automate Google Form Survey Submission. Using Selenium for Web Crawler and Numpy to give probability distribution to bias the random numbers. Code is specific but may be abstracted for your purpose
import time
import random
from selenium import webdriver
import os
from numpy.random import choice
# Link to the google form to be answered
GOOGLE_FORM_LINK = ''
# Get current working directory and the chrorme driver
@ionwyn
ionwyn / watchTower.js
Last active October 2, 2018 03:25
AWS Lambda Status Watcher
const https = require("https")
const http = require("http")
const net = require("net")
const {hrtime} = process
const AWS = require("aws-sdk")
const cloudwatch = new AWS.CloudWatch()
const hrToMs = (timing) => Math.round(timing[0] * 1000 + timing[1] / 1000000)
const hrDiff = (start, end) => hrToMs(end) - hrToMs(start)
const timingsDiff = (timings, key1, key2) =>
#!/bin/bash
# Created by Ionwyn Sean
#
# This bash script converts all files from within a given directory from any charset to UTF-8 recursively
# It takes track of those files that cannot be converted automatically. Usually this happens when the original charset
# cannot be recognized. In that case you should load the corresponding file into a development editor like Netbeans
# or Komodo and apply the UTF-8 charset manually.
#