Skip to content

Instantly share code, notes, and snippets.

@misuchiru03
misuchiru03 / vmware-void-fix
Last active July 13, 2023 08:17
Fix for vmware installs on voidlinux runit and vmmon module
#!/bin/bash
# must run as root
if [ $UID != 0 ]; then
echo "You must be root."
exit 0
fi
# soft link vmware's init.d scripts to void's runit directory
ln -s /etc/init.d/vmware* /etc/runit/
@misuchiru03
misuchiru03 / msfvupdate
Last active February 1, 2021 06:09 — forked from abenson/msfvupdate
Short script to install/update Metasploit on Void Linux
#!/bin/sh
# root check
if [ `id -u` != "0" ]; then
echo "This should be run as root."
exit
fi
# Dependency check for curl and rsync
missing=0
--- x86_64-dotconfig-sorted 2018-05-19 18:10:51.004855152 +0000
+++ config-4.15.0-20-generic-sorted 2018-05-19 18:10:40.030286041 +0000
@@ -316,6 +316,69 @@
+
+
+
+
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.15.0-20-generic Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@misuchiru03
misuchiru03 / plex-install.sh
Last active May 1, 2020 17:04
Plex Media Server installer for Void Linux
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
echo "You must be root to run this."
exit 0
fi
missing=0
for pkg in wget curl rsync ar; do
echo -n "Checking for $pkg..."
@misuchiru03
misuchiru03 / reverse-proxy
Last active April 29, 2019 03:54
Nginx Reverse Proxy with Plex and Deluge subdomains
# Plex Server
upstream plex.domain.org {
server 127.0.0.1:32400;
keepalive 32;
}
server {
listen 443;
[ 0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has va
lid Length but zero Address: 0x0000000000000000/0x1 (20180105/tbfadt-658)
[ 0.000000] ACPI: DSDT 0x00000000CCF331E0 014F1F (v02 HPQOEM 83C6 01072009
ACPI 20120913)
[ 0.000000] ACPI: FACS 0x00000000CD3E3F80 000040
[ 0.000000] ACPI: APIC 0x00000000CCF48218 0000DE (v03 HPQOEM 83C6 01072009
HP 00010013)
[ 0.000000] ACPI: FPDT 0x00000000CCF482F8 000044 (v01 HPQOEM 83C6 01072009
HP 00010013)
[ 0.000000] ACPI: FIDT 0x00000000CCF48340 00009C (v01 HPQOEM 83C6 01072009
@misuchiru03
misuchiru03 / etc.sv.adblock.run
Last active June 22, 2018 02:31 — forked from abenson/etc.dnsmasq.conf
adblock setup
#!/bin/sh
exec snooze -d 2/5 /usr/local/bin/update-adblock
@misuchiru03
misuchiru03 / youtube.adblock.hosts
Last active June 22, 2018 02:30
Youtube Adblock Hosts
0.0.0.0 www3.l.google.com
0.0.0.0 ads.doubleclick.net
0.0.0.0 s.ytimg.com
0.0.0.0 ad.youtube.com
0.0.0.0 ads.youtube.com
0.0.0.0 www.gstatic.com
0.0.0.0 gstatic.com
0.0.0.0 clients1.google.com
0.0.0.0 dts.innovid.com
0.0.0.0 googleads.g.doubleclick.net
@misuchiru03
misuchiru03 / Yara-Check
Created November 26, 2018 02:00
moloch check yara
# Check whether --with-yara was given.
if test "${with_yara+set}" = set; then :
withval=$with_yara; case "$withval" in
yes|no)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
$as_echo "$withval" >&6; }