Skip to content

Instantly share code, notes, and snippets.

View MightyPork's full-sized avatar
🐶
meow

Ondřej Hruška MightyPork

🐶
meow
View GitHub Profile
Dearest one
How are you doing today, Please, may you receive this letter with peace of mind and with due respect as it may be very
strange to you as we have not communicated or know each other before. I am looking for your co-operation in building a
Tourist Hotel or Real Estate in Your country.
I am sorry if this is not in line with your business. I need an experienced person to assist me to set up, develop the
project with $7.4M, which I inherited from my late father.On the resumption of the project, you will be made a Director
for the role and the assistance you rendered. You will also be entitled to a percentage agreed upon between us before
@MightyPork
MightyPork / masto-throttle.user.js
Last active January 22, 2018 17:19
MastoThrottle
// ==UserScript==
// @name MastoThrottle
// @namespace http://tampermonkey.net/
// @version 1
// @description Stops you from wasting unhealthy amounts of time on Mastodon
// @author @MightyPork@dev.gtitch.social
// @match https://dev.glitch.social/web/*
// @grant none
// ==/UserScript==
/**
* Spectral peak detection algorithm with interpolation
*
* Written by Ondřej Hruška "MightyPork", Dec 30, 2017
*
* This source code is hereby released to the public domain
* for anyone to use for anything they want.
*/
#include <stdlib.h>
vortex.data.microsoft.com
vortex-win.data.microsoft.com
telecommand.telemetry.microsoft.com
telecommand.telemetry.microsoft.com.nsatc.net
oca.telemetry.microsoft.com
oca.telemetry.microsoft.com.nsatc.net
sqm.telemetry.microsoft.com
sqm.telemetry.microsoft.com.nsatc.net
watson.telemetry.microsoft.com
watson.telemetry.microsoft.com.nsatc.net
@MightyPork
MightyPork / main.c
Created December 10, 2017 19:01
GEX 0.0.1 demo: Neopixel Dynamic Screen Backlight
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "TinyFrame.h"
#include "serial.h"
cmake_minimum_required(VERSION 3.9)
project(PotkanF103)
set(CMAKE_CXX_STANDARD 11)
add_definitions(
-DUSE_HAL_DRIVER
-DSTM32F103xB
-D__weak=__attribute__\(\(weak\)\)
-D__packed=__attribute__\(\(__packed__\)\)
#!/usr/bin/php
<?php
$t = file_get_contents('Makefile');
{
$t = str_replace("BINPATH = \r\n", "BINPATH = /usr/bin\r\n", $t);
$t = preg_replace_callback('/C_SOURCES =.*?\r\n\r\n/s', function($m) {
$x = trim($m[0]);
$lines = array_map('trim', explode('\\', $x));
#include <inttypes.h>
#include <stdlib.h>
#include "stm32f1xx_ll_utils.h"
/**
* @brief USBD_FS_SerialStrDescriptor
* return the serial number string descriptor
* @param speed : current device speed
* @param length : pointer to data length variable
* @retval pointer to descriptor buffer
#!/bin/bash
youtube-dl -x https://www.youtube.com/watch?v=X6neFKE4yaE -o firewatch.opus
ffmpeg -i firewatch.opus -vn -ar 44100 -ac 2 -ab 192k -f mp3 firewatch.mp3
ffmpeg -i firewatch.mp3 -acodec copy -metadata artist='Campo Santo' -metadata composer='Chris Remo' -metadata year='2016' -metadata genre='Game Soundtrack' -metadata album='Firewatch OST' -to 03:34 -ss 00:00 -metadata track="01" -metadata title="Prologue" "01-Prologue.mp3"
ffmpeg -i firewatch.mp3 -acodec copy -metadata artist='Campo Santo' -metadata composer='Chris Remo' -metadata year='2016' -metadata genre='Game Soundtrack' -metadata album='Firewatch OST' -to 05:29 -ss 03:34 -metadata track="02" -metadata title="Stay in Your Tower and Watch" "02-Stay_in_Your_Tower_and_Watch.mp3"
ffmpeg -i firewatch.mp3 -acodec copy -metadata artist='Campo Santo' -metadata composer='Chris Remo' -metadata year='2016' -metadata genre='Game Soundtrack' -metadata album='Firewatch OST' -to 06:25 -ss 05:29 -metadata track="03" -metadata title="Something's Wrong" "03-So
This file has been truncated, but you can view the full file.
/* _GlobalPrefix_ */
/* _Module_:n */
try{
var f,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=aaa)},aaa=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),da=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&
aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return baa(this)}});da=function(){}},baa=function(a){var b=0;return caa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},caa=function(a){da();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a},ea=function(a){da();var b=a[Symbol.iterator];return b?b.call(a):baa(a)},daa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;