This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# I have this as /root/eject-usb.sh and execute it from the mac by ssh with keypair | |
# With no parameters we list the currently mounted devices | |
if [ -z "$1" ] | |
then | |
# Listing mounted USB Drives | |
/usr/syno/bin/synousbdisk -enum | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
) | |
const ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; gcode made by gcwiz (c) 2018 Hans Raaf / GitHub: OderWat | |
; | |
; Notice: This can't be printed with S3D because it does not accept | |
; the Klipper specific code. Use OctoPrint or try some other host. | |
G28 | |
G1 Z5 F1500 | |
; printing 20 sections for pa from 0.0000 to 0.6000 in steps of 0.0300 | |
; first layer is 0.100 mm, other layers are 0.200 mm, total height is 40.000 mm | |
; changing pressure_advance every 2.000 mm (every 10 layers of a total of 200 layers) | |
G1 X5 Y10 F9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// The string values of the 2 classes | |
// They can be "positive" >< "negative" as in this example | |
// They can also be "ham" >< "spam", i.e. | |
const ( | |
positive = "positive" | |
negative = "negative" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
type Foo = object | |
a: int | |
b: int | |
c: float | |
#[ | |
dumpTree: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:location.href='bear://x-callback-url/add-text?title=URL-Grabber&mode=prepend&text='+encodeURIComponent('['+document.title+']('+location.href+")") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1BF3BhUZaQeRc5jjW1TczSDpvnsNdyVDGg https://explorer.blockstack.org/address/1BF3BhUZaQeRc5jjW1TczSDpvnsNdyVDGg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" to tell process "Bear" | |
set frontmost to true | |
-- show all notes | |
click menu item 1 of menu 1 of menu bar item 5 of menu bar 1 | |
-- search in (all) notes | |
click menu item 1 of menu 1 of menu item 22 of menu 1 of menu bar item 4 of menu bar 1 | |
tell application "System Events" | |
-- press delete to clear the search field | |
key code 51 | |
-- press tab to switch to note list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Spiegel Online AddBlocker removal | |
// @namespace http://oderwat.de/soabrem | |
// @version 0.1 | |
// @description I hate adblocker | |
// @author H. Raaf | |
// @match www.spiegel.de/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript | |
# | |
# Script for easy archival of single targets while the | |
# SpiderOakONE Application is running. | |
# | |
# Written by H.Raaf (c) 2017 / MIT LICENSE | |
# | |
# https://gist.github.com/oderwat/6b790effbf955300aaeaa76a462e6e2a | |
# | |
# This script is meant to be saved to ~/bin or /usr/local/bin as spiderarc |
NewerOlder