On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin.
| From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001 | |
| From: =?UTF-8?q?Julian=20Nu=C3=9F?= <julian.nuss@outlook.com> | |
| Date: Tue, 23 Sep 2014 21:07:29 +0200 | |
| Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6 | |
| --- | |
| lib/Zend/Locale/Format.php | 22 +++++++++++----------- | |
| lib/Zend/Service/Audioscrobbler.php | 6 +++--- | |
| lib/Zend/Service/Technorati.php | 6 +++--- | |
| lib/Zend/Validate/Hostname.php | 4 ++-- |
| "use strict"; | |
| var stackTrace = (new Error()).stack; // Only tested in latest FF and Chrome | |
| var callerName = stackTrace.replace(/^Error\s+/, ''); // Sanitize Chrome | |
| callerName = callerName.split("\n")[1]; // 1st item is this, 2nd item is caller | |
| callerName = callerName.replace(/^\s+at Object./, ''); // Sanitize Chrome | |
| callerName = callerName.replace(/ \(.+\)$/, ''); // Sanitize Chrome | |
| callerName = callerName.replace(/\@.+/, ''); // Sanitize Firefox | |
| console.log(callerName) |
On mac:
/usr/local/bin.| /** | |
| * Sorts an array of objects In-Place, | |
| * sorting by multiple fields sequentially. | |
| * | |
| * @description This function is meant to be used | |
| * with arrays of objects, AND when you need to set | |
| * multiple sorting criteria. For other cases it is | |
| * recommended to use the native method `array.sort(callback)` | |
| * since for simple cases this function is more expensive | |
| * in time and memory. |
| #!/bin/sh | |
| # ngrok's web interface is HTML, but configuration is bootstrapped as a JSON | |
| # string. We can hack out the forwarded hostname by extracting the next | |
| # `*.ngrok.io` string from the JSON | |
| # | |
| # Brittle as all get out--YMMV. If you're still reading, usage is: | |
| # | |
| # $ ./ngrok_hostname.sh <proto> <addr> | |
| # |
| // Must install ImageMagick first | |
| http://www.imagemagick.org/script/index.php | |
| //This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg | |
| convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg | |
| // This does the same as above but to an entire folder (will overwrite original files): | |
| mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg | |
| //This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files) |
| from datetime import datetime, timedelta | |
| import functools | |
| def timed_cache(**timedelta_kwargs): | |
| def _wrapper(f): | |
| update_delta = timedelta(**timedelta_kwargs) | |
| next_update = datetime.utcnow() + update_delta | |
| # Apply @lru_cache to f with no cache size limit |
| #/etc/systemd/system/test.service | |
| [Unit] | |
| Description=Test Systemd Service | |
| [Service] | |
| ExecStartPre=/usr/bin/echo -e "\033[0;33m Pre start \033[0m" | |
| ExecStart=/usr/bin/sleep 10 | |
| ExecStartPost=/usr/bin/echo -e "\033[0;33m Post start \033[0m" |
| import React from "react"; | |
| import { makeStyles, createStyles, Theme } from '@material-ui/core/styles'; | |
| import Paper from '@material-ui/core/Paper'; | |
| import Grid from '@material-ui/core/Grid'; | |
| import Box from '@material-ui/core/Box'; | |
| import TextField from '@material-ui/core/TextField'; | |
| import Typography from '@material-ui/core/Typography'; | |
| import { Button } from '@material-ui/core'; | |
| import { useForm } from 'react-hook-form'; | |
| import * as yup from 'yup'; |
As of 2022/7/6, Sepolia has switched to PoS. The window to do some mining has closed.
It's mid 2022, Ethereum is still PoW and motoring towards merge / PoS. Surviving testnets will be Sepolia - currently PoW - and Goerli. Ropsten will be merged and then deprecated, Rinkeby and Kovan won't be merged.
I want to "get ready" for some Sepolia testing pre- and post-merge. Sepolia will not have a public validator set; testing post-merge will be limited to running applications on it. As Sepolia is PoW, I can actually go mine myself some SepplETH. Here's how.