Skip to content

Instantly share code, notes, and snippets.

View alunux's full-sized avatar

La Ode Muhammad Fadlun Akbar alunux

  • Chiba, Japan
View GitHub Profile
@alunux
alunux / gist:9927276da470bdd84e6749c1bdcf76dd
Created May 1, 2018 20:21 — forked from tpot/gist:edd0952f03d744d28a92
SSL front-end proxy nginx configuration for OpenStack
ssl_certificate /etc/ssl/certs/z400cert.pem;
ssl_certificate_key /etc/ssl/private/z400key.pem;
# Keystone
server {
listen 192.168.1.2:5000;
ssl on;
location / {
include /etc/nginx/proxy_params;
@alunux
alunux / ex_read_tuner.c
Created May 20, 2018 14:43
Compile: gcc -Wall ex_read_tuner.c -o ex_read_tuner
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/dvb/frontend.h>
int main(void)
{
struct dvb_frontend_info info_tuner;
int fd = open("/dev/dvb/adapter0/frontend0", O_RDONLY);
@alunux
alunux / openssl.MD
Created July 3, 2018 00:04 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@alunux
alunux / restart-budgie.sh
Created September 12, 2018 23:22
Restart budgie-panel properly
nohup budgie-panel --replace 2>&1 > /dev/null &
@alunux
alunux / fix-symlink-steam.sh
Last active September 13, 2018 23:50
[Fedora 28] Workaround for Linux Steam Integration. Fix performance degradations because of glibc issue.
#!/bin/bash
IMGNAME="Fedora-Cloud-Base-28-1.1.x86_64"
VHDIMG="${IMGNAME}.vhd"
IMG="${IMGNAME}.raw"
XZIMG="${IMG}.xz"
XZIMGURL="https://download.fedoraproject.org/pub/fedora/linux/releases/28/Cloud/x86_64/images/${XZIMG}"
IMGSUM="b9b302ab6b7dd7143a15539c2eedff3d8a302f70e619a4e0895857fc9ad7f09d"
wget -nc $XZIMGURL
from keystoneauth1.identity import v3
from keystoneauth1 import session
from keystoneclient.v3 import client, roles, users
auth = v3.Password(
auth_url='http://HOST:5000/v3',
user_domain_name='DOMAIN',
project_domain_name='DOMAIN',
project_name='PROJECT',
username='USER',
From 71afcb625f1438b32507cc282e493c5ab660dfd1 Mon Sep 17 00:00:00 2001
From: La Ode Muhammad Fadlun Akbar <[email protected]>
Date: Tue, 4 Jun 2019 11:24:57 +0900
Subject: [PATCH] configure: bring back --with-ssh1 option
---
configure.ac | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/configure.ac b/configure.ac
@alunux
alunux / github-pages-custom-domain-gandi-dns-records.md
Created July 6, 2019 12:39 — forked from matt-bailey/github-pages-custom-domain-gandi-dns-records.md
How to set up DNS records on gandi.net to use a custom domain on Github Pages

How to set up DNS records on gandi.net to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
use strict;
use warnings;
use File::Basename;
use IO::Compress::Gzip qw(gzip $GzipError);
my $mypath = dirname($0);
my $index_fn = "$mypath/index";
my @test_append = (
'WIWW.2019-03-22-21-48-30.2019-03-23-09-00-00.png',