1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
""" | |
Here is a way to flatten python dictionaries for making multipart/form-data POST requests. | |
{"some": ["balls", "toys"], "field": "value", "nested": {"objects": "here"}} | |
-> | |
{"some[0]": "balls", "some[1]": "toys", "field": "value", "nested[objects]": "here"} | |
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |
{ | |
"background" : "#282828", | |
"black" : "#282828", | |
"blue" : "#458588", | |
"brightBlack" : "#928374", | |
"brightBlue" : "#83A598", | |
"brightCyan" : "#8EC07C", | |
"brightGreen" : "#B8BB26", | |
"brightPurple" : "#D3869B", | |
"brightRed" : "#FB4934", |
#!/bin/bash | |
mkdir /tmp/adodefont | |
cd /tmp/adodefont | |
mkdir -p ~/.fonts | |
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip | |
unzip 1.050R-it.zip | |
cp source-code-pro-2.030R-ro-1.050R-it/OTF/*.otf ~/.fonts/ | |
wget https://github.com/adobe-fonts/source-serif-pro/archive/2.000R.zip |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
# Usage: | |
# 1) Ctr+S downloads page to ~/Desktop/books.html | |
# 2) Run script | |
# 3) Find your books in /tmp/humble_books | |
# 4) Read them | |
# 5) Profit | |
cat ~/Desktop/books.html | | |
grep "https://dl.humble.com" | | |
sed -n -E 's/.data-web\=\"(https://dl.humble.com/([.]+).([a-z]+)?["]+)./\1 \2 \3/p' | | |
sed 's/&/&/g' > /tmp/humble_books_list && cat /tmp/humble_books_list | |
#!/bin/bash | |
echo "Running PhantomJs..." | |
LOGFILE=/tmp/phantomjs.log | |
exec 6>&1 # Link file descriptor #6 with stdout. | |
exec > $LOGFILE # stdout replaced with file "logfile.txt". | |
# ----------------------------------------------------------- # |
(ns hipstr.test.validators.user-validator-test | |
(:require [hipstr.validators.user-validator :as uv]) | |
(:use clojure.test)) | |
(defn validate-email [email] | |
"Validates the provided email for us, and returns the | |
set of validation messages for the email, if any." | |
(:email (uv/email-validator {:email email}))) | |
(defn validate-username [username] |
A quick list of tools for building HTML/CSS/JS apps that work well offline. Ping me at @nolanlawson if I missed anything!
Tools for bundling your HTML/CSS/JS into a native app.