Skip to content

Instantly share code, notes, and snippets.

View aitorjs's full-sized avatar
💪
Looking for a good remote job!

aitor aitorjs

💪
Looking for a good remote job!
View GitHub Profile
@achow101
achow101 / bitcoin-core-hww.md
Last active November 16, 2021 15:08
How to Use Bitcoin Core with Hardware Wallets

Using Bitcoin Core with Hardware Wallets

This approach is fairly manual, requires the command line, and requires a patched version of Bitcoin Core.

Note: For this guide, code lines prefixed with $ means that the command is typed in the terminal. Lines without $ are output of the commands.

Disclaimer

I am not liable for any coins that may be lost through this method. The software mentioned may have bugs. Use at your own risk.

@bretton
bretton / testnet-stores.md
Last active April 14, 2023 22:56
List of Testnet Stores for Lightning

A list of testnet stores for Lightning

(Incorporating sites listed by @moli at https://paste.ee/p/xC8TD#t2QCW5tWS6rcDVuMul5ohAwR04zwgkBs with additions)

  • Updated 2018-08-22 to remove dead pages, add updated links.
  • Updated 2018-09-14 to remove dead pages.
  • Updated 2023-04-15 to remove dead links.

Stores

@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 9, 2024 07:54
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@btroncone
btroncone / ngrxintro.md
Last active June 26, 2024 08:27
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@sasxa
sasxa / emitter.service.ts
Created January 2, 2016 05:27
Angular2 Communicating between sibling components
import {Injectable, EventEmitter} from 'angular2/core';
@Injectable()
export class EmitterService {
private static _emitters: { [ID: string]: EventEmitter<any> } = {};
static get(ID: string): EventEmitter<any> {
if (!this._emitters[ID])
this._emitters[ID] = new EventEmitter();
return this._emitters[ID];
@kirkbushell
kirkbushell / XSSProtection.php
Last active November 5, 2021 06:08
Laravel 5 XSS protection middleware
class XSSProtection
{
/**
* The following method loops through all request input and strips out all tags from
* the request. This to ensure that users are unable to set ANY HTML within the form
* submissions, but also cleans up input.
*
* @param Request $request
* @param callable $next
* @return mixed
@DanielG
DanielG / cors-proxy.js
Created April 2, 2011 22:39
cors proxy in nodejs
var http = require('http');
var connect = require('connect');
var httpProxy = require('http-proxy');
var proxy = module.exports = function(options){
return function (req, res) {
var proxy = new httpProxy.HttpProxy(req, res);
var headerFields = null;