- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
import React from 'react'; | |
import { useMinScreen } from './minScreen'; | |
const App = () => { | |
const { min } = useMinScreen(); | |
return ( | |
<> | |
{min`md` && <div>I'll show at md and up</div>} | |
{!min`lg` && <div>I'll show at up to lg</div>} |
- Root User - It is the super user which can run any command generally used for administration.
- System User - Users needed for system specific operation/components, like mysql user to run mysql.
- Normal User - Other users which are created by root and have limited access given to them.
- User Type: Super user
- User Name: root
plugins=( | |
git | |
rust | |
node | |
aws | |
deno | |
emoji | |
gh | |
git-auto-fetch | |
git-escape-magic |
syntax on | |
set ruler " Show the line and column numbers of the cursor. | |
set formatoptions+=o " Continue comment marker in new lines. | |
set textwidth=0 " Hard-wrap long lines as you type them. | |
set modeline " Enable modeline. | |
set esckeys " Cursor keys in insert mode. | |
set linespace=0 " Set line-spacing to minimum. | |
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
" More natural splits | |
set splitbelow " Horizontal split below current. |
bindkey -e | |
Last login: Tue May 31 11:28:05 on ttys009 | |
➜ ~ vi ~/.zshrc | |
➜ ~ source ~/.zshrc | |
➜ ~ cat ~/.zshrc | |
bindkey -e | |
bindkey '\e\e[C' forward-word |
The nuances of Rust's `impl Trait` syntactic sugar | |
A brief discussion in a discord channel about language design is the motivation behind this writing. | |
What happens when you have gthe function below: | |
```rs | |
trait Speed { } | |
fn get_oyelowo(arg1: impl Speed , arg2: impl Speed) { |
I run a lot of web servers for different projects, all of them on different ports. Generally I start with port 8000 and increment from there as I spin up new servers, but it became tiresome to remember what projects were running on which ports and what the next available port was.
/etc/hosts won't let you specify a port, but a combination of aliasing 127.0.0.1 to 127.0.0.X, forwarding ports from 8000 to 80, and adding the 127.0.0.X IP under an alias in /etc/hosts did work.
This script finds the next available value of X, aliases it with ifconfig
, forwards the given port to port 80 with ipfw
, and adds a new entry to /etc/hosts that aliases the IP to the domain you want.
Now I can add a server alias with sudo domain-alias funproject 8000
, run the web server at 127.0.0.X:8000, and load up http://funproject/ in my browser.
(Because I needed it to work on a Mac, I couldn't use iptables
. ipfw
seems to work, though its manpage claims it's deprecated and pfctl
is the way to go. I wasn't able to figure
# Virtual machine multipass | |
brew install --cask multipass | |
multipass launch --name k3s --mem 4G --disk 40G | |
multipass shell k3s | |
# From inside the VM run: | |
ubuntu@k3s:~$ curl -sfL https://get.k3s.io | sh - |
$id: http://events.argoproj.io/events.json | |
$schema: http://json-schema.org/schema# | |
definitions: | |
io.argoproj.common.Amount: | |
description: Amount represent a numeric amount. | |
type: number | |
io.argoproj.common.Backoff: | |
description: Backoff for an operation | |
properties: |