Skip to content

Instantly share code, notes, and snippets.

View arunesh90's full-sized avatar

Arunesh arunesh90

View GitHub Profile
addEventListener('fetch', event => {
event.respondWith(handleRequest(event, event.request))
})
/**
* Fetch and log a given request object
* @param {Request} request
*/
async function handleRequest(event, request) {
console.log('Got request', request)
@arunesh90
arunesh90 / build.sh
Last active October 2, 2019 18:08 — forked from moqmar/build.sh
Caddy build script
#!/bin/bash
#
# Build script for the Git version of https://caddyserver.com
#
# Requirements:
# - Go
# - jq (if using names instead of import paths for plugins)
# Usage:
# curl https://gist.githubusercontent.com/moqmar/ba77bd778e6ebc956eaa36388be3fcdd/raw | bash -s http.realip http.ipfilter http.cors http.expires http.ratelimit #[...]

Keybase proof

I hereby claim:

  • I am arunesh90 on github.
  • I am arunesh90 (https://keybase.io/arunesh90) on keybase.
  • I have a public key ASBtSb5yvzwPRxZLdxsGmSzY7MELAPUuCg3gglWK-o333wo

To claim this, I am signing this object:

@arunesh90
arunesh90 / ArchiveParser.js
Last active July 20, 2020 14:25
Archive parsing for Discord
// Quick and dirty parser for Discord's archives
const path = require('path')
const fs = require('fs')
const csv = require('csv')
const prompt = require('prompt')
let stats = {
messageCount: 0,
words: {},
wordsSorted: []

NOT USED ANYMORE

Keybase proof

I hereby claim:

  • I am arunesh90 on github.
  • I am arunesh90 (https://keybase.io/arunesh90) on keybase.
  • I have a public key whose fingerprint is 0C66 16D9 E1A1 9002 58C4 9AE2 DAD1 2653 94B2 431A

To claim this, I am signing this object: