This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html> | |
<head> | |
<link href="styles.css" rel="stylesheet"> | |
<title>Your Web Page</title> | |
<style> | |
body { | |
background-color: black; | |
} | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following guide at: https://www.gregbrisebois.com/posts/chromedriver-in-wsl2/ | |
Issue: | |
I get to the last step of running google-chrome with this output as a non-admin: | |
``` | |
> google-chrome | |
[9896:9896:0219/105457.079353:ERROR:browser_main_loop.cc(1438)] Unable to open X display. | |
``` | |
and as root using the required --no-sandbox | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos7 | |
RUN yum install gcc make -y #&& \ | |
RUN echo "hello" | |
RUN curl -L -o nghttp2-1.42.0.tar.xz https://github.com/nghttp2/nghttp2/releases/download/v1.42.0/nghttp2-1.42.0.tar.xz | |
RUN tar -xf nghttp2-1.42.0.tar.xz | |
RUN yum install cython python3 python-setuptools -y | |
RUN cd nghttp2-1.42.0 && \ | |
./configure --enable-app PYTHON=/usr/bin/python3.6 PYTHON_VERSION=3.6 LDFLAGS=/usr/lib64/python3.6 && \ | |
make && make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Sublist2 do | |
@doc """ | |
Returns whether the first list is a sublist or a superlist of the second list | |
and if not whether it is equal or unequal to the second list. | |
""" | |
def compare(a, b) when a === b, do: :equal | |
# Passing the smaller list twice to is_sublist?/3 | |
def compare(a, b) when length(a) < length(b), do: if is_sublist?(a, b, a), do: :sublist, else: :unequal | |
def compare(a, b) when length(a) > length(b), do: if is_sublist?(b, a, b), do: :superlist, else: :unequal | |
def compare(_, _), do: :unequal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
SQL_SCHEMA='production_schema.sql' | |
if [ 'postgres' = "$(docker container ps | awk '{print $NF}' | grep postgres)" ] | |
then | |
echo 'Stop container named:' | |
docker stop postgres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MY_ENCODED_SIGNATURE: | |
U0ZNeU5UWS5NVFV5TURrNE16WTBOaTU3Q2lBZ0lDQWljMjF6WDJsa0lqb2lPRE0wWmpOa05UTXRPR0V6WXkwMFlXRXdMV0UzTXpNdE4yWXlaRFk0TW1FM01tUm1JaXdLSUNBZ0lDSm1jbTl0SWpvZ0lpc3hNekV5T1RRMU1EQXdNaUlzQ2lBZ0lDQWlkRzhpT2lBaUt6RXpNVEkxTlRVd01EQXhJaXdLSUNBZ0lDSmthWEpsWTNScGIyNGlPaUFpYVc1aWIzVnVaQ0lzQ2lBZ0lDQWlZbTlrZVNJNklDSklaV3hzYnlFaUNuMEsuTXBuYUVNZzhXS0RCN0U5dS1BM3R6TWVJSkFFc3UtYnoyRWw0a2lWeFA5OA== | |
TELNYX_ENCODED_SIGNATURE: lAjxaJDT5pwXpdnbhUwIQng8zicKOEw3wa4fvLDHhjI= |