Skip to content

Instantly share code, notes, and snippets.

View riipandi's full-sized avatar
🦀
Deep dive into Rust

Aris Ripandi riipandi

🦀
Deep dive into Rust
View GitHub Profile
@riipandi
riipandi / default-404.html
Last active September 29, 2019 16:41
Basic LEMP Stack snippets and configuration
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all, noindex, nofollow">
<meta name="googlebot" content="all, noindex, nofollow">
<title>Site Not Found</title>
<link rel='stylesheet' type='text/css' href='//fonts.googleapis.com/css?family=Karla:400,700'>
Get-AppxPackage "Microsoft.3DBuilder" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.AppConnector" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingFinance" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingFoodAndDrink" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingHealthAndFitness" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingMaps" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingNews" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingSports" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingTranslator" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register
Get-AppxPackage "Microsoft.BingTra
@riipandi
riipandi / .env.example
Last active April 21, 2019 10:44
Laravel Scaffolding
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
ASSET_URL=${APP_URL}
TELESCOPE_ENABLED=${APP_DEBUG}
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@riipandi
riipandi / NotepadContext.inf
Created April 12, 2019 05:41
Add Open with Notepad context menu.
[version]
signature="$CHICAGO$"
[NotepadContextInstall]
CopyFiles = NotepadContext.Files.Inf
AddReg = NotepadContext.AddReg
[DefaultInstall]
CopyFiles = NotepadContext.Files.Inf
AddReg = NotepadContext.AddReg
if ! grep -q 'sda5' /etc/fstab ; then echo '/dev/sda5 /media/Storage ntfs-3g default 0 0' >> /etc/fstab ; fi
mkdir -p /media/Storage ; mount -a
# Basic system setup
#---------------------------------------------------------------------------------------
perl -pi -e 's#(.*sudo.*ALL=)(.*)#${1}(ALL) NOPASSWD:ALL#' /etc/sudoers
cat > /etc/apt/sources.list <<EOF
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
@riipandi
riipandi / ispconfig3-debian6.sh
Created March 11, 2012 11:04
ISPConfig3 Installer (Debian Squeeze 32bit)
#!/bin/bash
#
# Debian GNU/Linux Installation Script for LAMP + ISPConfig3
# Script written by Aris S Ripandi (riespandi@gmail.com) 15/01/2012
#
# Referensi:
# - http://www.howtoforge.com/how-to-run-your-own-name-server-with-ispconfig-3-and-fast-hosts
# - http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-courier-ispconfig-3
# - http://www.howtoforge.com/installing-mydns-ng-and-mydnsconfig-on-debian-squeeze
# - http://www.howtoforge.com/how-to-run-your-own-name-server-with-ispconfig-3-and-fast-hosts
@riipandi
riipandi / contributor-covenant.md
Last active January 2, 2019 12:07
Code of Conduct sample documents.

Kode Etik Contributor Covenant

Janji Kami

Sesuai minat kami untuk membuat lingkungan yang terbuka dan ramah, kami sebagai kontributor dan pengelola berjanji untuk membuat partisipasi dalam proyek kami dan komunitas kami bebas dari pelecehan untuk semua orang, tanpa memandang usia, ukuran tubuh, disabilitas, kelompok etnis, identitas gender dan ekspresinya, tingkat pengalaman, pendidikan, status sosial ekonomi, kewarganegaraan, penampilan pribadi, ras, agama, atau identitas dan orientasi seksual.

Standar Kami

@riipandi
riipandi / s3cmd-do-space.ini
Last active December 31, 2018 16:39
Example default configuration file.
[default]
access_key = xxxxxxxxxxxxxxxx
access_token =
bucket_location = US
check_ssl_certificate = True
check_ssl_hostname = True
default_mime_type = binary/octet-stream
delay_updates = False
delete_after = False
delete_after_fetch = False
@riipandi
riipandi / fedora-budgie.sh
Last active September 18, 2018 15:56
Fedora Budgie from Netinstall
#!/bin/bash
#
# Optional @LibreOffice: libreoffice-{calc,emailmerge,graphicfilter,impress,writer}
# git.io/fAXxQ
#
##
iwconfig wlp1s0 essid pasimnet
#wpa_passphrase pasimnet YourWPAKey | tee /etc/wpa_supplicant.conf
#wpa_supplicant -Dwext -iwlp1s0 -c /etc/wpa_supplicant.conf &
@riipandi
riipandi / ssh-notif.sh
Last active July 28, 2018 08:25
Telegram Bot
#!/usr/bin/env bash
# Import credentials form config file
. /etc/tg_ssh_notif.conf
URL="https://api.telegram.org/bot${KEY}/sendMessage"
DATE="$(date "+%d %b %Y %H:%M")"
if [ -n "$SSH_CLIENT" ]; then
CLIENT_IP=$(echo $SSH_CLIENT | awk '{print $1}')