Prerequisites:
- Heroku CLI installed on your computer
- A project deployed to Heroku
#!/bin/bash | |
NC='\033[0m' | |
CO='\033[0;31m' | |
function display { | |
echo -e "$CO $1 $NC" | |
} | |
display "RPM FUSION FREE AND NONFREE" |
# Let the device unmounted | |
sudo umount /dev/sdb | |
# Optional: change the content to zeros | |
sudo dd if=/dev/zero of=THE_DEVICE bs=512 count=1 | |
# Normally this is not nessecary. Then to create a new layout on the drive: | |
sudo fdisk /dev/THE_DEVICE | |
# Then: |
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
Prerequisites:
function magicMethods (clazz) { | |
// A toggle switch for the __isset method | |
// Needed to control "prop in instance" inside of getters | |
let issetEnabled = true | |
const classHandler = Object.create(null) | |
// Trap for class instantiation | |
classHandler.construct = (target, args, receiver) => { | |
// Wrapped class instance |
version: '3.7' | |
# make sure everything is running with: | |
# docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}" | grep "nginx-" | |
#networks | |
networks: | |
#network reverse-proxy | |
reverse-proxy: | |
external: true |
import { useCallback, useMemo, useState } from 'react'; | |
export interface useLocalStorageProps<T> { | |
id: string; | |
defaultValue: T; | |
} | |
export interface useLocalStorageReturn<T> { | |
setValue: (value: T) => void; | |
value: T; |