cd /usr/local/bin
wget https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar -O bfg-latest.jar
echo -e "java -jar /usr/local/bin/bfg-latest.jar \$@" | sudo tee /usr/local/bin/bfgbfg --delete-files key_priv.pem .git| { | |
| "iex": { | |
| "prefix": "iex", | |
| "body": "require IEx;IEx.pry", | |
| "description": "put iex for debug" | |
| }, | |
| "inspect": { | |
| "prefix": "insp", | |
| "body": "|> IO.inspect()", | |
| "description": "put iex for debug" |
| defmodule Zipper do | |
| defstruct node: nil, focus: [] | |
| @type t :: %__MODULE__{node: BinTree.t(), focus: list({:left | :right, BinTree.t()})} | |
| @doc """ | |
| Get a zipper focused on the root node. | |
| """ | |
| @spec from_tree(BinTree.t()) :: Zipper.t() | |
| def from_tree(bin_tree), do: %__MODULE__{node: bin_tree} |
| defmodule RotationalCipher do | |
| @doc """ | |
| Given a plaintext and amount to shift by, return a rotated string. | |
| Example: | |
| iex> RotationalCipher.rotate("Attack at dawn", 13) | |
| "Nggnpx ng qnja" | |
| """ | |
| @lower_start ?a | |
| @lower_end ?z |
| regex: ([a-zA-Z0-9\/\_\-\.\]+\.?[a-zA-Z0-9]+)\:([0-9]+) | |
| command: code -g $1:$2 |
| defmodule MegaGen do | |
| @min_choice 1 | |
| @max_choice 60 | |
| @valid_choices @min_choice..@max_choice | |
| @total_choices 6 | |
| defguard game_complete(total_choices, acc) when map_size(acc.map) == total_choices | |
| def min_choice, do: @min_choice | |
| def max_choice, do: @max_choice |
| 0-00.usa.cc | |
| 0-180.com | |
| 0-30-24.com | |
| 0-420.com | |
| 0-900.com | |
| 0-aa.com | |
| 0-mail.com | |
| 0-z.xyz | |
| 0.pl | |
| 00.pe |
| # Get last jadlog update in shell | |
| # put in your ~/.bashrc or ~/.zshrc | |
| # usage: jadlog <tracking_number> | |
| # ex: jadlog 00000000000000 | |
| jadlog() { | |
| local URL=https://www.jadlog.com.br/siteInstitucional/tracking_dev.jad?cte=$1 | |
| curl -s $URL \ |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Q+ |
| #!pip install markdownify | |
| #!pip install beautifulsoup4 | |
| from os import listdir, remove, makedirs, path | |
| from bs4 import BeautifulSoup | |
| import shutil | |
| from markdownify import MarkdownConverter | |
| from datetime import datetime | |
| HTML_PATH = "./htmls" |