Skip to content

Instantly share code, notes, and snippets.

@shawninder
shawninder / SO-Q-71398889.html
Created March 8, 2022 21:08
Validating the HTML from an SO question
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css/style.css" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>D&D DM Tool</title>
</head>
<body>
<div id="header-container">
@shawninder
shawninder / makeUpdateDeps.log
Created February 24, 2021 17:12
In planet4-docker-compose, `make update-deps`
./scripts/update-repos.sh
Updating main theme...
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
Updating gutenberg blocks...
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
./scripts/install-deps.sh
@shawninder
shawninder / makeDev.log
Created February 24, 2021 16:01
In planet4-docker-compose, having removed `repos` from the `dev` target: `make dev`
Hosts file already configured
.env file already exists
ERROR: build path /Users/shawn/git/shawninder/planet4-docker-compose/defaultcontent either does not exist, is not accessible, or is not a valid URL.
make[1]: *** [start] Error 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j init getdefaultcontent db/Dockerfile
make[2]: Nothing to be done for `init'.
mkdir -p defaultcontent
envsubst < db/Dockerfile.in > db/Dockerfile
curl --fail https://storage.googleapis.com/planet4-default-content/planet4-defaultcontent_wordpress-v0.0.39.sql.gz > defaultcontent/planet4-defaultcontent_wordpress-v0.0.39.sql.gz
echo "Getting default content images..."
@shawninder
shawninder / makeDev.log
Created February 24, 2021 15:17
In planet4-docker-compose : `make dev`
Hosts file already configured
rm -fr persistence/app/public/wp-content/themes/planet4-master-theme
rm -fr persistence/app/public/wp-content/plugins/planet4-plugin-gutenberg-blocks
./repos.sh
Cloning into 'persistence/app/public/wp-content/themes/planet4-master-theme'...
remote: Enumerating objects: 42, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 17337 (delta 13), reused 20 (delta 4), pack-reused 17295
Receiving objects: 100% (17337/17337), 14.41 MiB | 1.32 MiB/s, done.
@shawninder
shawninder / nroEnable.log
Created January 22, 2021 00:36
In planet4-docker-compose, when I `make nro-enable`
NRO repo https://github.com/greenpeace/planet4-canada.git
NRO theme planet4-child-theme-canada
NRO dirname planet4-canada
Cloning into 'planet4-canada'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 962 (delta 36), reused 39 (delta 10), pack-reused 896
Receiving objects: 100% (962/962), 136.25 KiB | 344.00 KiB/s, done.
Resolving deltas: 100% (604/604), done.
@shawninder
shawninder / planet4-docker-compose_makeDev.log
Created January 20, 2021 15:45
This is what I get when running `GIT_REF="fix/rsync-omit-times" make dev` in the `greenpeace/planet4-docker-compose` repo after `make clean`
Hosts file already configured
ERROR: build path /Users/shawn/git/shawninder/planet4-docker-compose/defaultcontent either does not exist, is not accessible, or is not a valid URL.
make[1]: *** [start] Error 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -j init getdefaultcontent db/Dockerfile
make[2]: Nothing to be done for `init'.
mkdir -p defaultcontent
envsubst < db/Dockerfile.in > db/Dockerfile
curl --fail https://storage.googleapis.com/planet4-default-content/planet4-defaultcontent_wordpress-v0.0.37.sql.gz > defaultcontent/planet4-defaultcontent_wordpress-v0.0.37.sql.gz
curl --fail https://storage.googleapis.com/planet4-default-content/planet4-default-content-1-25-images.zip > defaultcontent/planet4-default-content-1-25-images.zip
% Total %% RTeocteailv ed % X f%e rRde c eAivveerda g%e XSfpeeredd A vTeirmaeg e S pTeiemde T i mTei m e TCiumrer e n t
@shawninder
shawninder / planet4-docker-compose_makeDev.log
Created January 19, 2021 19:59
This is what I get when running `GIT_REF="fix/rsync-omit-times" make dev` in the `greenpeace/planet4-docker-compose` repo
This file has been truncated, but you can view the full file.
Hosts file already configured
Starting traefik ... done
Starting redis ... done
Starting db ... done
Starting php-fpm ... done
Starting openresty ... done
Starting elasticsearch ... done
Starting P4 Wordpress docker-compose stack.
Note, this may take up to 10 minutes on the first run!
sbt:lila-ws> run
[warn] Compile / run / javaOptions will be ignored, Compile / run / fork is set to false
[info] running lila.ws.Boot
SLF4J: A number (1) of logging calls during the initialization phase have been intercepted and are
SLF4J: now being replayed. These are subject to the filtering rules of the underlying logging system.
SLF4J: See also http://www.slf4j.org/codes.html#replay
INFO r.api.Driver [clients-akka.actor.default-dispatcher-3] [Supervisor-1] Creating connection: Connection-1
INFO r.c.a.MongoDBSystem [reactivemongo-akka.actor.default-dispatcher-4] [Supervisor-1/Connection-1] Starting the MongoDBSystem
INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-4] Netty EPoll successfully loaded (shaded: true)
INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-4] Instantiated reactivemongo.core.netty.Pack
$ sbt run
[info] welcome to sbt 1.4.6 (AdoptOpenJDK Java 11.0.9.1)
[info] loading settings for project lila-ws-build-build-build from metals.sbt ...
[info] loading project definition from /Users/shawn/git/shawninder/lila-ws/project/project/project
[info] loading settings for project lila-ws-build-build from metals.sbt ...
[info] loading project definition from /Users/shawn/git/shawninder/lila-ws/project/project
[success] Generated .bloop/lila-ws-build-build.json
[success] Total time: 0 s, completed Jan. 18, 2021, 4:02:40 p.m.
[info] loading settings for project lila-ws-build from metals.sbt,plugins.sbt ...
[info] loading project definition from /Users/shawn/git/shawninder/lila-ws/project

Last Week Tonight Feb 12 2017 excerpt

On February 12 2017, on his show Last Week Tonight, John Oliver said the following (video):

We all need to commit to defending the reality of facts, but it's going to take work. As we've already seen, protests, calls to legislators and lawsuits are effective ways to try an drag the administration back to reality, but this needs to go down to a personal level as well.

We should make extra effort on social media to try and verify stories before passing them on, especially if they confirm our preexisting biases. Ask questions of yourself, like:

  • Is this a source I know and recognize?
  • Has anyone fact-checked this?
  • Does it link to primary sources, and do those sources match what the story says?