Skip to content

Instantly share code, notes, and snippets.

View morbidick's full-sized avatar
🤠
debugging CI

morbidick morbidick

🤠
debugging CI
View GitHub Profile
@MateusRodCosta
MateusRodCosta / Improved Microphone (Male voices, with Noise Reduction).json
Last active March 25, 2025 18:09
An EasyEffects preset created for input devices (intended for Microphones). Please read the README.md.
{
"input": {
"blocklist": [],
"compressor": {
"attack": 20.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"hpf-frequency": 10.0,
"hpf-mode": "off",
"input-gain": 0.0,
@djoo
djoo / link_post_translation.php
Last active April 4, 2025 08:45
WPML Custom end point link 2 existing translation
<?php
/**
* Link the FR translation and the EN translation
* Called by API https://domain.com/wp-json/link_translation/post/
*/
function custom_rest_link_translation($data) {
//Source https://wpml.org/wpml-hook/wpml_set_element_language_details/
@BrianMitchL
BrianMitchL / Eleventy Redirect From.md
Last active July 23, 2024 19:27
Eleventy Redirect From

Eleventy Redirect From

Use this template for drop-in replacement from the jekyll-redirect-from style of creating redirect files from old routes to the route of the current page.

In the front matter or data of a page, add one or many redirects:

Single

redirect_from: /old-url/page
@ppretki
ppretki / VerneMQWebHooks.java
Last active February 24, 2021 12:44
VerneMQ with Redis Auth / WebHooks / Postgres Auth
import static spark.Spark.*;
import javax.json.Json;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class VerneMQWebHooks {
private static final String RESULT_OK = Json.createObjectBuilder()
.add("result", "ok")
@hackape
hackape / checker_mod.ts
Last active January 26, 2023 15:18
Answer to Stack Overflow Question: "How can I see how TypeScript computes types?"
// https://github.com/microsoft/TypeScript/blob/ba5e86f1406f39e89d56d4b32fd6ff8de09a0bf3/src/compiler/checker.ts
// 1. add this line to ln:3
export const _conditionalTypes: any = {}
// 2. then replace ln:12303 to ln:12360
function trackConditionalType() {
// one time stuff
@bennypowers
bennypowers / singleton-mixin.html
Created October 3, 2017 21:30
Polymer Singleton Mixin
<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<script>
/**
* @polymer
* @mixinFunction
* @param {class} superClass
* @return {class}
*
* Polymer.SingletonMixin consumers must be defined with a constructor which
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Jigsaw puzzle</title>
<script type="text/javascript">
function save(filename, data)
{
var blob = new Blob([data], {type: "text/csv"});
@FabianInostroza
FabianInostroza / socketcan-golang.go
Last active August 21, 2023 13:25
SocketCan in Golang
package main
import "fmt"
import "golang.org/x/sys/unix"
import "net"
import "log"
import "encoding/binary"
import "flag"
// CANMsg almacena un mensaje de la red CAN
@ebuildy
ebuildy / docker-compose-sentry.yml
Created November 24, 2015 08:12
A simple docker-compose YML to run Sentry.
redis:
image: redis
postgres:
image: postgres:9.4
environment:
- POSTGRES_USER:sentry
- POSTGRES_PASSWORD:sentry
volumes:
- /var/data/sentry/postgre:/var/lib/postgresql/data:rw