sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install nginx software-properties-common certbot python-certbot-nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Full source code: https://github.com/lightstreams-network/lightstreams-js-sdk/blob/master/test/04_gsn_voter.js | |
// This is for formating reasons of Medium. | |
require('dotenv').config({ path: `${__dirname}/.env` }); | |
const chai = require('chai'); | |
chai.use(require('chai-as-promised')); | |
const assert = chai.assert; | |
const { fundRecipient } = require('@openzeppelin/gsn-helpers'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open browser console | |
// Navigate to: https://twitter.com/following | |
// Scroll till end to get all the users displayed in the DOM | |
// Run: | |
$(".user-actions-follow-button").each(function() { | |
$(this).children("button.EdgeButton--primary").click() | |
}); | |
// Better than clicking 500x unfollow :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enchanter@lukas-gaming:~$ cat ~/.gophersland_ethereum_r1/keystore/UTC--2018-09-24T13-36-43.069452577Z--ceee57f2b700c2f37d1476a7974965e149fce2d4 | json_pp | |
{ | |
"address" : "ceee57f2b700c2f37d1476a7974965e149fce2d4", | |
"id" : "a0ffb2a8-e312-4464-8a01-6bedde7aa4bf", | |
"version" : 3, | |
"crypto" : { | |
"kdf" : "scrypt", | |
"cipher" : "aes-128-ctr", | |
"mac" : "a608300aca373fd3906273d92216ccf4097d1b81dc6bcb96869b622c9acbf4f0", | |
"kdfparams" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 Lukas Lukac <https://lukaslukac.io>; All rights reserved. | |
// Play: https://play.golang.org/p/E34Y0SfAyK9 | |
package main | |
import ( | |
"fmt" | |
) | |
type illusion struct { | |
magicianCount int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 Lukas Lukac <https://lukaslukac.io>; All rights reserved. | |
// Play: https://play.golang.org/p/FQa09CzdtRh | |
package main | |
import ( | |
"fmt" | |
) | |
type illusion struct { | |
magicianCount int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Node struct { | |
eventmux *event.TypeMux // Event multiplexer used between the services of a stack | |
config *Config | |
accman *accounts.Manager | |
ephemeralKeystore string // if non-empty, the key directory that will be removed by Stop | |
instanceDirLock flock.Releaser // prevents concurrent use of instance directory | |
serverConfig p2p.Config | |
server *p2p.Server // Currently running P2P networking layer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Benchmark | |
{ | |
/** | |
* @param string $mergeStrategy | |
* @param int $arrayToMergeSize | |
* | |
* @return void | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mergeStrategy = $argv[1]; | |
$numberOfNewElements = $argv[2]; | |
$isArrayMergeStrategy = $mergeStrategy === 'array_merge'; | |
$isUnionStrategy = $mergeStrategy === 'union'; | |
$list = [ | |
[0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Goal: | |
Move vendor repository to "src" directory of the project while keeping git files history. | |
Folder: buzz-platform | |
git checkout -b release-pop | |
Navigate outside the repository: | |
cd ../ |
NewerOlder