Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Time flies like an arrow; fruit flies like a 🍌

@printminion printminion

💭
Time flies like an arrow; fruit flies like a 🍌
View GitHub Profile
@printminion
printminion / bunkUpdate.shapeways.js
Last active Sep 13, 2020
Bulk price update in shapeways.com
View bunkUpdate.shapeways.js
/**
* - 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 F11 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 Nov 11, 2019
hidrive_openapi_v2.1-unofficial.yaml
View 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:
View gist:fdaa21c1e4aae42438a4c88e9be281dc
/*
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 Jun 14, 2018 — forked from kordless/start-vpn.sh
VPN Server for Google Cloud
View start-vpn.sh
#!/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 Feb 23, 2018 — forked from martijnvermaat/server.py
SimpleHTTPServer with history API fallback
View server.py
#!/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.
"""
View ubuntu_desktop_set.sh
#!/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
View KubernetesBitcoinConfigs.md

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 Oct 14, 2017
Apps Script for testing site content and sending email
View CheckSiteForText.js
/** 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
@printminion
printminion / LICENSE
Created Oct 13, 2017 — forked from kjlubick/LICENSE
Exports a THREE.js scene mesh to STL, making it suitable for 3d printing
View LICENSE
The MIT License
Copyright © 2010-2016 three.js authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View sync_forked_master.sh
#!/bin/bash
#https://help.github.com/articles/syncing-a-fork/
git fetch upstream
git checkout master
git pull
git merge upstream/master
git push
You can’t perform that action at this time.