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 / 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"
#!/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
#!/bin/bash
#===============================================================================================
# System Required: Debian or Ubuntu (32bit/64bit)
# Description: Install PPTP VPN for Debian or Ubuntu
# Author: mikangchan <i@ovo.so>
# More Info: http://ovo.so
#===============================================================================================
clear
echo "#############################################################"
echo "# Install pptp vpn for Debian or Ubuntu (32bit/64bit)"
#!/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
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
Verifying that "riespandi.id" is my Blockstack ID. https://onename.com/riespandi
@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}
#!/usr/bin/env bash
#
# Dropbox Uploader
#
# Copyright (C) 2010-2014 Andrea Fabrizi <andrea.fabrizi@gmail.com>
#
# 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.
#!/bin/sh
#chkconfig: 345 99 10
#description: Seafile auto start-stop script.
# source function library
. /etc/rc.d/init.d/functions
start() {
echo "Starting Seafile server..."
su - seafile -c "seafile-server-latest/seafile.sh start"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCT9s+L2WYu/M1m5UdvwOm8odqjnSVjW7ErHs2+/psSpO/oUK2A09rVMLDzN0mDcRH2pvCzWXxTfdTSKsV50V8nnh2uJfhjGgL9rxWNOCCpguCzRbt/Lav5NSzoPFeFPJ7e1+p0XfQWZYjhEpPSqT69xPRU/02gaOgkdAn9UufrYa071pJClVGK9zJZ7ZrXXSJJ3wFEojBHDJyllf2aYrzZoRbH0DcWcDFe14wBBGQT+SWWOPysOIiA5tyTHIuGrbiTP2a7ZDymjoQoPzvp6LBySuhr68j3J1frReH59y4H6zgC2YXEMd/gTWFzKGsBK3JDQStV6CbpF5xd69bc0sDp riespandi@live.com