This file contains hidden or 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
#!/bin/sh | |
ls * | parallel -j 4 -u -k ffmpeg-bar -y -i {} -threads 0 -c:v libx264 -crf 23 -c:a aac -map_metadata 0 "../output/{.}.mp4" | |
# for fullfile in ./*; do | |
# # do some stuff here with "$f" | |
# # remember to quote it or spaces may misbehave | |
# filename=$(basename -- "$fullfile") | |
# extension="${filename##*.}" | |
# filename="${filename%.*}" |
This file contains hidden or 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
import { spawn } from "child_process"; | |
import { SpawnOptionsWithoutStdio } from "node:child_process"; | |
export default function spawnAsync( | |
cmd: string, | |
args: string[] = [], | |
options: SpawnOptionsWithoutStdio = {} | |
) { | |
return new Promise<number>((resolve, reject) => { | |
const result = spawn(cmd, args, options); |
This file contains hidden or 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
import userEvent from '@testing-library/user-event'; | |
import TestUtils from 'react-dom/test-utils'; | |
function changeInputMaskValue(element: HTMLInputElement, value: string) { | |
element.value = value; | |
element.selectionStart = element.selectionEnd = value.length; | |
TestUtils.Simulate.change(element); | |
}; | |
it('example test', async () => { |
This file contains hidden or 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
cd $HOME | |
sudo apt-get install -y unzip | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip sdk-tools-linux-4333796.zip -d Android | |
rm sdk-tools-linux-4333796.zip | |
sudo apt-get install -y lib32z1 openjdk-8-jdk | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | |
export PATH=$PATH:$JAVA_HOME/bin | |
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc | |
cd Android/tools/bin |
This file contains hidden or 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
/** | |
* @author Leandro Cavalcante (@leandrocrs) | |
* Copiar o trecho abaixo e colar no console do navegador, na página de transações | |
*/ | |
(() => { | |
const result = $r.props.store | |
.getState() | |
.transactions.movimentacoes.filter((m) => m.conta != null) | |
.map((m) => { | |
return { |
This file contains hidden or 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 fetch --prune | git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D |
This file contains hidden or 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
cd 'C:\Program Files\ModifiableWindowsApps\pso2_bin\' | |
Get-Acl .\pso2launcher.exe | Set-Acl .\pso2.exe | |
Get-Acl .\edition.txt | Set-Acl .\otp_notice_na.rtf |
This file contains hidden or 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
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/leandrw/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will |
This file contains hidden or 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
Import-Module oh-my-posh | |
function elevate-process | |
{ | |
$file, [string]$arguments = $args; | |
$psi = new-object System.Diagnostics.ProcessStartInfo $file; | |
$psi.Arguments = $arguments; | |
$psi.Verb = "runas"; | |
$psi.WorkingDirectory = get-location; | |
[System.Diagnostics.Process]::Start($psi); |
This file contains hidden or 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
{ | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ | |
{ |