Skip to content

Instantly share code, notes, and snippets.

@publicarray
publicarray / duckduckgo.xml
Last active January 30, 2016 13:06 — forked from lamberta/duckduckgo.xml
DuckDuckGo search plugin for Firefox
<!-- DuckDuckGo HTTPS search using Startpage suggestions.
- Url params: https://duckduckgo.com/params
- OSX location: Firefox.app/Contents/MacOS/browser/searchplugins
- In about:config, browser.search.defaultenginename = DuckDuckGo-Dark -->
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>DuckDuckGo-Dark</ShortName>
<Description>DuckDuckGo-DarkTheme</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%03%00%00%00%28-%0FS%00%00%00%04gAMA%00%00%B1%8F%0B%FCa%05%00%00%00%20cHRM%00%00z%26%00%00%80%84%00%00%FA%00%00%00%80%E8%00%00u0%00%00%EA%60%00%00%3A%98%00%00%17p%9C%BAQ%3C%00%00%01%F2PLTE%00%00%00%E4E%0C%E3%3F%03%E3A%05%E4E%0D%E2%3F%04%E2A%05%E0%3D%03%DEB%0A%DC%3B%03%D56%00%D55%00%D6%3A%06%D33%00%D12%00%D03%00%D23%00%D17%04%D0.%00%D1%26%00%D2%27%00%D2.%00%D27%04%E3%3A%00%E28%00%E39%00%E4%3C%00%E1%40%05%F3%B3%9B%FE%FD%FB%FF%FF%FF%F4%BC%A6%E2E%0
@publicarray
publicarray / backgroundchanger.js
Last active February 7, 2016 00:49
Background Changer
function BackgroundChanger (settings) {
// Author: Sebastian Schmidt
var settings = settings || {};
// Set sane default options
this.nextImage = settings.firstImage || 1; // image to change to next
this.interval = settings.interval || 5000; // time until next image is shown (ms)
this.backgroundElement = settings.backgroundElement || document.getElementById('background-sideshow'); // element to change the background image on
this.backgroundImages = settings.backgroundImages || [ // a list of image url's
'http://lorempixel.com/1280/720/abstract/',
@publicarray
publicarray / dnsdist.md
Last active August 5, 2017 08:34
Compile dnsdist on FreeBSD
pkg install git ragel libsodium re2 py27-virtualenv
git clone https://github.com/PowerDNS/pdns.git
cd pdns/pdns/dnsdistdist
virtualenv build
autoreconf -i
./configure --bindir=/usr/local/sbin --enable-dnscrypt --enable-libsodium --enable-re2
gmake
@publicarray
publicarray / spotlight.md
Last active August 5, 2017 08:36
Fix Spotlight

restart the indexing service

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

status

@publicarray
publicarray / sysctl.conf
Created August 8, 2017 09:58 — forked from kgriffs/sysctl.conf
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
# Protection from SYN flood attack.
net.ipv4.tcp_syncookies = 1
@publicarray
publicarray / getfish.sh
Last active January 2, 2018 23:44
Install fishshell on OpenBSD
#!/bin/sh
pkg_add curl gcc g++ gmake
curl -Lo /tmp/fish.tar.gz https://github.com/fish-shell/fish-shell/releases/download/2.7.1/fish-2.7.1.tar.gz
tar -xzvf /tmp/fish.tar.gz -C /tmp/
cd /tmp/fish-*
CC=egcc CXX=eg++ ./configure
gmake install
echo '/usr/local/bin/fish' | sudo tee -a /etc/shells > /dev/null
@publicarray
publicarray / install.sh
Last active January 3, 2018 22:47
Install my development environment on a fresh mac
#!/usr/bin/env bash
#
# Execute the file:
# bash <(curl -fsSL https://seby.io/myfish)
#
set -e
set -v
echo "If you don't know what this script does, hit CTRL-C NOW!"
read -p "Do you want to continue? [Y/y] " -n 1 -r
@publicarray
publicarray / minecraft.md
Last active January 5, 2018 05:49
Minecraft with SocketBuffer - on Vultr (CentOS 6.9)
wget https://ci.destroystokyo.com/job/PaperSpigot/lastSuccessfulBuild/artifact/paperclip-1294.jar
ln -sf paperclip-1294.jar minecraft_server.jar
service minecraft restart

service iptables stop
chkconfig iptables off
# systemctl disable iptables

yum install tuned tuned-utils
@publicarray
publicarray / opennic.config
Last active January 15, 2018 01:28
OpenNIC Tier 2 nsd config (Slave Zone Method)
#
# nsd: https://www.nlnetlabs.nl/projects/nsd/
# OpenNic: https://www.opennic.org/
#
# this file can be placed inside the "/etc/nsd/conf.d folder"
# e.g. "/etc/nsd/conf.d/opennic.conf" for debian and redhat systems
# also make sure the "nsd.config" has the following line present:
# include: "/etc/nsd/conf.d/*.conf"
#
# you can use the "nsd-checkconf /etc/nsd/nsd.conf" to check for syntax errors
@publicarray
publicarray / AU-banking&CDNs.md
Last active July 8, 2018 22:00
Australian Internet banking and CDNs

Australian Internet banking and CDNs

Note: I do not care if their home page is on a CDN what matters is that the banking credentials and financial information is end to end encrypted from the financial institution and to your browser. There are no grantees that this is the case even with TLS. TLS might be terminated earlier e.g by a load-balancer or a CDN. I only checked the login pages since I don't have an account in all of the banks, that would be crazy. I tried to use Whois data and HTML headers to determine CDNs. This method is not foolproof so please take it with a grain of salt

Hostname CDN / Cloud Firewall Uses 3rd party assets without Subresource Integrity SSL Labs score comments
internetbanking.suncorpbank.com.au Incapsula Yes A IP is owned by Incapsula
banking3.anz.com B IP address owned by ANZ but has relation to "SingTel Optus Pty Ltd". Uses lots of type="hidden" fields on login form,
banking.wes