Instantly share code, notes, and snippets.
Discover gists
PlantUML is a really awesome way to create diagrams by writing code instead of drawing and dragging visual elements. Markdown is a really nice documentation tool.
Here's how I combine the two, to create docs with embedded diagrams.
Get the command-line PlantUML fromthe download page or your relevant package manager.
👉ipatool is anopen-source tool developed byMajd, a highly trustworthy and talented developer in the iOS community. Recently, ipatool got a significant update that allows users to easily download older versions of iOS apps onmacOS/Windows/Linux!.
👉 Sinceipatool doesn't have a graphical user interface (GUI), some of you might think it's tricky to use. But trust me, it's not! Here's a simple guide if you're still a bit scared of the terminal. (Tbh, everything in this *guide can be found on ipatool's repo)
👉Note: You need to log into your Apple ID via ipatool for the tool to work. Unless you prioritize security above all, you can trust logging into your Apple account with ipatool. As explained earlier, it’s an open-source tool developed by a well-known and reliable developer, minimizing security risks to the lowest level.
TODO: Separar talvez em 3 partes: 1) entre configuração mínima; 2) complementos que ajudam ; e 3) debug
https://github.com/rbenv/rbenv
$ sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn libpq-dev
Creamos un nuevo repositorio enhttps://github.com. Le damos nombre, descripción, seleccionamos si va a ser un proyecto publico o privado si es el caso, y dejamos el check de crear README sin marcar.Le damos acrear repositorio y con esto ya tenemos el repositorio donde alojaremos nuestro proyecto.
Nos vamos a la carpeta del proyecto y ejecutamos estos comandos.
git initgit add .
fromdataclassesimportdataclass | |
classADTMeta(type): | |
def__new__(mcs,name,bases,namespace:dict): | |
adtc_class=super().__new__(mcs,name,bases,namespace) | |
if"__is_adt_variant__"innamespace: | |
ifnamespace["__is_adt_variant__"]: | |
returnadtc_class |
-- A click event works normally if screen mirroring is already in main menu bar | |
-- but the icon may not be in the menu bar if it hasn't been placed there already. | |
-- So we check if the Screen Mirroring item is in the menu bar and click it there | |
-- if not we go through the Control Center drop down. | |
-- pass name of airplay device with commandline argument to autoselect that device. | |
-- if nothing is passed it'll just open the Screen Mirroring menu without selecting a device | |
use framework"Foundation" | |
use scripting additions |
// from https://odin-lang.org/docs/overview/#when-statements, see end of that section | |
package main | |
import"core:fmt" | |
import"core:mem" | |
main ::proc() { | |
when ODIN_DEBUG { | |
track: mem.Tracking_Allocator |
#!/usr/bin/env bash | |
set -euo pipefail | |
# Install system dependencies | |
apt-get update -qq | |
apt-get install -y -qq --no-install-recommends \ | |
php-cli \ | |
php-mbstring \ | |
php-xml \ | |
php-curl \ |