Skip to content

Instantly share code, notes, and snippets.

@ftntming
ftntming / install-kafka.txt
Created Apr 1, 2021 — forked from jarrad/install-kafka.txt
Install Kafka on OSX via Homebrew
View install-kafka.txt
$> brew cask install java
$> brew install kafka
$> vim ~/bin/kafka
# ~/bin/kafka
#!/bin/bash
zkServer start
kafka-server-start.sh /usr/local/etc/kafka/server.properties
@ftntming
ftntming / mod_http_upload-nginx_reverse_proxy.md
Created Mar 2, 2021 — forked from imShara/mod_http_upload-nginx_reverse_proxy.md
Ejabberd (19.08+) mod_http_upload and Nginx reverse-proxy
View mod_http_upload-nginx_reverse_proxy.md

If we have xmpp server on host domain.tld and want serve files from https://xmpp.domain.tld/upload/…

/etc/ejabberd/ejabberd.yml


listen
  port: 5280
  ip: "127.0.0.1"
  module: ejabberd_http
View ConditionalOtpFormAuthenticator.java
package org.keycloak.authentication.authenticators.browser;
import org.keycloak.authentication.AuthenticationFlowContext;
import org.keycloak.models.RoleModel;
import org.keycloak.models.UserModel;
import javax.ws.rs.core.MultivaluedMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
@ftntming
ftntming / OpenamRESTapi
Created Sep 2, 2020 — forked from burck1/OpenamRESTapi
OpenAM REST api summary
View OpenamRESTapi
Ref: http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#chap-rest
Authentication - http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#rest-api-auth-json
Token Validation - http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#rest-api-token-validation
User Self Registration - http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#rest-api-self-registration
Reseting Forgotten Passwords - http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#rest-api-password-reset
Identity Management - http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index/chap-rest.html#rest-api-crud-identity
Login v1:
@ftntming
ftntming / final-cut-it-out.js
Created May 7, 2020 — forked from jashmenn/final-cut-it-out.js
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo: https://imgur.com/a/Zisav
View final-cut-it-out.js
#!/usr/bin/env osascript -l JavaScript
/**
* Delete silence from Final Cut Pro timeline using a script.
* Demo: https://imgur.com/a/Zisav
*
* This script accepts an ffmpeg silencedetect log as input.
*
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip
@ftntming
ftntming / GIF-Screencast-OSX.md
Created Apr 22, 2020 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: