Skip to content

Instantly share code, notes, and snippets.

/*
* Quick Tags Google Chrome Extension
* https://chrome.google.com/webstore/detail/quick-tabs/jnjfeinjfmenlddahdjdmgpbokiacbbb
*
* Custom comfortable style
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {

Keybase proof

I hereby claim:

  • I am microtribute on github.
  • I am microtribute (https://keybase.io/microtribute) on keybase.
  • I have a public key ASApo38YDVWGAQ8VV_mrgchfp5vvUqy99_tXnHNzM6iZmwo

To claim this, I am signing this object:

@Microtribute
Microtribute / ffmpeg.md
Created May 5, 2020 12:39 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@Microtribute
Microtribute / fstab
Last active August 23, 2020 04:50
Directory mounting through /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=caccca41-8abb-4bb4-a65e-fba8142a55ce / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
@Microtribute
Microtribute / rule.js
Created April 21, 2020 18:04 — forked from vktr/rule.js
Add Stripe Customer Id to Auth0 via custom rule
function (user, context, callback) {
user.app_metadata = user.app_metadata || {};
if ('stripe_customer_id' in user.app_metadata) {
context.idToken['https://example.com/stripe_customer_id'] = user.app_metadata.stripe_customer_id;
return callback(null, user, context);
}
var stripe = require('stripe')('sk_....');
var customer = {
@Microtribute
Microtribute / Alien.java
Last active April 23, 2020 19:28
Java Annotation Example
package com.example.demo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Alien {
<?php
namespace FrontEndBundle\Request\ParamConverter;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Common\Persistence\ObjectRepository;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
abstract class AbstractBySlugAndActiveSearcher
@Microtribute
Microtribute / demo.html
Created April 2, 2020 18:10
Reject non-numeric values from input[type=number] elements
<!-- SUMMARY:
INPUT[type=numer] elements may accept illegal values which are not a number depending on the browser you're using.
This is a known issue in Firefox.
This demo is to prevent users from entering illegal values.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
class Book<P> {
String title;
public Book(String s) {
title = s;
}
}
interface Biography {}
interface Comic {}