| use async_trait::async_trait; | |
| use hickory_resolver::TokioAsyncResolver; | |
| use http::Extensions; | |
| use pingora::lb::discovery::ServiceDiscovery; | |
| use pingora::lb::selection::{BackendIter, BackendSelection}; | |
| use pingora::lb::{Backend, Backends, LoadBalancer}; | |
| use pingora::protocols::l4::socket::SocketAddr; | |
| use pingora::{Error, ErrorSource, ErrorType, Result as PingoraResult}; | |
| use std::fmt::Debug; | |
| use std::net::{IpAddr, SocketAddrV4}; |
| #lang racket/base | |
| ;; Generate a form email to let someone know their SPF records are misconfigured for their current email provider. | |
| ;; | |
| ;; Run (fill-report "domain.com" "1.2.3.4") where the 2nd arg is the sending email server's IP address. | |
| ;; It will copy the completed report to the clipboard for you. | |
| ;; Only works on Windows for now. | |
| (require net/dns |
| require('fattable/fattable.js'); | |
| /* | |
| * This variable is used to keep the scroll position when the live view navigation changes. | |
| * This is useful for modals. | |
| */ | |
| let keepScroll = {}; | |
| export default { |
/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| #!/bin/sh | |
| PREAMBLE="\x19\x00\x00\x02\x00\x00\x0d\xe9\x30\x30\x44\x30\x39\x45\x2d" # For Pace 5268AC | |
| SERIAL=00000A000000 | |
| WAN=eth0.0 | |
| LAN=eth1 | |
| to_shellcode() | |
| { | |
| counter=0 |
If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech
This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next, right?
+ webpack@4.0.0-beta.2
Over the weekend I spun up a new Elixir :ecto, "2.2.7" project that I was able to get working with CockroachDB and this adapter fork - with some caveats I wanted to share to help others.
-
Only the
rootuser can create databases This requires you configure theEcto.Adapters.Postgresusernameasrootor else themix ecto.createcommand will always fail. You can go back and change your configuredusernameto something else after the database has been created, or create your database and user permissions usingcockroach sqland skip themix ecto.createcommand. -
Configuring Ecto primary_key ID to be created by CockroachDB By default when configuring your
Ecto.Schemausingautogenerate: falseit appears either CockroachDB, Ecto or the Postrex adapter (I did not investigate this) uses theBIGINTunique_rowid()function as the default value for IDs
@primary_key {:id, :id, autogenerate:
| defmodule YourAppName.Search do | |
| # ... | |
| @doc """ | |
| Queries listings. | |
| """ | |
| def query_listings(query, current_user) do | |
| default_scope = from l in Listing, where: l.draft == false or l.user_id == ^current_user.id, order_by: [desc: l.updated_at], limit: 50 | |
| id = _try_integer(query) |
If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8
To use the new phx.new project generator, you can install the archive with the following command:
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs: