sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
config :wps, WPSWeb.Endpoint, | |
live_reload: [ | |
notify: [ | |
live_view: [ | |
~r"lib/wps_web/core_components.ex$", | |
~r"lib/wps_web/(live|components)/.*(ex|heex)$" | |
] | |
], | |
patterns: [ | |
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$", |
Picking the right architecture = Picking the right battles + Managing trade-offs
I have a fork (origin
) from a project (upstream
) on github. Now the upstream project has added a new branch, I want to import into my fork. How do I do that?
I tried checking out the remote and creating a branch on top of that, but that configures the branch the way that git push
is trying to push to the upstream
:
git checkout upstream/branch
git checkout -b branch
After installing the latest Wine release, which currently is 2.0 (I chose the development branch) on XQuartz 2.7.11, I was having problems with blurry text in both winecfg, regedit and other programs launched through Wine. After trying to enable font smoothing and font replacements (source) with only slight changes I found someone trying to solve the same issues (source), albeit compiling everything from scratch which I don't want to do. It turns out that the Retina display on my MacBook Pro was causing the issues with blurry fonts because Wine was not using the "real" resolution, only the reported "lower resolution".
To enable Retina support in Wine open the registry editor via a terminal, preferably through Wine Devel.app installed with Wine:
$ wine regedit
Then find the folder/key:
According to all known laws of aviation, there is no way a bee should be able to fly. | |
Its wings are too small to get its fat little body off the ground. | |
The bee, of course, flies anyway because bees don't care what humans think is impossible. | |
Yellow, black. Yellow, black. Yellow, black. Yellow, black. | |
Ooh, black and yellow! | |
Let's shake it up a little. | |
Barry! Breakfast is ready! | |
Coming! | |
Hang on a second. | |
Hello? |
import { WAProto } from '@adiwajshing/baileys'; | |
import { BufferJSON, initAuthCreds } from '@adiwajshing/baileys/lib/Utils'; | |
import { Collection, Document, MongoClient } from 'mongodb'; | |
import chalk from 'chalk'; | |
export class MongoDbAuth{ | |
static mongoUrl = "mongodb+srv://your-mongodb-url/DBName/?retryWrites=true&w=majority" | |
sim: string | |
private collection: Collection |
-- conway's game of 💩 | |
-- shittily written by benley | |
module Main where | |
import Control.Concurrent | |
import Data.Array.Unboxed | |
import System.Environment | |
data Cell = Live | Dead deriving Eq |