Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
/ | |
(?:(\w+)\:?\/\/)? # Protocol | |
([^\/?]+) # Optional subdomains, domain and TLD | |
\/? # Traling slash | |
([^\?]*) # Path | |
([^\#]*) # Query | |
(\#?.*) # Fragment | |
/xu | |
# http://regex101.com/r/oV5tN9 |
Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.
SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
SELECT
python_type,
string_to_array(
(
CASE WHEN (python_release IS NULL OR python_release = '')
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
# If your test settings file doesn't import any other settings file | |
# then you can use the function directly: | |
def prevent_tests_migrate(db): | |
import django | |
from django.db import connections | |
from django.db.migrations.executor import MigrationExecutor | |
django.setup() | |
ma = MigrationExecutor(connections[db]).loader.migrated_apps | |
return dict(zip(ma, ['{a}.notmigrations'.format(a=a) for a in ma])) |
; Inspired by https://twitter.com/gigasquid/status/530699466891067392 ... | |
; An implementation of the Fizz Buzz Kata with no conditionals. | |
(defn fb-gen | |
[step value] | |
(into (sorted-map) (zipmap (range step 101 step) (repeat value)))) | |
(def nums (into (sorted-map) (zipmap (range 1 101) (range 1 101)))) | |
(def threes (fb-gen 3 "fizz")) | |
(def fives (fb-gen 5 "buzz")) | |
(def fifteens (fb-gen 15 "fizzbuzz")) |
class DisableMigrations(object): | |
def __contains__(self, item): | |
return True | |
def __getitem__(self, item): | |
return "notmigrations" | |
MIGRATION_MODULES = DisableMigrations() |
ctrl_table = { | |
sends_escape = true, | |
last_mods = {} | |
} | |
control_key_timer = hs.timer.delayed.new(0.15, function() | |
ctrl_table["send_escape"] = false | |
-- log.i("timer fired") | |
-- control_key_timer:stop() | |
end |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh