Skip to content

Instantly share code, notes, and snippets.

View dhersan's full-sized avatar

Daniel Hernández dhersan

View GitHub Profile
@opus-x
opus-x / Spotify_Eliminate_Advertisements
Last active June 9, 2024 05:27
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - ABANDONED FOR NOW #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@astrikos
astrikos / stale_security_groups.py
Created November 9, 2017 15:52
Script to detect stale AWS security groups
#!/usr/bin/env python
import boto3
import argparse
class StaleSGDetector(object):
"""
Class to hold the logic for detecting AWS security groups that are stale.
"""
def __init__(self, **kwargs):
@gnanet
gnanet / xenserver71_create_jessie_template_64bit_pv.sh
Created April 25, 2017 23:11
Script to install a Debian Jessie 64bit PV template on Xenserver 7.1
#!/bin/bash
## Script to install a Debian Jessie 64bit PV template on Xenserver 7.1
## Initially based on https://gist.github.com/jniltinho/0455fb5f01cfd8bbdbff
##
# Check if we are running on XenServer 7.1
CHECK71=`cat /etc/redhat-release | grep "XenServer release 7.1"`
if [ "x${CHECK71}" == "x" ]; then echo "This script is intended to be run on XenServer 7.1"; exit 1; fi
# The redirector aims to solve the problem of choosing a Debian mirror.
@maxvt
maxvt / infra-secret-management-overview.md
Last active February 28, 2024 20:53
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@samurailink3
samurailink3 / unlock-ps.bat
Last active April 11, 2020 11:37
Command line batch files for unlocking user accounts. For the No-PowerShell version you will need the user's Distinguished Name and an admin account that can unlock accounts. For the PowerShell version, you will need the user's sAMAccountName and an admin account that can unlock accounts.The `unlock-ps.bat` file is easier to work with, but I inc…
@echo off
REM ABOUT: This file will unlock a user account that you specify on the command line.
REM REQUIREMENTS: Powershell with ActiveDirectory Module; Active Directory Account with Unlock permissions.
echo "This file will unlock a user who's username (sAMAccountName) you specify."
SET /P ADDomain=Your domain name:
SET /P AdminUser=Your admin username:
SET /P UserToUnlock=Username you would like unlocked:
@webcoyote
webcoyote / configure-firewall-example.bat
Created December 11, 2012 18:45
Windows Firewall configuration script
@echo off
::configure-firewall-example.bat
::by Patrick Wyatt 12/22/2011
::MIT License - do with as you will; no warranty
SETLOCAL EnableExtensions
if "%1" == "" (
echo Usage:
echo %0 display
echo %0 install
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 9, 2024 10:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@schaary
schaary / ssh_agent_start.fish
Created May 11, 2012 07:33
Auto-launching ssh-agent in fish shell
setenv SSH_ENV $HOME/.ssh/environment
if [ -n "$SSH_AGENT_PID" ]
ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null
if [ $status -eq 0 ]
test_identities
end
else
if [ -f $SSH_ENV ]
. $SSH_ENV > /dev/null