Skip to content

Instantly share code, notes, and snippets.

Avatar
🤡
🔫

Josh Ghent joshghent

🤡
🔫
View GitHub Profile
View loadscript.js
function loadScript(src, done) {
var js = document.createElement('script');
js.src = src;
js.onload = function() {
done();
};
js.onerror = function() {
done(new Error('Failed to load script ' + src));
};
document.head.appendChild(js);
View docker-compose.yml
version: '3.7'
services:
dokku:
image: dokku/dokku:latest
hostname: dokku.ghent.cloud
environment:
- DOKKU_HOSTNAME=dokku.domain.cloud
- VIRTUAL_PORT=32087
- VIRTUAL_HOST=dokku.domain.cloud
View ☀️ Weather for Walsall,UK - 1587665004
☀️ Weather for January 19th 1970
Wind Speed: 2.6
Temp: 15.6
View ✅ Todoist Stats
🏆 45,003 Karma Points
🌞 Completed 23 tasks out of 5 today
📅 Completed 95 tasks out of 25 this week
✅ Completed 20,786 tasks so far
⌛ Longest streak is 9 days
@joshghent
joshghent / sqs_to_sns.py
Created Jan 14, 2020
A small script to push messages from SQS to SNS
View sqs_to_sns.py
# Usage
# $ python sqs_to_sns.py my-queue-name
import boto3
import sys
import queue
import threading
from datetime import datetime
import json
@joshghent
joshghent / debug.txt.enc
Created Dec 4, 2019
Terraform Debug Log (Encrypted with Terraform Public Key from Keybase.io)
View debug.txt.enc
This file has been truncated, but you can view the full file.
View ⏰ Daily Productivity Stats - 2021-05-07
⏰ Stats for May 7th 2021
Productivity Pulse 6h 11m ████████░░ 80%
All Productive 5h 2m ████████▏░ 82%
All Distracting 47m 52s █▎░░░░░░░░ 13%
Neutral 20m 42s ▌░░░░░░░░░ 6%
We couldn’t find that file to show.
@joshghent
joshghent / mirror.sh
Created Aug 21, 2019
Mirror repos from gitlab to github
View mirror.sh
#!/bin/bash
repos=(repository1 repository2)
githubName="joshghent"
for repo in "${!repos[@]}"
do
reponame=${repos[repo]}
git clone git@gitlab.com:${githubName}/${reponame}.git
cd ${reponame}