Create a file called /media/state/units/docker-local.service that has the following contents:
[Unit]
Description=docker local
[Service]
PermissionsStartOnly=true
| const { keccak256, bufferToHex } = require('ethereumjs-util'); | |
| class MerkleTree { | |
| constructor (elements) { | |
| // Filter empty strings and hash elements | |
| this.elements = elements.filter(el => el).map(el => keccak256(el)); | |
| // Deduplicate elements | |
| this.elements = this.bufDedup(this.elements); | |
| // Sort elements |
| /bootstrap/compiled.php | |
| /vendor | |
| composer.phar | |
| .DS_Store | |
| .idea | |
| .env | |
| .env.*.php | |
| .env.php | |
| php_errors.log | |
| nginx-error.log |
| <?php | |
| /** | |
| * Automatically alias Laravel Model's to their base classname. | |
| * Ex: "App\Models\User" now can just be accessed by "User" | |
| */ | |
| if (! function_exists('aliasModels')) { | |
| function aliasModels() { | |
| $finder = new \Symfony\Component\Finder\Finder(); | |
| $finder->files()->name('*.php')->in(base_path().'/app'); |
| <?php | |
| // PoC for collection pipeleines with improved memory footprint | |
| // requires php 5.5 >= 5.5.24 | |
| // or php 5.6 >= 5.6.8 | |
| // or php 7 | |
| // | |
| // see: https://bugs.php.net/bug.php?id=69221 | |
| class Collection extends \IteratorIterator { |
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
| var user = { | |
| validateCredentials: function (username, password) { | |
| return ( | |
| (!(username += '') || username === '') ? { error: "No Username Given.", field: 'name' } | |
| : (!(username += '') || password === '') ? { error: "No Password Given.", field: 'pass' } | |
| : (username.length < 3) ? { error: "Username is less than 3 Characters.", field: 'name' } | |
| : (password.length < 4) ? { error: "Password is less than 4 Characters.", field: 'pass' } | |
| : (!/^([a-z0-9_-]+)$/i.test(username)) ? { error: "Username contains invalid characters.", field: 'name' } | |
| : false | |
| ); |
| # Setting up dnsmasq for Local Web Development Testing on any Device | |
| Please note, these instructions are for OS X Lion. | |
| First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings: | |
| 1. Go to *System Preferences > Network* | |
| 1. Click *Advanced...* |
| Stripe CTF - Work Notes | |
| mpetrov ([email protected]) | |
| These notes are very rough. They should give a general idea of how each level was solved. | |
| ---- LEVEL 01 (login: e9gx26YEb2) ----- | |
| Solution: modifying PATH env variable | |
| Password: kxlVXUvzv | |
| date.c |