Skip to content

Instantly share code, notes, and snippets.

@ammario
ammario / goth
Created September 2, 2016 16:27
golang test coverage html
#!/bin/bash
go test -coverprofile=coverage.out
go tool cover -html=coverage.out
@abbotto
abbotto / arch-amd-catalyst
Last active March 8, 2023 10:54
Install Latest AMD Catalyst Video Drivers in Arch Linux
# INSTRUCTIONS
# ==============
# IMPORTANT NOTICE:
# “catalyst-test”, from AUR, contains the “latest” AMD/ATI testing/beta drivers, primarily for newer cards.
# Please note that Radeons HD 2 3 4 xxx ARE NOT SUPPORTED
# Reference: https://aur.archlinux.org/packages/catalyst-test/
# Reference: https://wiki.archlinux.org/index.php/AMD_Catalyst
# Reference: http://www.ramblgyrl.com/2014/11/install-catalyst-drivers-on-arch-linux/
# ==============
@1stvamp
1stvamp / mac-curl-ca-bundle.sh
Created March 22, 2012 12:50
Script to install cURL CA certificates on OS X without macports
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else
@mbijon
mbijon / xss_clean.php
Last active November 1, 2022 03:23
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources
@cdzombak
cdzombak / README.md
Created September 28, 2010 21:43
recursive ksort function for PHP