This file contains 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
void kill() { | |
alive = false; | |
} |
This file contains 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
git config --global alias.graph "log --branches --remotes --tags --graph --pretty=format:'%C(#f2fc3f)(%cr)%C(#66f0f9) %an %C(#cd9a00)%h%C(#70f963)%d %Creset%s'" |
This file contains 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
function fake_commit { | |
local date=$1 | |
local message=$2 | |
export GIT_{AUTHOR,COMMITTER}_DATE="$(LC_TIME=en_US date -d "$date")" | |
git commit -m "$message" | |
unset GIT_{AUTHOR,COMMITTER}_DATE | |
} |
This file contains 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
function getFunctionName(fun) :: String | |
split(string(fun), '.')[end] | |
end |
This file contains 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
[alias] fap = !git commit --amend --no-edit && git push --force-with-lease |
This file contains 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
[tool.poetry] | |
name = "source" | |
[tool.poetry.dependencies] | |
python = "~3.8" | |
dohq-artifactory = {git = "https://github.com/devopshq/artifactory.git", rev = "support-python-38-glob"} | |
[build-system] | |
requires = ["poetry>=0.12"] | |
build-backend = "poetry.masonry.api" |
This file contains 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
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=8 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
# add the new swapfile if it isn’t already there | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab |
This file contains 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
[tool.poetry] | |
name = "test_poetry" | |
version = "0.1.0" | |
description = "" | |
authors = ["Paweł Rubin <prubin@vewd.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
[tool.poetry.dev-dependencies] |
This file contains 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
[tool.poetry] | |
name = "test_poetry" | |
version = "0.1.0" | |
description = "" | |
authors = ["Paweł Rubin <prubin@vewd.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
example-pkg = { path = "./example_pkg", develop = true, extras = ["foo"] } |
This file contains 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
[[package]] | |
name = "certifi" | |
version = "2020.12.5" | |
description = "Python package for providing Mozilla's CA Bundle." | |
category = "main" | |
optional = false | |
python-versions = "*" | |
[[package]] | |
name = "chardet" |
OlderNewer