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
View file.sh
#!/bin/bash
# ZFS-setup.sh 2017-01-11 19:04 http://pastebin.com/fa83QrBk
# Auto-installer for clean new system using root on zfs, and optionally on
# luks encrypted disks. It installs Ubuntu 14.04.04 or 16.04 with everything
# needed to support ZFS and potentially LUKS. Without LUKS everything lives
# in the main ${POOLNAME} pool. With LUKS then /boot lives in its own boot pool.
# Grub2 is installed to all disks, so the system can boot cleanly from *any*
# disk, even with a failed disk.
@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
View BoxstarterGeneral.ps1
# http://boxstarter.org/package/url?
Write-BoxstarterMessage "Starting script!"
Write-Host ""
Write-Host ""
Write-BoxstarterMessage "Enabling/Disabling some Windows settings"
Enable-RemoteDesktop
Disable-UAC
Write-BoxstarterMessage "Setting Power Plan to High Performance"
Try {
$HighPerf = powercfg -l | %{if($_.contains("Hoge prestaties") -Or $_.contains("High performance")) {$_.split()[3]}}
@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 ::
:::::::::::::::
You can’t perform that action at this time.