Skip to content

Instantly share code, notes, and snippets.

Sabin Iacob m0n5t3r

  • in the intertubes
Block or report user

Report or block m0n5t3r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@m0n5t3r
m0n5t3r / beso.FCMacro
Created Jul 20, 2019
beso freecad macro
View beso.FCMacro
# -*- coding: utf-8 -*-
import os
__title__ = "BESO topological optimization"
__author__ = "fandaL"
__version__ = "00.01"
__date__ = "20/07/2019"
__Wiki__ = "https://github.com/fandaL/beso/wiki"
__Status__ = "stable"
@m0n5t3r
m0n5t3r / bitchute-rss.user.js
Created Apr 19, 2018
Add RSS link to bitchute
View bitchute-rss.user.js
// ==UserScript==
// @name Bitchute RSS
// @namespace CompletelyUnknown
// @description Adds RSS URL to bitchute.
// @include *://www.bitchute.com/channel/*
// @include *://www.bitchute.com/video/*
// @version 1
// @grant none
// @run-at document-idle
// ==/UserScript==
@m0n5t3r
m0n5t3r / plugin.py
Last active Mar 26, 2018
supybot web plugin using bs4 instead of HtmlParser
View plugin.py
###
# Copyright (c) 2005, Jeremiah Fincher
# Copyright (c) 2009, James McCoy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
@m0n5t3r
m0n5t3r / cleanup_prusa_slic3r_gcode.py
Created Nov 30, 2017
Clean up slic3r Prusa edition gcode for multi-material prints
View cleanup_prusa_slic3r_gcode.py
#!/usr/bin/env python
"""
Gcode cleaner to work around prusa slic3r annoyances for multi-filament
single-tool printing on non-Prusa printers.
Based on this gist:
* https://gist.github.com/ex-nerd/22d0a9796f4f5df7080f9ac5a07a381f
"""
import os
@m0n5t3r
m0n5t3r / set-vpn-dns.sh
Created Jun 27, 2017
(Ubuntu specific-ish) Openvpn up script to configure local dnsmasq so only internal domains are resolved via the pushed DNS; needs root, unfortunately
View set-vpn-dns.sh
#!/bin/bash
export PATH=/bin:/sbin:/usr/bin:/usr/local/bin
case $script_type in
up)
(for optionname in ${!foreign_option_*}; do
echo ${!optionname}
done) | awk '$2 == "DNS" { dns_server = $3 }; $2 == "DOMAIN" { domains = domains "/" $3 }; END { print "server=" domains "/" dns_server }' > /etc/NetworkManager/dnsmasq.d/$remote_1
@m0n5t3r
m0n5t3r / such_backup
Last active Jan 23, 2017
AWS consistent snapshot and expire script; replaces not-quite-working ec2-consistent-snapshot and ec2-expire-snapshots (both don't work in eu-central-1, the latter tries to manage all snapshots)
View such_backup
#!/bin/bash
#
# Copyright: 2016 Sabin Iacob
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
@m0n5t3r
m0n5t3r / soundgasm.userscript.js
Created Apr 25, 2016
soundgasm download userscript
View soundgasm.userscript.js
// ==UserScript==
// @name soundgasm dl
// @namespace local
// @include https://soundgasm.net/*
// @version 1
// @grant none
// ==/UserScript==
;(function(){
var player = $('#jquery_jplayer_1'),
desc = $('.jp-description'),
@m0n5t3r
m0n5t3r / Configuration.h
Created Dec 8, 2015
Electron3d / MKS Base 1.3 Marlin configuration
View Configuration.h
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include "boards.h"
#include "macros.h"
//===========================================================================
//============================= Getting Started =============================
//===========================================================================
/*
@m0n5t3r
m0n5t3r / dbus-wrapper
Last active Jan 7, 2016
Script that pings Skype for Linux over DBus and alerts you if it's dead (it tends to just become unresponsive, not crash outright); intended to be run from cron every 5 minutes or so
View dbus-wrapper
#!/bin/bash
eval $(tr '\0' '\n' </proc/$(pidof gvfsd)/environ | grep DBUS_SESSION_BUS_ADDRESS)
eval $(tr '\0' '\n' </proc/$(pidof gvfsd)/environ | grep DISPLAY)
export DISPLAY DBUS_SESSION_BUS_ADDRESS
exec $*
@m0n5t3r
m0n5t3r / test_custom_baudrate.cpp
Last active Sep 20, 2015
Simpler way to do weird baud rate setting in C(++) on (whatever has asm/termbits.h - most likely just Linux) than the (non-working) method recommended by Stuck Overflow
View test_custom_baudrate.cpp
/*
lifted from python's serial.serialposix.set_special_baudrate and made to look like C
compile with `g++ -o test_custom_baudrate test_custom_baudrate.cpp`
using 250000 to test because 3D printing people seem to love it
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
You can’t perform that action at this time.