Skip to content

Instantly share code, notes, and snippets.

Fossil Fossil01

  • The Internet
Block or report user

Report or block Fossil01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Fossil01
Fossil01 / nzedb_
Created Apr 14, 2017 — forked from ThePeePs/nzedb_
Munin Plugin for nZEDb (WIP)
View nzedb_
#!/usr/bin/perl
=encoding utf8
=head1 NAME
nzedb_ - Munin plugin to display misc nzedb stats.
=head1 CONFIGURATION
@Fossil01
Fossil01 / backup_db_incremental.php
Created Sep 12, 2016 — forked from zetas/backup_db_incremental.php
Incremental DB Backup Scripts
View backup_db_incremental.php
<?php
/**
* Incremental DB Backup Script.
*
* Requires: innobackupex percona script.
*
* Meant to run via cron, every 8 hours. It assumes during the fourth
* invocation a day has gone by.
*
* @author Kingcat <kingcat@nzb.cat>
View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
@Fossil01
Fossil01 / Win10Hardening.ps1
Created May 30, 2016
Windows 10 Hardening
View Win10Hardening.ps1
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.4, 2016-01-16
##########
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
@Fossil01
Fossil01 / SSHrsync.sh
Last active May 18, 2016 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)
View SSHrsync.sh
rsync -aHXx --numeric-ids --delete --info=progress2 -e "ssh -T -c aes128-gcm@openssh.com -o Compression=no -x" /localpath user@dest:/path
@Fossil01
Fossil01 / ovhraid.md
Last active May 18, 2016
Create RAID array on OVH Server
View ovhraid.md

Creating a RAID array on OVH Servers with Hardware RAID (MegaRAID)

Type this into your terminal:

MegaCli -CfgLDAdd -R1[252:2,252:3] -a0

Where R1 means RAID-1. So R0 means RAID-0 etc.

252:2 and 252:3 are the disk numbers as they appear in MegaCLI. 2,3 were my two SATA disks. The SSD's were already configured as RAID-1 when installing the OS. Not sure what 252 means.

View de-bloat_toolbars_by_GUID.bat
:: Batch file to uninstall a specific list of toolbars, BHO, Trojans by GUID
:: Called by Tron in Stage 2: De-bloat
:: Initial list by reddit.com/user/Chimaera12, modifications for use in Tron by reddit.com/user/vocatus
@echo off
:::::::::::::::
:: GUID LIST ::
:::::::::::::::
@Fossil01
Fossil01 / de-bloat_by_GUID.bat
Created Apr 6, 2016
Remove bloatware by GUID
View de-bloat_by_GUID.bat
:: Batch file to uninstall a specific list of programs by GUID
:: Called by Tron in Stage 2: De-bloat
:: Initial list by reddit.com/user/tuxedo_jack, modifications for use in Tron by reddit.com/user/vocatus and many, many, many others
:: Add any GUID uninstall commands to this list to target them for removal
@echo off
:::::::::::::::
:: GUID LIST ::
:::::::::::::::
@Fossil01
Fossil01 / gist:b3ae40dfcb4405601489
Created Feb 9, 2016
Edgerouter / VyOS / Vyatta iPXE DHCP Options
View gist:b3ae40dfcb4405601489
set service dhcp-server global-parameters "if exists user-class and option user-class = &quot;iPXE&quot; {"
set service dhcp-server global-parameters "filename &quot;http://172.29.0.27/ipxe/boot.php&quot;;"
set service dhcp-server global-parameters " } else { "
set service dhcp-server global-parameters "filename &quot;undionly.kpxe&quot;;"
set service dhcp-server global-parameters "}"
set service dhcp-server global-paramters "next-server 172.29.0.27;"
@Fossil01
Fossil01 / pushover.go
Created Jan 7, 2016
Pushover Notifications
View pushover.go
package main
import (
"flag"
// "fmt"
"github.com/thorduri/pushover"
"log"
)
func main() {
You can’t perform that action at this time.