I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
# memcached requires libevent | |
cd /usr/local/src | |
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
tar -xvzf libevent-2.0.17-stable.tar.gz | |
cd libevent-2.0.17-stable* | |
./configure | |
make | |
sudo make install | |
# Compile memcached utility |
# Helper method to fix Apple's stupid png optimizations | |
# Adapted from: | |
# http://www.axelbrz.com.ar/?mod=iphone-png-images-normalizer | |
# https://github.com/peperzaken/iPhone-optimized-PNG-reverse-script/blob/master/Peperzaken/Ios/DecodeImage.php | |
# PNG spec: http://www.libpng.org/pub/png/spec/1.2/PNG-Contents.html | |
require 'zlib' | |
require 'logger' | |
module PNG |
I’m amazed by React and how it’s bringing happiness to our developer lives. I specially like the workflow that integrates Webpack + React + CSS Modules + Babel among other tools and preprocessors. That’s why Javier Jiménez and I are working together in a library called React Toolbox that we would like to show in a lightning talk at Reactive Conference.
The main idea is to create a set of React components implementing Material Design guidelines. There are already some libraries that solve a similar problem but our project is mostly focused on the workflow and best practices to create a tool everybody would want to use. Also, we are sticking to the design guidelines proposed by Google and embracing minimalism by generating the minimum possible amount of HTML and styles to get the best result. Our workflow includes among others:
- Webpack.
- ES6 with Babel
- Unit t
#!/bin/bash | |
# | |
# 20210119 - Use the new --endpoint flag | |
# - Added verbose logging | |
# | |
# 20200608 - Updated to TzKt API | |
# | |
# 20191029 - Added /v3/network back in. | |
# Thanks to Baking-Bad and their Mystique API |
#!/bin/bash | |
# Usage ./privconnect.sh 300 1.1.1.1 | |
# checks twice, 300 seconds in between, if the node the script is being run on | |
# is connected to 1.1.1.1:9732. If it isn't trust then connect. | |
# Run it from cron, make sure the cron interval is greater than the sleep period | |
# between connection checks in this script. 2x or 3x the sleep period is good. | |
timeallowed=$1 | |
privnodeip=$2 |