Skip to content

Instantly share code, notes, and snippets.

Avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
@trinitronx
trinitronx / LICENSE
Last active Jul 4, 2020
AX_FEATURE_FLAG M4 Macro for usage with Autoconf
View LICENSE
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@davidlu1001
davidlu1001 / Makefile_include_exclude
Last active Sep 8, 2020
Makefile for Terraform to support include/exclude
View Makefile_include_exclude
PLAN_OPTIONS ?=
APPLY_OPTIONS ?=
EXCLUDE ?=
INCLUDE ?=
define PLAN_OPTIONS_EXCLUDE
$(shell terraform show current.plan | perl -pe 's//\n/ if $$. == 1' | perl -pe 's/\x1b\[[0-9;]*[mG]//g' | perl -ne 'if ($$p) { print unless /^$$/; $$p = 0 } $$p++ if /^$$/'| awk '{print $$2}' | grep -E -v '$(1)' | sed -e 's/^/-target="/g' -e 's/$$/"/g' | awk BEGIN{RS=EOF}'{gsub(/\n/," ");print}')
endef
define PLAN_OPTIONS_INCLUDE
@tomgross
tomgross / README.md
Last active Sep 14, 2020
Homebrew Cask for installing pCloud on a Mac
View README.md

Installing pCloud with Homebrew Cask

Since this recipe was rejected because of the volatile nature of pCloud links (see homebrew-cask#57634) I try to maintain this myself because it is useful to me and might be for others.

  • Download pcloud-drive.rb.
  • Run brew cask install pcloud-drive.rb.

To uninstall run brew cask uninstall pcloud-drive.rb.

@z1nkum
z1nkum / graphite-grafana-statsd-inside-docker.md
Last active Feb 25, 2019
Run graphite-stack inside docker via docker-compose
View graphite-grafana-statsd-inside-docker.md
# getenforce
Disabled

Also we need docker, docker-compose, certbot (if you need LetEncrypt)

mkdir -p /opt/graphite/conf /opt/graphite/data /opt/graphite/storage /opt/statsd /opt/grafana/log

/etc/docker/compose/graphite/docker-compose.yml

@bossjones
bossjones / 30-init-dbus
Created Jun 30, 2017
Trying to make "cont-init.d/30-init-dbus" similar to "init_dbus.sh"
View 30-init-dbus
#!/usr/bin/execlineb -P
# NOTE: cont-init.d/30-init-dbus
# -*- mode: bash -*-
# vi: set ft=bash:
with-contenv
trap -x
{
@croxton
croxton / SSL-certs-OSX.md Generate ssl certificates with Subject Alt Names
View SSL-certs-OSX.md

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

View Flushing DNS cache macOSX Sierra.sh
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed
@droidfivex
droidfivex / install.sh
Created Dec 17, 2016
work with rootkitxperia-20140719 on Linux
View install.sh
#!/bin/bash
echo "--- Xperia rootkit 2014/07/19 ---"
echo "waiting for device..."
adb wait-for-device
for file in `ls files`
do
adb push files/$file /data/local/tmp/
@cdemers
cdemers / CoreOS_install_socat.sh
Last active Sep 14, 2017
Install the socat binary into a CoreOS installation
View CoreOS_install_socat.sh
# Insightful instructions, originally posted by Xynova (https://github.com/xynova)
# Make socat directories
mkdir -p /opt/bin/socat.d/bin /opt/bin/socat.d/lib
# Create socat wrapper
cat << EOF > /opt/bin/socat
#! /bin/bash
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin
LD_LIBRARY_PATH=/opt/bin/socat.d/lib:$LD_LIBRARY_PATH exec /opt/bin/socat.d/bin/socat "\$@"
View cidr2regex.py
#!/usr/bin/python
''' Not my script, found on the Internet, and rediscovered on my hard drive
'''
import sys
def cidr_to_regex(cidr):
ip, prefix = cidr.split('/')
base = 0
for val in map(int, ip.split('.')):
You can’t perform that action at this time.