Skip to content

Instantly share code, notes, and snippets.

View onion2k's full-sized avatar
💭
In your browser, making it do stuff.

Chris Neale onion2k

💭
In your browser, making it do stuff.
View GitHub Profile
@onion2k
onion2k / wordpress-auth-check.php
Created January 29, 2015 10:16
Wordpress Auth Key+Salt Check
add_action('admin_notices', 'admin_notice_check_authentication_keys_and_salts');
function admin_notice_check_authentication_keys_and_salts() {
if (AUTH_KEY == 'put your unique phrase here') {
echo ' <div class= "error" ><p>Your Authentication Unique keys and salts are still set to their default values in wp-config.php.</p></div>';
}
}
@onion2k
onion2k / keybase.md
Created June 3, 2015 08:57
keybase.md

Keybase proof

I hereby claim:

  • I am onion2k on github.
  • I am onion2k (https://keybase.io/onion2k) on keybase.
  • I have a public key whose fingerprint is E0CF D8ED CC3B 4A83 1187 9163 BCC8 075D 503E CA6B

To claim this, I am signing this object:

<html>
<body>
<script>
var mql500 = window.matchMedia("(min-width: 500px)");
var mql800 = window.matchMedia("(min-width: 800px)");
var mql1000 = window.matchMedia("(min-width: 1000px)");
mql500.addListener(function(){
document.querySelector('body').style.backgroundColor = 'red';
#!/usr/local/bin/node
var request = require('/usr/local/lib/node_modules/request');
var user = "HNUSERNAME";
request('https://hacker-news.firebaseio.com/v0/user/'+user+'.json', function (error, response, body) {
if (!error && response.statusCode == 200) {
var o = JSON.parse(body);
console.log("HN:"+o.karma) // Show the HTML for the Google homepage.
} else {
@onion2k
onion2k / vagrant.90s.sh
Created February 9, 2016 12:55
Bitbar Vagrant Plugin
#!/bin/bash
echo "💻 Vagrant"
echo "---"
echo "Running..."
OLDIFS="$IFS"
IFS=$'\n'
count=`/usr/local/bin/vagrant global-status | tail -n+3 | wc -l`
Verifying that +onion2k is my blockchain ID. https://onename.com/onion2k
@onion2k
onion2k / dabblet.css
Created March 23, 2018 06:58
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@onion2k
onion2k / dabblet.css
Last active March 27, 2018 20:47
Different ways of spanning grid columns
/**
* Different ways of spanning grid columns
*/
article {
display: grid;
grid-template-rows: 20px repeat(6, 30px);
grid-template-columns: repeat(5, 30px);
grid-gap: 1px;
grid-auto-flow: column;
@onion2k
onion2k / dabblet.css
Last active April 17, 2018 19:25
Scrollable tiles
/**
* Scrollable tiles
*/
main {
margin: -25vw -10vw 0 -10vw;
display: grid;
grid-auto-rows: 30vw;
grid-template-columns: 15vw repeat(3, 30vw) 15vw;
grid-gap: 2px;
@onion2k
onion2k / dabblet.css
Created April 17, 2018 19:54
Scrollable tiles
/**
* Scrollable tiles
*/
body {
transform: rotate(-2deg);
}
main {
margin: -25vw -10vw 0 -10vw;