Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
##
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
# /etc/nginx/sites-available and /etc/nginx/sites-enabled
# For easy access to this script, copy it into the directory:

VMware VMX Notes, Performance Tweaks, Interactivity Improvements

experimented on VMware Workstation 15.5.2 build-15785246, other verisons may not work, no guaranteed.


global config for all VMs

C:\ProgramData\VMware\VMware Workstation\config.ini

@chlete
chlete / gist:d5092a56703b282f50f4
Created February 19, 2016 08:56
CVE-2015-7547 vulnerable linked binaries check
#!/bin/bash
###
### glibc vulnerability binary scanner vuln (CVE-2015-7547)
### Output: List local affected bianries
### Conditions:
### 1.- GLIBC (affected versions glibc >= 2.9 && < 2.23)
### 2.- getaddrinfo() call
###
###
@lonnen
lonnen / gist:3101795
Created July 12, 2012 23:24
git grep and git blame. two great tastes that taste great together
# from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/
# runs git grep on a pattern, and then uses git blame to who did it
ggb() {
git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done
}
# small modification for git egrep bash
geb() {
git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done
}