Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
🌏
DevOps Engineer

Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP rescenic

🌏
DevOps Engineer
View GitHub Profile
@stevesohcot
stevesohcot / MainActivity.java
Last active March 12, 2023 03:18
Android Studio WebView - splash screen (complete)
package com.diamondium.samplewebview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.graphics.Bitmap;
import android.view.View;
import android.widget.ProgressBar;
@yangxuan8282
yangxuan8282 / emoji-info.sh
Last active January 24, 2025 18:39
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence
@rogeriopradoj
rogeriopradoj / composer.json
Created July 2, 2017 17:07
mail.php - phpmailer + mailhog - send mail via smtp
{
"require": {
"phpmailer/phpmailer": "^5.2"
}
}
@dentechy
dentechy / WSL-ssh-server.md
Last active May 9, 2025 02:32
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux

How to automatically start ssh server on boot on Windows Subsystem for Linux

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Edit the /etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
    1. Change Port to 2222 (or any other port above 1000)
    2. Change PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.
  2. Restart the ssh server:
    • sudo service ssh --full-restart
  3. With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
@tajidyakub
tajidyakub / certbot-ssl-lets-encrypt-cpanel.md
Created November 4, 2017 10:12
Menggunakan certbot untuk menerbitkan SSL Certificate dari yang di signed oleh Let's Encrypt di localhost untuk diinstall ke cPanel server

SSL Certificate dari Let's Encrypt untuk diinstall di cPanel

Instalasi certbot dan opsi yang perlu diperhatikan

Instalasi certbot menggunakan homebrew dan melihat opsi yang disediakan ketika eksekusi certbot.

$ brew install certbot
$ certbot --help
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN]
@subicura
subicura / config.conf
Created January 12, 2018 10:46
neofetch config
# Neofetch config file
# https://github.com/dylanaraps/neofetch
# Speed up script by not using unicode
export LC_ALL=C
export LANG=C
myprin() {
if [ "$2" ]; then
get_$2 &>/dev/null
@dikiaap
dikiaap / git-io-custom-url.md
Last active September 8, 2025 00:26
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active October 25, 2025 20:17
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@Semo
Semo / Install_powerline_fonts_centos_7.md
Last active January 31, 2024 07:33
How to install Powerline fonts into CentOS 7

How to install Powerline fonts into CentOS 7

For a Oh-My-Zsh Shell custommized theme, called Spaceship Prompt it's reecommended to install the Powerline Fonts. In a CentOS 7 machine it can be a little more work, than doing it via a package manager.

Clone the latest Font

git clone https://github.com/powerline/fonts.git --depth=1

and install them