Skip to content

Instantly share code, notes, and snippets.

View tajidyakub's full-sized avatar
💭
The time has come.

Tajid Yakub tajidyakub

💭
The time has come.
View GitHub Profile
@tajidyakub
tajidyakub / cabundle-rsa-root-cloudflare-origin.md
Created February 21, 2018 06:42
RSA-root or CABUNDLE for CloudFlare Origin Certs

Paste this into Certificate Authority Bundle Field in cPanel

-----BEGIN CERTIFICATE-----
MIID/DCCAuagAwIBAgIID+rOSdTGfGcwCwYJKoZIhvcNAQELMIGLMQswCQYDVQQG
EwJVUzEZMBcGA1UEChMQQ2xvdWRGbGFyZSwgSW5jLjE0MDIGA1UECxMrQ2xvdWRG
bGFyZSBPcmlnaW4gU1NMIENlcnRpZmljYXRlIEF1dGhvcml0eTEWMBQGA1UEBxMN
U2FuIEZyYW5jaXNjbzETMBEGA1UECBMKQ2FsaWZvcm5pYTAeFw0xNDExMTMyMDM4
NTBaFw0xOTExMTQwMTQzNTBaMIGLMQswCQYDVQQGEwJVUzEZMBcGA1UEChMQQ2xv
dWRGbGFyZSwgSW5jLjE0MDIGA1UECxMrQ2xvdWRGbGFyZSBPcmlnaW4gU1NMIENl
@tajidyakub
tajidyakub / mongodb-access-control.md
Created February 13, 2018 14:12
Install MongoDB, enable access control, create Admin User and Database user for MongoDB in Ubuntu

MongoDB Kickstart in Ubuntu

Install and enable access control, create Admin and database User via MongoDB Shell

Installation and Enable Access Control

Use apt-get install for installation

$ apt-get install mongodb
$ systemctl status mongodb
@tajidyakub
tajidyakub / 6to4-tunnel-he.md
Created February 11, 2018 08:37
Configure a 6to4 tunnel from our server to HE's tunnelbroker in Ubuntu

Hurricane Electronic's 6to4 Tunnel Broker

URL : https://tunnelbroker.net/

  • Register for tunnelbroker 6to4 service from HE
  • Create a tunnel in the management interface, you have to provide your server's IP Address as tunnel endpoint
  • Download init script, make it executable and put inside /etc/network/if-up.d/
  • Init script from https://gist.github.com/jbhannah/987146
@tajidyakub
tajidyakub / nodejs-app-systemd.md
Last active February 8, 2018 21:38
Eksekusi aplikasi nodejs melalui systemd dan integrasi dengan platform linux.

Aplikasi Nodejs dengan Systemd

Contoh aplikasi nodejs yang dimaksud adalah sebuah REST API Server yang dikembangkan dengan menggunakan feathersjs. Langkah berikut akan membuat sebuah service file untuk melakukan eksekusi api server secara native.

Service file untuk aplikasi nodejs

Direktori yang digunakan oleh linux untuk menjalankan service melalui systemd adalah /lib/systemd/system Buat file di dalam direktori tersebut yang menggambarkan aplikasi yang ingin dimasukkan ke dalam systemd.

@tajidyakub
tajidyakub / sshfs-macos-ubuntu-server.md
Created February 8, 2018 12:48
SSHFS di MacOS dan Ubuntu Server

Instalasi dan Konfigurasi SSHFS di MacOS dan Ubuntu Server

Tujuan

  • Melakukan direct modification terhadap file yang berada di remote server
  • Memudahkan start-up untuk pengerjaan aplikasi tanpa mengkondisikan devs env

Instalasi SSHFS di MacOS dan Ubuntu

Di local machine dapat diinstall menggunakan brew;

@tajidyakub
tajidyakub / _meta.scss
Created January 31, 2018 09:50
Starter files in Twitter Bootstrap 4 Theming via SASS for WordPress template
/*
Theme Name: Sysadmin
Theme URI: https://github.com/tajidyakub/sysadmin-wordpress-themes
Author: Tajid Yakub
Author URI: https://tajidyakub.com/
Description: Simple WordPress theme with usability and clarity as the main consideration, build with _s and Twitter Bootstrap v.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: simple, responsive, grid, clarity, usability
@tajidyakub
tajidyakub / inject-scripts-bootstrap-dependencies.md
Created January 31, 2018 09:42
Inject Twitter bootstrap scripts with dependencies (jquery and popper.js)
/**
 * Includes jQuery, popper.js umd and Bootstrap javascripts
 * into the application script.
 */

try {
	window.$ = window.jQuery = require('jquery');
	window.Popper = require('popper.js');
@tajidyakub
tajidyakub / laravel-mix-sample-configuration.md
Created January 31, 2018 09:31
Laravel mix sample configuration for Twitter Bootstrap Frontend development
let mix = require('laravel-mix');

mix.sass('src/scss/style.scss','build')
  .js('src/scripts/app.js', 'build/scripts');

Necessary scripts in package.json

"scripts": {
@tajidyakub
tajidyakub / wordpress-themes-notes-basic.md
Last active February 1, 2018 06:32
WordPress Themes references, how to, snippets, repositories notes
@tajidyakub
tajidyakub / letsencrypt-easyengine-manual-install.md
Last active December 7, 2022 05:13
Install Let's Encrypt's SSL Certificates manually in an Easy Engine Powered Setup