Skip to content

Instantly share code, notes, and snippets.

@alirobe
alirobe / reclaimWindows10.ps1
Last active May 15, 2024 14:23
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@PSJoshi
PSJoshi / fprobe-nfsen-install.txt
Last active June 29, 2022 05:54
nfsen-with-plugins installation
Installing fprobe/nfdump/nfsen with plugins like PortTracker:
-------------------------------------------------------------
1) Make sure that SELinux is disabled.
vi /etc/selinux/config
set SELINUX=disabled
2) Start and enable httpd at boot
# service httpd start
@onesail
onesail / load-xml-src.js
Created June 3, 2016 23:01
add support for src attribute in strapdown.js
<!-- usage -->
<!-- <xmp src="homepage.md" theme="cerulean" style="display:none;"></xmp> -->
<!-- <script src="load-xmp-src.js"></script> -->
var elements = document.body.getElementsByTagName("*");
for(var i=0; i<elements.length; i++) {
var element = elements[i];
if(element.nodeName == "XMP") {
var xhr = new XMLHttpRequest();
xhr.open('GET', element.getAttribute("src"), false);
@vScripter
vScripter / Start-PowerCLI.ps1
Last active March 22, 2017 15:09
PowerCLI 'loader' function
function Start-PowerCLI {
<#
.NOTES
Loads PowerCLI, depending on what version you have installed. Set the default -Version parameter, depending in your environment.
#>
[cmdletbinding()]
param (
[parameter(Mandatory = $false, Position = 0)]
@mrmx
mrmx / wallet-balance.sh
Created September 11, 2016 11:25
Get balance of rusty bitcoin wallet.dat for all addrs in bash
#!/bin/bash
#
# Depends on:
# pywallet.py from https://github.com/pagobit/pywallet
# jq from https://stedolan.github.io/jq
for addr in $(./pywallet.py --dumpwallet | jq --raw-output ".keys[].addr"); do
echo "$addr balance:";
curl https://insight.bitpay.com/api/addr/$addr/balance;
echo "";
@clux
clux / prompt.sh
Last active February 2, 2022 21:20
git-prompt-powerline-style
#!/bin/bash
export TERM=xterm-256color
show_cwd() {
local dir_limit="3"
local truncation=""
local first_char
local part_count=0
local formatted_cwd=""
local dir_sep=""
#! /bin/sh
case "$1" in
start)
if ( pidof zerotier-one )
then echo "ZeroTier-One is already running."
else
echo "Starting ZeroTier-One" ;
/opt/bin/zerotier-one -d ;
echo "$(date) Started ZeroTier-One" >> /opt/var/log/zerotier-one.log ;
@D4rKP01s0n
D4rKP01s0n / wifiscanner.py
Created November 11, 2016 23:06
A simple python script which records and logs wifi probe requests.
#########################################################################
# Wifiscanner.py - A simple python script which records and logs wifi probe requests.
# Author - D4rKP01s0n
# Requirements - Scapy and Datetime
# Inspiration - Tim Tomes (LaNMaSteR53)'s WUDS https://bitbucket.org/LaNMaSteR53/wuds/
# Reminder - Change mon0 (around line 65) to your monitor-mode enabled wifi interface
#########################################################################
from datetime import datetime
@Jiab77
Jiab77 / ffmpeg.md
Last active August 9, 2022 21:40
Compilation FFMpeg / NVENC + QSV + VAAPI + VDPAU + OpenCL

Compilation FFMpeg / NVENC + NVRESIZE + QSV + VAAPI + VDPAU + OpenCL

nVidia nvresize patch is outdated and not more compatible to the latest version of FFmpeg, so it's not included in this documentation.

(even if I've passed a lot of time at trying to make it compile... without any success)

Please don't rely on this page: https://developer.nvidia.com/ffmpeg, the implementation is a hack and was never been added to the main FFmpeg tree.

See:

@DraTeots
DraTeots / synology_zerotier.md
Last active March 8, 2023 20:20
Sinology DS211j ZeroTier configuration