Skip to content

Instantly share code, notes, and snippets.

View anwareset's full-sized avatar
🍃
berburu dan meramu

Trianwar anwareset

🍃
berburu dan meramu
View GitHub Profile
[Unit]
Description=Teleport Agent
[Service]
User=root
WorkingDirectory=/usr/local/bin/
ExecStart=teleport start --config=/etc/teleport.yaml
Restart=always
[Install]
@anwareset
anwareset / 83-hybrid-wireless-mouse-rexus-rx107.rules
Created January 14, 2022 09:08
Automatically adjust USB Dual Mode Mouse Rexus Arka RX107 acceleration with Udev
# /etc/udev/rules.d/83-hybrid-wireless-mouse-rexus-rx107.rules
# Wired
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d57", ATTRS{idProduct}=="fa61", SYMLINK+="usb_mouse_rexus_wired"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1d57", ATTRS{idProduct}=="fa61", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/pwn3r/.Xauthority", RUN+="/usr/local/bin/set-prop-rexus-mouse"
# Wireless
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d57", ATTRS{idProduct}=="fa60", SYMLINK+="usb_mouse_rexus_wireless"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1d57", ATTRS{idProduct}=="fa60", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/pwn3r/.Xauthority", RUN+="/usr/local/bin/set-prop-rexus-mouse"
@anwareset
anwareset / influxdbv.yaml
Last active June 11, 2021 14:31
Deploy InfluxDB OSS 2.0 DaemonSet
---
apiVersion: v1
kind: Secret
metadata:
labels:
app: influxdb
name: influxdb-auth
namespace: monitoring
type: Opaque
data:
@anwareset
anwareset / aria2cd.service
Created September 15, 2020 16:55
/home/user/.config/systemd/user/aria2cd.service
[Unit]
Description=Aria2 Daemon
[Service]
Type=forking
ExecStart=/usr/bin/aria2c --conf-path=/home/user/.config/aria2/aria2.conf
[Install]
WantedBy=default.target
@anwareset
anwareset / aria2.conf
Created September 15, 2020 16:49
/home/user/.config/aria2/aria2.conf
enable-rpc=true
rpc-listen-port=6800
daemon=true
rpc-listen-all=true
rpc-allow-origin-all
dir=${HOME}/Downloads/aria2
check-integrity=true
check-certificate=false
file-allocation=none
log-level=warn
@anwareset
anwareset / phpmvc
Created September 5, 2020 09:13
/etc/nginx/sites-available/phpmvc
# /etc/nginx/sites-available/phpmvc
# Seperti Laravel
server {
listen 80;
listen [::]:80;
server_name phpmvc.test;
root /usr/share/nginx/html/phpmvc/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
fastcgi_read_timeout 1d;
sendfile on;
@anwareset
anwareset / rc.local
Created October 11, 2019 08:58
/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@anwareset
anwareset / aria2.conf
Created October 11, 2019 08:43
/etc/aria2/aria2.conf
dir=/var/www/html/webui-aria2/file
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
check-integrity=false
file-allocation=none
log=/etc/aria2/log/aria2.log
console-log-level=warn
rpc-save-upload-metadata=true
continue=true
@anwareset
anwareset / default
Created October 10, 2019 09:11
# /etc/nginx/sites-available/default
# /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
charset utf-8;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;