Skip to content

Instantly share code, notes, and snippets.

View ChrisOrlando's full-sized avatar
😎
trying my best

Chris Orlando ChrisOrlando

😎
trying my best
  • Liquid Web Inc.
  • USA
View GitHub Profile
@joepie91
joepie91 / no-your-cryptocurrency-cannot-work.md
Last active May 20, 2024 10:24
No, your cryptocurrency cannot work

No, your cryptocurrency cannot work

Whenever the topic of Bitcoin's energy usage comes up, there's always a flood of hastily-constructed comments by people claiming that their favourite cryptocurrency isn't like Bitcoin, that their favourite cryptocurrency is energy-efficient and scalable and whatnot.

They're wrong, and are quite possibly trying to scam you. Let's look at why.

What is a cryptocurrency anyway?

There are plenty of intricate and complex articles trying to convince you that cryptocurrencies are the future. They usually heavily use jargon and vague terms, make vague promises, and generally give you a sense that there must be something there, but you always come away from them more confused than you were before.

@atsuya
atsuya / kitty.conf
Created December 30, 2017 02:04
Kitty - Solarized Dark
# vim:fileencoding=utf-8:ft=conf
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Medium
# italic_font Operator Mono Book Italic
# bold_italic_font Operator Mono Medium Italic
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
<?php
class _╯°□°╯︵┻━┻ extends \Exception {}
function _╯°□°╯︵┻━┻($message) {
throw new _╯°□°╯︵┻━┻($message);
}
_╯°□°╯︵┻━┻("Flip Table");
@aheadley
aheadley / duplicate-header-nocheck.patch
Created December 6, 2016 20:51
Patch for mod_fastcgi 2.4.6 to not barf on duplicate response headers.
--- mod_fastcgi.c.orig 2012-05-18 17:37:08.831652311 -0400
+++ mod_fastcgi.c 2012-05-18 17:42:49.333693792 -0400
@@ -718,9 +718,6 @@
if (strcasecmp(name, "Status") == 0) {
int statusValue = strtol(value, NULL, 10);
- if (hasStatus) {
- goto DuplicateNotAllowed;
- }
if (statusValue < 0) {
@whyrusleeping
whyrusleeping / archsetup.md
Last active May 11, 2019 17:15
arch linux setup guide for samsung chromebook 2

Arch Linux Chromebook 2 Setup

First, follow the instructions on this page up until it tells you to unmount root: http://archlinuxarm.org/platforms/armv7/samsung/samsung-chromebook-2

Dont unmount root yet. you need to run cp /lib/firmware/mrvl/* root/lib/firmware/mrvl

This copies the proper wireless drivers to your new installation (otherwise wireless will NOT work)

Now you can umount root and sync and reboot.

After rebooting, press Ctrl + u at the boot screen to boot to your SD card.

#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@pheuter
pheuter / sc-dl.js
Created March 5, 2012 20:44
Bookmarklet that generates download link for a Soundcloud upload
(function(d) {
var dl = d.createElement('a');
dl.innerText = 'Download MP3';
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1];
dl.download = d.querySelector('em').innerText+".mp3";
d.querySelector('.primary').appendChild(dl);
dl.style.marginLeft = '10px';
dl.style.color = 'red';
dl.style.fontWeight = 700;
})(document);