Skip to content

Instantly share code, notes, and snippets.

View dustinrouillard's full-sized avatar
💻
Learning new things, left and right.

Dustin Rouillard dustinrouillard

💻
Learning new things, left and right.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am thetetrabyte on github.
* I am tetrabyte (https://keybase.io/tetrabyte) on keybase.
* I have a public key ASAnhnfUeCFWj0SHuuPymGBnkwrPb8QO_s9va2B4IKyvYAo
To claim this, I am signing this object:
@dustinrouillard
dustinrouillard / README.md
Created March 15, 2019 11:07
Visual Studio Code User Snippet to create snippets

If you have snippets that might conflict with another extensions snippets you can go into your vscode settings.json and add this line

"editor.snippetSuggestions": "top"
@dustinrouillard
dustinrouillard / BADGES.md
Last active July 21, 2019 21:31
Github Markdown with Badges n' such (Example badge usage for various sites)

Badges for things

Below you will find the markdown and html examples, I've included the html examples because if you want to center them in the readme you'll need to use the html tag variant with a p tag set to align center.

Center tags are used here and you can see how they're all layed out by opening the raw of this file.

<p align="center">
  <!-- Tags here -->
<html>
<head>
<title>Time Display</title>
<link rel="stylesheet" type="text/css" href="./css/dank-mono.css">
<link rel="stylesheet" href="./css/all.css">
<script defer src="./js/all.js"></script>
<style>
body {
@dustinrouillard
dustinrouillard / keybase.md
Created October 30, 2019 07:39
Keybase Proof

Keybase proof

I hereby claim:

  • I am dustinrouillard on github.
  • I am tetrabyte (https://keybase.io/tetrabyte) on keybase.
  • I have a public key ASB2_DPafHepyRx5vDsHAdcPtc4SHAptkex9we7zK6pUKwo

To claim this, I am signing this object:

@dustinrouillard
dustinrouillard / footage_watcher.sh
Created December 1, 2019 00:13
Watcher for footage from our network drive - Made for the @NotifyTeam
#!/bin/bash
INGEST_DIRECTORY="/mnt/shares/footage/ingest"
FOOTAGE_DIRECTORY="/mnt/shares/footage"
inotifywait -m $INGEST_DIRECTORY -e create -e moved_to | while read path action file; do
echo "DEBUG : Detected new file in $path ($file)"
# Use media info to pull the metadata of the media
FILE_INFO=$(mediainfo ${path}${file} --Output=JSON)

Keybase proof

I hereby claim:

  • I am dustinrouillard on github.
  • I am dustinrouillard (https://keybase.io/dustinrouillard) on keybase.
  • I have a public key whose fingerprint is FC76 2323 2110 4469 DA5F 80DD 7C1D F6D0 C13C 47CA

To claim this, I am signing this object:

@dustinrouillard
dustinrouillard / Last 7-days Statistics
Last active April 1, 2022 21:45
Last 7 days statistics - 4/1/2022
――――――――――――――――――――――――――――――――――――――――――――――――――――――
Hours writing code 9.22hrs
Terminal Commands 1,418
Docker Builds 0
――――――――――――――――――――――――――――――――――――――――――――――――――――――
@dustinrouillard
dustinrouillard / auto_theme.py
Last active July 14, 2020 04:40
This python script will make iTerm with your macOS theme. (Requires a Profile called Light and Dark)
#!/usr/bin/env python3
import asyncio
import iterm2
async def main(connection):
app = await iterm2.async_get_app(connection)
effectiveTheme = await app.async_get_variable("effectiveTheme")
@dustinrouillard
dustinrouillard / worker.js
Last active July 12, 2021 23:43
Cloudflare worker which runs fax.pics, flax.pics, burmese.pics, siamese.pics, marley.pics, and kush.pics
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
});
const start_images = 1;
const end_images = 47;
const image_folder = 'marley';
const default_image = `https://dustin.wtf/${image_folder}/1.jpg`;