Skip to content

Instantly share code, notes, and snippets.

View riipandi's full-sized avatar
:octocat:

Aris Ripandi riipandi

:octocat:
View GitHub Profile
#!/usr/bin/env bash
#
# Dropbox Uploader
#
# Copyright (C) 2010-2014 Andrea Fabrizi <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@riipandi
riipandi / goofonts.sh
Last active March 5, 2017 17:57
Ubuntu Extra Apps
#!/bin/bash
echo -e "\nInstalling Google Fonts..\n"
wget -O- https://github.com/google/fonts/tarball/master | tar xvz -C /usr/src
mv /usr/src/{google-fonts*,gfonts}
cd /usr/src/gfonts
find . -mindepth 2 -type f -print -exec mv {} . \;
rm -fR -- */
rm -fR {AUTHORS,CONTRIBUTORS}
rm -fR *.{txt,json,csv,md,html,py,png,jpg,enc,nam}
Verifying that "riespandi.id" is my Blockstack ID. https://onename.com/riespandi
#!/bin/bash
echo -e '\nInstalling dependencies...' && dnf install -y nano axel crudini
echo -e '\nConfiguring DNF fastest mirror...'
crudini --set /etc/dnf/dnf.conf 'main' 'installonly_limit' '1'
crudini --set /etc/dnf/dnf.conf 'main' 'fastestmirror' 'False'
echo -e 'Creating repos...' && rm -f /etc/yum.repos.d/*repo*
cat > /etc/yum.repos.d/fedora.repo <<EOF
#!/bin/sh
#
# https://www.hiroom2.com/2017/06/20/debian-9-install-zabbix/
#
set -e
MYSQL_VERSION=5.5
[ -z "${MYSQL_PASSWD}" ] && MYSQL_PASSWD=PASSWD_MYSQL
[ -z "${ZABBIX_PASSWD}" ] && ZABBIX_PASSWD=zabbix
#!/bin/bash
#===============================================================================================
# System Required: Debian or Ubuntu (32bit/64bit)
# Description: Install PPTP VPN for Debian or Ubuntu
# Author: mikangchan <[email protected]>
# More Info: http://ovo.so
#===============================================================================================
clear
echo "#############################################################"
echo "# Install pptp vpn for Debian or Ubuntu (32bit/64bit)"
#!/bin/bash
# SSH Daemon
sed -i "s|\("^ClientAliveInterval" * *\).*|\1600|" /etc/ssh/sshd_config
sed -i "s|\("^#ListenAddress" * *\).*|\10.0.0.0|" /etc/ssh/sshd_config
sed -i "s|\("^AllowTcpForwarding" * *\).*|\1yes|" /etc/ssh/sshd_config
sed -i "s|\("^ClientAliveCountMax" * *\).*|\13|" /etc/ssh/sshd_config
sed -i "s|\("^PermitTunnel" * *\).*|\1yes|" /etc/ssh/sshd_config
sed -i "s/#ListenAddress/ListenAddress/" /etc/ssh/sshd_config
@riipandi
riipandi / service_control.bat
Created January 27, 2018 12:59
Windows Web Server Controller
@echo off
:: core\dbpgsql\bin\initdb -U postgres -A password --pwfile="D:\Sopwer\svrstack\core\dbpgsql\pgpass.txt" -D "D:\Sopwer\svrstack\core\dbpgsql\data" -E utf8 --no-locale
:: core\dbpgsql\bin\pg_ctl.exe register -N PgSQL -D "D:\Sopwer\svrstack\core\dbpgsql\data"
:: core\dbmysql\bin\mysqld.exe --log_syslog=0 --console --standalone --initialize-insecure --init-file="D:\Sopwer\svrstack\core\dbmysql\init.txt"
:: core\dbmysql\bin\mysqld.exe --install-manual MySQL --defaults-file="D:\Sopwer\svrstack\core\dbmysql\my.ini"
:: core\miscapp\redis-server.exe --service-install D:\Sopwer\svrstack\core\miscapp\redis.conf --loglevel verbose
:: core\apache\bin\httpd.exe -k install -n "Apache2"
@riipandi
riipandi / gitea.service
Last active February 12, 2018 05:25
Build Your Private Git Server
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service postgresql.service memcached.service redis.service
[Service]
Type=simple
User=git
Group=www-data
@riipandi
riipandi / firefox.js
Last active February 16, 2018 09:18
My Linux Desktop Customization
/********************************
* github.com/pyllyukko/user.js *
********************************/
lockPref("general.warnOnAboutConfig", false);
lockPref("app.update.enabled", false);
lockPref("app.update.autoInstallEnabled", false);
lockPref("app.update.service.enabled", false);
lockPref("general.autoScroll", false);
lockPref("general.smoothScroll", true);
lockPref("intl.locale.matchOS", true);