Skip to content

Instantly share code, notes, and snippets.

Afriza N. Arief afriza

  • Indonesia
Block or report user

Report or block afriza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@afriza
afriza / ssh-without-host-key-check.config
Created Oct 1, 2019
SSH config to disable strict host key checking
View ssh-without-host-key-check.config
Host localhost 127.0.0.1
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
@afriza
afriza / INSTALLING-vlc-with-decklink-support.md
Last active Dec 18, 2019
Compiling and installing `vlc` with Decklink SDK on Ubuntu 18.04 Server
View INSTALLING-vlc-with-decklink-support.md
@afriza
afriza / admin.sql
Created Aug 2, 2019 — forked from Hikingyo/admin.sql
create admin user with all privileges on mysql/mariadb
View admin.sql
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
## remote connection - not secure
CREATE USER 'admin'@'%' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
@afriza
afriza / HTTPS-LetsEncrypt-nginx.md
Created Apr 11, 2019
Installing HTTPS for NGINX with Let's Encrypt on Ubuntu 18.04
View HTTPS-LetsEncrypt-nginx.md

Installing HTTPS for NGINX with Let's Encrypt on Ubuntu 18.04

  • First, install add-apt-repository
    sudo apt install software-properties-common
  • Then, install certbot
    sudo add-apt-repository ppa:certbot/certbot
    sudo apt install python-certbot-nginx
@afriza
afriza / install-ffmpeg-with-decklink-support-ubuntu-18.04-server.md
Last active Nov 19, 2019
Compiling and installing `ffmpeg` with Decklink SDK on Ubuntu 18.04 Server
View install-ffmpeg-with-decklink-support-ubuntu-18.04-server.md
@afriza
afriza / install-nginx-rtmp-module.sh
Last active Jan 22, 2020
Install NGINX RTMP module with HLS support on Ubuntu 18.04
View install-nginx-rtmp-module.sh
sudo apt install curl gnupg2 ca-certificates lsb-release
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sudo apt update
NGINX_VERSION=$(apt show nginx | grep "^Version" | cut -d " " -f 2 | cut -d "-" -f 1)
# take note of the nginx version in the "stable" release. e.g. 1.14.2
echo NGINX version $NGINX_VERSION
wget https://hg.nginx.org/pkg-oss/raw-file/default/build_module.sh
chmod a+x build_module.sh
@afriza
afriza / twinkle-auto-call-answer.go
Last active Feb 1, 2019
Twinkle Linux SIP/VoIP auto call and auto answer via command line
View twinkle-auto-call-answer.go
package main
import (
"bufio"
"context"
"flag"
"fmt"
"log"
"os/exec"
"strings"
@afriza
afriza / sc_mon.sh
Created Apr 2, 2014
Shoutcast Scripts to during start up and to keep it running
View sc_mon.sh
#!/bin/sh
#!/usr/bin/perl
### Shoutcast (SC_SERV)
# Taken from: http://forums.winamp.com/showthread.php?postid=2487604
## SC_SERV Server 1
if ( ! ps auxwww | grep "/home/user/sc_serv/sc_serv /home/user/sc_serv/sc_serv.conf" | grep -v grep )
then echo "Shoutcast not running..."
@afriza
afriza / .clang_complete
Created Mar 22, 2012
.clang_complete for kernel module development
View .clang_complete
-std=gnu89
-I/lib/modules/3.0.0-16-generic/build/include/
-I/lib/modules/3.0.0-16-generic/build/arch/x86/include/
-D__KERNEL__
-DMODULE
@afriza
afriza / redsocks.conf
Created Jul 21, 2011
Setup iptables for RedSocks in OpenWRT
View redsocks.conf
base {
// debug: connection progress & client list on SIGUSR1
log_debug = on;
// info: start and end of client session
log_info = on;
/* possible `log' values are:
* stderr
* file:/path/to/file
You can’t perform that action at this time.