Skip to content

Instantly share code, notes, and snippets.

View samsulmaarif's full-sized avatar

Samsul Ma'arif samsulmaarif

View GitHub Profile
samsul@studio:/mnt/home/samsul/Dokumen/Projects/git/debian/debian-handbook_id-ID/id-ID$ git add 02_case-study.po
samsul@studio:/mnt/home/samsul/Dokumen/Projects/git/debian/debian-handbook_id-ID/id-ID$ ls
00a_preface.po 03_existing-setup.po 07_solving-problems.po 11_network-services.po 15_debian-packaging.po Author_Group.po Revision_History.po
00b_foreword.po 04_installation.po 08_basic-configuration.po 12_advanced-administration.po 70_conclusion.po Book_Info.po
01_the-debian-project.po 05_packaging-system.po 09_unix-services.po 13_workstation.po 90_derivative-distributions.po debian-handbook.po
02_case-study.po 06_apt.po 10_network-infrastructure.po 14_security.po 92_short-remedial-course.po README
samsul@studio:/mnt/home/samsul/Dokumen/Projects/git/debian/debian-handbook_id-ID/id-ID$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
@samsulmaarif
samsulmaarif / log-terminal-13-8-2014
Created August 13, 2014 14:06
log-terminal-13-8-2014
[samsul@studio id-ID]$ cd ../../../
[samsul@studio git]$ ls
05_packaging-system.po debian gnusim8085 liferea php-the-right-way scripts tutorial
bootstrap geany Greyhound linuxsidareja.github.io progit ServiceOnline website_uvt
cacti git Hallo linuxsidareja.github.io.wiki reposcripts Simba
coder-html-css-lessons gitlist Heimdall MySimpleScript ruby-sample simplepie
cola gitphp heroku-muktisari pascal samsulmaarif.github.io SiPUS
[samsul@studio git]$ cd Heimdall
[samsul@studio Heimdall]$ ls
heimdall heimdall-frontend libpit libusb-1.0 LICENSE Linux msvc2012.sln OSX README Win32
@samsulmaarif
samsulmaarif / log-install-wifi-access-point
Created August 25, 2014 05:54
Log terminal saat mengeksekusi berkas install_wifi_access_point.sh
[samsul@studio Source]$ sudo bash install_wifi_access_point.sh
Sedang membaca daftar paket... Selesai
Membangun pohon ketergantungan
Membaca informasi yang tersedia... Selesai
iw telah berada dalam versi terbaru.
0 dimutakhirkan, 0 baru terinstal, 0 akan dihapus dan 15 tidak akan dimutakhirkan.
Sedang membaca daftar paket... Selesai
Membangun pohon ketergantungan
Membaca informasi yang tersedia... Selesai
Paket BARU berikut akan diinstal:

Membangun irgsh-node (Builder)

Mempersiapkan sertifikat

Sertifikat-sertifikat ini nantinya akan digunakan sebagai otentikasi antara taskinit dan pekerjanya.

Inisialisasi CA

Jika sudah ada CA (Certificate Authority), buat sertifikat baru untuk komponen irgsh-web. Jika belum ada, berikut cara menginisalisasi CA baru dan membuat sertifikat turunan.

@samsulmaarif
samsulmaarif / i3-gaps-install.sh
Created January 1, 2018 05:46 — forked from aaronsaderholm/i3-gaps-install.sh
Install i3-gaps on Ubuntu 16.04
#!/bin/bash
# Install i3-gaps on Ubuntu 16
set -e
set -x
sudo apt-get update && sudo apt-get -y dist-upgrade && \
sudo apt-get install -y libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev dh-autoreconf
mkdir -p $HOME/repos
cd $HOME/repos

Install Docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt install -y apt-transport-https
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
@samsulmaarif
samsulmaarif / LXD_SSH_KEY.md
Created June 30, 2018 14:25 — forked from jeanlouisferey/LXD_SSH_KEY.md
How to create a LXD Container with your ssh key in it (and with ssh server in the container)
@samsulmaarif
samsulmaarif / apache2_myapp.conf
Last active July 13, 2018 08:13
SSL Labs gradded A+, Apache2.4
<VirtualHost *:80>
DocumentRoot "/var/www/app/mylaravelapp/public"
ServerName mywebapp.com
ServerAlias www.mywebapp.com
DirectoryIndex index.php index.html
Redirect / https://mywebapp.com
<Directory "/var/www/app/mylaravelapp/public">
Options Indexes FollowSymLinks
AllowOverride All
@samsulmaarif
samsulmaarif / nginx-situsku.conf
Last active February 27, 2019 15:29
nginx/1.10.3 (Ubuntu) SSL config for A+ on SSLLabs.com
server {
listen 80;
server_name www.websiteku.id websiteku.id;
rewrite ^ https://websiteku.id/$1 permanent;
#root /home/situs/websiteku;
location / {
try_files $uri $uri/ =404;
}
}
@samsulmaarif
samsulmaarif / serving-apple-app-site-association.conf
Last active November 9, 2023 04:23
Serving /apple-app-site-association for iOS App in nginx
server {
listen 80;
server_name myweb.id www.myweb.id;
root /var/www/myweb.id/project/public/;
error_log /var/log/nginx/myweb.id-error.log;
index index.php index.html;
location /apple-app-site-association {
alias /var/www/otherfolder/ios/;