Skip to content

Instantly share code, notes, and snippets.

@publicarray
publicarray / Nginx.md
Last active September 29, 2020 21:12
Nginx with modules and latest OpenSSL [CentOS]

Nginx/OpenSSL on CentOS

@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 / 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

Keybase proof

I hereby claim:

  • I am publicarray on github.
  • I am publicarray (https://keybase.io/publicarray) on keybase.
  • I have a public key whose fingerprint is AC7B 7A03 D00D 8236 B8E6 F9D1 80B9 6879 01B6 587C

To claim this, I am signing this object:

@publicarray
publicarray / wine-wrapper-or-engine.md
Last active December 25, 2019 02:29
Compile a wineskin base on macOS 10.11 and newer

Option 1 - Compiling

Get the source

git clone git://source.winehq.org/git/wine.git

Or from the Github mirror

@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 / 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