Skip to content

Instantly share code, notes, and snippets.

View ariews's full-sized avatar

Arie W. Subagja ariews

View GitHub Profile
@ariews
ariews / snap-remover.sh
Created April 6, 2026 06:14 — forked from lassekongo83/snap-remover.sh
Completely remove snaps from Ubuntu.
#!/bin/sh
# Remove snaps completely from Ubuntu
# Tested on Ubuntu 22.04
# WARNING: This script will remove ALL snap applications. (Includning Firefox and the Software store).
# Make backups of your configurations, bookmarks, etc. You should also make sure to have replacements
# ready for software that you use. (Like Firefox for example.)
# Lists all installed snap applications and then uninstalls them.
@ariews
ariews / README.md
Created May 4, 2024 17:05 — forked from lsv/README.md
KNP Menu Bundle - Bootstrap 4 and Font Awesome 4
<?php
/**
* Class MetaReplacer
*/
class MetaReplacer
{
/**
* Path to HEXO source
*
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
@ariews
ariews / PapertrailServiceProvider.php
Created November 19, 2015 08:10
Laravel 5.1 Papertrail
<?php
# file: app/Providers/PapertrailServiceProvider.php
namespace App\Providers;
use Illuminate\Log\Writer;
use Illuminate\Support\ServiceProvider;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\SyslogUdpHandler;
server {
listen 80;
index index.php;
server_name new.project;
# root directory
# normal: /path/to/new.project/public
root /path/to/new.project;
# set url
server {
listen 80;
index index.php;
server_name october.cms;
# root directory
root /path/to/octobercms;
location / {
http://freevps.us/downloads/bench.sh
======================================================
yang lama:
root@arie:~# bash bench.sh
CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Number of cores : 4
CPU frequency : 1197.348 MHz
# server #1
CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Number of cores : 4
CPU frequency : 1197.348 MHz
Total amount of ram : 1536 MB
Total amount of swap : 0 MB
System uptime : 4 days, 20:46,
Download speed from CacheFly: 9.95MB/s
Download speed from Coloat, Atlanta GA: 9.48MB/s
Download speed from Softlayer, Dallas, TX: 9.54MB/s
#
# Server Debian 6
# Nginx 1.2.7
#
server {
listen 80;
server_name arie.malam.or.id;
root /opt/sites/arie.malam.or.id;