Skip to content

Instantly share code, notes, and snippets.

View printminion's full-sized avatar
💭
Time flies like an arrow; fruit flies like a 🍌

@printminion printminion

💭
Time flies like an arrow; fruit flies like a 🍌
View GitHub Profile
/*
Display only N models via CSS modification
https://cults3d.com/en/users/printminion/3d-models
In order to create screenshot for yearly overview
Injected via: https://chromewebstore.google.com/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld
Follow me on https://twitter.com/printminion
Buy me a coffee https://www.buymeacoffee.com/printminion
*/
body.body--top_bar {
@printminion
printminion / Makefile
Created October 20, 2021 07:46 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@printminion
printminion / bunkUpdate.shapeways.js
Last active June 20, 2021 12:07
Bulk price update in shapeways.com
/**
* - goto your product edit page https://www.shapeways.com/product/edit/NNNNNN#pricing
* - goto pricing table
* - select all materials with checkbox in header
* - price input must appear in table header
* - open developer conosle of your browser F12 in Chrome
* - paste thhis code into console - press enter - values should update itself
* - voila
* - buy me a coffee https://www.buymeacoffee.com/printminion , https://paypal.me/printminion
*/
@printminion
printminion / hidrive_openapi_v2.1-unofficial.yaml
Created November 11, 2019 17:12
hidrive_openapi_v2.1-unofficial.yaml
openapi: 3.0.1
info:
title: hidrive API
description: API description in Markdown. https://api.hidrive.strato.com/2.1/static/apidoc/api.json
version: 2.1.0
externalDocs:
url: "https://dev.strato.com/hidrive/documentation"
servers:
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@printminion
printminion / start-vpn.sh
Created June 14, 2018 21:05 — forked from kordless/start-vpn.sh
VPN Server for Google Cloud
#!/bin/bash
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 4 | head -n 1)
SERVER_NAME=vpn-$NEW_UUID
gcloud compute instances create $SERVER_NAME \
--machine-type "n1-standard-1" \
--image-family ubuntu-1604-lts \
--image-project "ubuntu-os-cloud" \
--boot-disk-size "20" \
--boot-disk-type "pd-ssd" \
--boot-disk-device-name "$NEW_UUID" \
@printminion
printminion / server.py
Created February 23, 2018 09:45 — forked from martijnvermaat/server.py
SimpleHTTPServer with history API fallback
#!/usr/bin/env python
"""
Modification of `python -m SimpleHTTPServer` with a fallback to /index.html
on requests for non-existing files.
This is useful when serving a static single page application using the HTML5
history API.
"""
@printminion
printminion / ubuntu_desktop_set.sh
Last active December 11, 2017 21:23
ubunu gnome config
#!/bin/bash
#set hot corners
gsettings set org.gnome.shell enable-hot-corners true
#show week number
gsettings set org.gnome.desktop.calendar show-weekdate true
#show date
@printminion
printminion / KubernetesBitcoinConfigs.md
Created October 18, 2017 19:25 — forked from zquestz/KubernetesBitcoinConfigs.md
GCE Kubernetes Bitcoin Configs

Bitcoin Kubernetes Configs

The following guide will walk you through creating a bitcoin full node within GKE (Google Container Engine).

By default Bitcoin btc1 (SegWit 2X) is used, however this can be swapped for any other node quite easily.

If you wish to run another version of bitcoind, just change the image reference in bitcoin-deployment.yml. There are tons of images available on the Docker Hub. Better yet, build your own. =)

The source for the included image is available at: https://github.com/zquestz/docker-bitcoin

@printminion
printminion / CheckSiteForText.js
Created October 14, 2017 08:39
Apps Script for testing site content and sending email
/** Apps Script for testing site content and sending email **/
function isSiteContainsString()
{
// Get the URL of the Website to monitor
var url = SpreadsheetApp.getActiveSheet().getRange("E2").getValue();
var stringToSearch = SpreadsheetApp.getActiveSheet().getRange("F2").getValue();
// HTTP Response Code of the last server request