create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Bom, este é um recurso, como muitos outros, bem escondido do git. Então resolvi fazer um post para explicar a situação em que pode-se usar e como fazer essa magia negra. 👻
Você provavelmente já adicionou algum dia um arquivo no projeto que não deveria ser commitado certo? E como você fez para ignorar esse arquivo mesmo? Provavelmente adicionou no arquivo .gitignore
.
OK então, aí você commitou esse arquivo .gitignore
e pronto, mais ninguém poderá criar um arquivo com o mesmo nome e commitar. Mas espera aí! Não era isso que você queria! Você só queria ignorar esse arquivo na sua máquina, se alguém, algum dia por obséquio achar esse um nome bom para seu arquivo, que assim seja.
function useMedia(query) { | |
const [matches, setMatches] = useState(window.matchMedia(query).matches) | |
useEffect(() => { | |
const media = window.matchMedia(query) | |
if (media.matches !== matches) { | |
setMatches(media.matches) | |
} | |
const listener = () => { | |
setMatches(media.matches) |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory = $true, Position = 0)][string]$exeFileName, | |
[Parameter(Mandatory = $true, Position = 1)][string]$credentialName | |
) | |
$wshell = New-Object -ComObject Wscript.Shell -ErrorAction Stop | |
function CheckIfFileExists { |
tags: linux, gnome, networkManager, pkcs12, p12
reference: askubuntu
This article intends to be reference when importing a openvpn file to NetworkManager on linux
.ovpn
file with the following command:const username = "USER_NAME_HERE"; | |
/** | |
* Initialized like this so we can still run it from browsers, but also use typescript on a code editor for intellisense. | |
*/ | |
let followers = [{ username: "", full_name: "" }]; | |
let followings = [{ username: "", full_name: "" }]; | |
let dontFollowMeBack = [{ username: "", full_name: "" }]; | |
let iDontFollowBack = [{ username: "", full_name: "" }]; |
import { DebouncedFunc } from "lodash" | |
import debounce from "lodash.debounce" | |
import { useMemo } from "react" | |
export default function useDebouncedFn<T extends (...args: any[]) => void>(fn: T, wait?: number) { | |
return useMemo(() =>( | |
debounce((...args:any[]) => {fn(...args)}, wait ?? 300) as DebouncedFunc<T> | |
), [fn, wait]) | |
} |
Setting up hybrid graphics linux is generally painful with the current state of Nvidia support. If you can avoid getting an Nvidia GPU based laptop if you plan to use Linux. I use a distro called Archcraft and had some issues specific to my setup (distro/hardware)
The hardware I am installing this on is a TongFang GM6TG7W (aka Wootbook Extreme IV). It has an Intel iGPU and an Nvidia 3070 Max-Q dGPU.
# Salvar num arquivo ~/encode.sh, conceder direito de execução e | |
# executar desta forma (adaptar nomes de diretórios e arquivos para seu caso): | |
# $ ~/encode.sh ~/Video/bigFile.mp4 ~/Video/smallFile.mp4 | |
ffmpeg -i "$1" -vcodec h264 -acodec aac "$2" |