Skip to content

Instantly share code, notes, and snippets.

View alfianmalik's full-sized avatar
🎯
Focusing

Alfian Maulana Malik alfianmalik

🎯
Focusing
View GitHub Profile

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

@alfianmalik
alfianmalik / README.md
Created November 24, 2020 07:58 — forked from eliquious/README.md
Golang OpenPGP examples

Building

go build -o goencrypt main.go

Generating Keys

@alfianmalik
alfianmalik / gpg-encrypt.go
Created November 23, 2020 08:43 — forked from ayubmalik/gpg-encrypt.go
Golang encrypt file using GPG openpgp. Use standard go libs.
package main
/**
Example hack to encrypt a file using a GPG encryption key. Works with GPG v2.x.
The encrypted file e.g. /tmp/data.txt.gpg can then be decrypted using the standard command
gpg /tmp/data.txt.gpg
Assumes you have **created** an encryption key and exported armored version.
You have to read the armored key directly as Go cannot read pubring.kbx (yet).
@alfianmalik
alfianmalik / functions.php
Created June 22, 2020 04:18 — forked from i-like-robots/functions.php
Wordpress custom comment form
<?php
/**
* Comment form hidden fields
*/
function comment_form_hidden_fields()
{
comment_id_fields();
if ( current_user_can( 'unfiltered_html' ) )
{
@alfianmalik
alfianmalik / bitbucket-pipelines.yml
Created July 11, 2018 10:43 — forked from nasrulhazim/bitbucket-pipelines.yml
Laravel BitBucket Pipeline
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.2.1-fpm
pipelines:
default:
- step: