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 / aria.sh
Created April 30, 2020 03:53 — forked from amrza/aria.sh
Download List of files with aria2
#!/bin/sh
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none
date
# Now create this file in the same directory and paste all urls in it: urls.txt
@alunux
alunux / Makefile
Created September 23, 2019 13:43 — forked from xuhdev/Makefile
Makefile template for shared library
# Makefile template for shared library
CC = gcc # C compiler
CFLAGS = -fPIC -Wall -Wextra -O2 -g # C flags
LDFLAGS = -shared # linking flags
RM = rm -f # rm command
TARGET_LIB = libtarget.so # target lib
SRCS = main.c src1.c src2.c # source files
OBJS = $(SRCS:.c=.o)
@alunux
alunux / intro-latest-widevine.md
Created September 9, 2019 12:10 — forked from ruario/intro-latest-widevine.md
Fetches the latest Linux Widevine binary so that it can be used by Vivaldi.

With the release of Vivaldi 2.2, this page is now obsolete and unmaintained. Widevine is fetched automatically on post install of our official packages. The information below and the script are left for historical reasons but will not be updated.

If you are using something newer than Vivaldi 2.2, you should not be using this script as there is simply no need. Any need you think you have for it would be a bug IMHO and thus should be logged in a bug report.


Summary

A bunch of people asked how they could use this script with pure Chromium on Ubuntu. The following is a quick guide. Though I still suggest you at least try Vivaldi. Who knows, you might like it. Worried about proprietary componants? Remember that libwidevinecdm.so is a binary blob you are taking from Chrome, so by following this guide you will have already made your distro less "pure". Also all our additions to the Chromium base are ope

import boto3
s3_paginator = boto3.client('s3').get_paginator('list_objects_v2')
def keys(bucket, prefix='/', delimiter='/', start_after=''):
prefix = prefix[1:] if prefix.startswith(delimiter) else prefix
start_after = (start_after or prefix) if prefix.endswith(delimiter) else start_after
for page in s3_paginator.paginate(Bucket=bucket, Prefix=prefix, StartAfter=start_after):
for content in page.get('Contents', ()):
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',
@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
From 71afcb625f1438b32507cc282e493c5ab660dfd1 Mon Sep 17 00:00:00 2001
From: La Ode Muhammad Fadlun Akbar <fadlun@wni.com>
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
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',
#!/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
@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.