- Line by line
- No colors
- Able to be piped into vim (shown later on)
diff <(curl -vs https://reddit.com 2>&1) <(curl -vs https://reddit.com 2>&1)
""" | |
A deep neural network with or w/o dropout in one file. | |
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/ | |
""" | |
import numpy, theano, sys, math | |
from theano import tensor as T | |
from theano import shared | |
from theano.tensor.shared_randomstreams import RandomStreams |
This is a method to create a proxy which is pretty simple and does not involve using shady websites or proprietary applications, etc.
First, create a server, such as a DigitalOcean droplet.
Once the server is created, verify that you can login via SSH:
$ ssh user@<ip>
If that is working, creating a local [SOCKS5] proxy using OpenSSH is just one command. Here is one suggestion:
#!/bin/bash | |
# | |
# When you are working on your macbook sitting in cafe and you have to go pee, | |
# you need some way to guard you machine. | |
# | |
# Start this script, remove any earphones, and go do the job. | |
# The assumption is the thief will close the lid of the laptop before taking it away. | |
# This script detects the closing of the lid and plays some loud audio that will | |
# likely distract the thief and/or grab attention of nearby people, making the |
$ telnet mail.example.org 25 | |
Trying XXX.XXX.XXX.XXX... | |
Connected to XXX.XXX.XXX.XXX. | |
Escape character is '^]'. | |
220 ********************************* | |
ehlo server.example.org | |
250-mail.example.com | |
250-PIPELINING | |
250-SIZE 20480000 | |
250-ETRN |
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
APPNAME?="docker-beat" | |
REPONAME?="dmportella" | |
TEST?=$$(go list ./... | grep -v '/vendor/') | |
VETARGS?=-all | |
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor) | |
REV?=$$(git rev-parse --short HEAD) | |
BRANCH?=$$(git rev-parse --abbrev-ref HEAD) | |
BUILDFILES?=$$(find bin -mindepth 1 -maxdepth 1 -type f) | |
VERSION?="0.0.0" | |
DOCKER_REPO?="${REPONAME}/${APPNAME}" |
#!/usr/bin/python | |
el_cost_usd = 0.035 | |
# network difficulty | |
ndiff = 15958652328578.91 | |
block_reward = 6.25 | |
# S9 with AB enabled consumes ~13% less energy (assuming 4-midstates enabled for AB) | |
# Below is a favorite overclocked configuration (15.6 Th/s , 1331 W) | |
efficiency_w_per_ths = 85.3 | |
# S9: heavily downclocked | |
# efficiency_w_per_ths = 71 |
CACHE_INFO: 127.0.0.1 | |
CF_CONNECTING_IP: 127.0.0.1 | |
CF-Connecting-IP: 127.0.0.1 | |
CLIENT_IP: 127.0.0.1 | |
Client-IP: 127.0.0.1 | |
COMING_FROM: 127.0.0.1 | |
CONNECT_VIA_IP: 127.0.0.1 | |
FORWARD_FOR: 127.0.0.1 | |
FORWARD-FOR: 127.0.0.1 | |
FORWARDED_FOR_IP: 127.0.0.1 |