Skip to content

Instantly share code, notes, and snippets.

View m0rff's full-sized avatar
🥦

Morf m0rff

🥦
  • Thomann.io
  • Bavaria, Germany
View GitHub Profile
@m0rff
m0rff / machine.js
Created January 24, 2020 21:44
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
<?php
declare(strict_types=1);
/**
* Class MaxSquareFinder
*
*/
class MaxSquareFinder
{
/**
@m0rff
m0rff / MaxSquareFinder.php
Created September 28, 2019 21:01
My solution to:Have the function MaximalSquare(strArr) take the strArr parameter being passed which will be a 2D matrix of 0 and 1's, and determine the area of the largest square submatrix that contains all 1's. A square submatrix is one of equal width and height, and your program should return the area of the largest submatrix that contains onl…
<?php
declare(strict_types=1);
/**
* Class MaxSquareFinder
*
*/
class MaxSquareFinder
{
/**
@m0rff
m0rff / MaxSquareFinder.php
Created September 28, 2019 21:01
My solution to:
<?php
declare(strict_types=1);
/**
* Class MaxSquareFinder
*
*/
class MaxSquareFinder
{
/**
@m0rff
m0rff / keybase.md
Created September 10, 2019 08:59
keybase.md

Keybase proof

I hereby claim:

  • I am m0rth1um on github.
  • I am morth (https://keybase.io/morth) on keybase.
  • I have a public key ASDi8RobamqP4UVRyidzLBiHXz1TPpL2ij-GC0shiDgmLgo

To claim this, I am signing this object:

@m0rff
m0rff / keybase.md
Created September 10, 2019 08:59
keybase.md

Keybase proof

I hereby claim:

  • I am m0rth1um on github.
  • I am morth (https://keybase.io/morth) on keybase.
  • I have a public key ASDi8RobamqP4UVRyidzLBiHXz1TPpL2ij-GC0shiDgmLgo

To claim this, I am signing this object:

@m0rff
m0rff / 0_reuse_code.js
Created October 11, 2016 18:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@m0rff
m0rff / send_sms.py
Last active November 28, 2022 12:45
Sending a SMS with Python and pyserial via an USB 3G Modem on pfSense/FreeBSD
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#
# Sending a SMS with Python and pyserial via an USB 3G Modem on pfSense/FreeBSD
# tested with: Huawei Technologies Co., Ltd. E620 USB Modem
# and a Telekom SIM card
import serial
from curses import ascii
import time
@m0rff
m0rff / README.md
Last active April 27, 2016 13:22
a simple script when you often have to ssh into the same ip ranges with changing ssh keys (e.g. often reinstalled vms)

When you often have to SSH into VMs with changing SSH Keys and you dont want to edit your known_hosts everytime ...

Usage:

sshvm.sh 2

Looks for 10.2.3.2 in your known_hosts. Deletes any matching entries. Copies your ssh key. SSHs into the machine.

@m0rff
m0rff / portal-highlight-newmods.user.js
Last active December 18, 2015 17:59
IITC Highlight New Mods Plugin
// ==UserScript==
// @id iitc-plugin-highlight-newmods@morth
// @name IITC plugin: highlight new mods on portals
// @category Highlighter
// @version 0.1
// @namespace http://morth.q1cc.net/
// @updateURL http://morth.q1cc.net/portal-highlight-newmods.user.js
// @downloadURL http://morth.q1cc.net/portal-highlight-newmods.user.js
// @description Uses the fill color of the portals to denote portals if they have new Special Mods
// @include https://www.ingress.com/intel*