Skip to content

Instantly share code, notes, and snippets.

View outrowender's full-sized avatar
🇧🇷
Working from Brazil

Wender outrowender

🇧🇷
Working from Brazil
  • iOS Senior Developer @ Fiserv
  • São Paulo, Brasil
View GitHub Profile
@outrowender
outrowender / config.json
Last active October 27, 2020 14:00
Windows Terminal config
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles": {
"defaults": {
"colorScheme" : "Dracula",
"fontFace": "JetBrains Mono",
"fontSize": 10,
@outrowender
outrowender / vscodeconfig.json
Last active June 23, 2020 12:34
vscode config
{
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "none",
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"extensions.ignoreRecommendations": false,
"editor.renderWhitespace": "all",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@outrowender
outrowender / client.lua
Last active January 15, 2023 12:16
Draw a native progressbar - FIVEM Lua
--put this along a __resource.lua file
Citizen.CreateThread(function()
while true do
local playerArmour = GetPedArmour(GetPlayerPed(-1)) --get player armor level (0-100)
--x, y, width, height
--Color must be passed as parameter as: {R, G, B, ALPHA}
--percent must be passed from 0 to 100
drawProgressBar(0.120, 0.975, 0.0690, 0.0085, {33, 78, 106, 255}, playerArmour) --armour progressbar
Citizen.Wait(0) -- at every frame
@outrowender
outrowender / .zshrc
Last active March 29, 2024 15:33
My Quick ZSH config (macOS)
# 1. Install Oh-my-zsh running:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# 2. Run the following command:
# open -a TextEdit ~/.zshrc
# 3. Paste and replace this whole file in it, including comments.
# 4. Run:
# source ~/.zshrc
@outrowender
outrowender / launch.json
Created March 9, 2021 16:36
Nexp configs for vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "api develop",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-api",
"program": "${workspaceFolder}/server/web/Nexp.Web.Api/bin/Debug/netcoreapp3.1/Nexp.Web.Api.dll",
@outrowender
outrowender / restore-database.bash
Last active May 26, 2021 13:57
Restore database from .bak file in sqlcmd
sqlcmd -S localhost -U SA -P 'password'
RESTORE DATABASE [dbname] FROM DISK='db.bkp'
WITH MOVE 'db' TO '/var/opt/mssql/data/db.mdf',
MOVE 'db_Log' TO '/var/opt/mssql/data/db_Log.ldf',
REPLACE,
STATS=10
GO
@outrowender
outrowender / powershell.md
Created September 20, 2021 14:17
PowerShell 7 setup

code $PROFILE

Import-Module oh-my-posh
Set-PoshPrompt -Theme material

Get-PoshThemes -list

material.omp.json

@outrowender
outrowender / phone.dart
Created November 12, 2021 20:34
dart Phone number validation with regex
class Phone {
final String _areacode;
final String _specialDigit;
final String _localPhone;
Phone._(this._areacode, this._specialDigit, this._localPhone);
static Phone? create(String? candidate) {
final candidateFormatted = candidate!.replaceAll(RegExp('[^0-9]'), '');
//https://regex101.com/r/P85Luy/1
@outrowender
outrowender / YourView.swift
Created April 6, 2022 22:04
New UIView screen
//
// RatingStarsUIView.swift
// ShoeStore Swift ViewCode
//
// Created by Wender Patrick on 06/04/22.
//
import UIKit
protocol RatingStarsUIViewProtocol: AnyObject {
@outrowender
outrowender / script.sh
Created April 18, 2022 21:08
Copy ssh key to macOS clipboard
cat ~/.ssh/id_rsa.pub | pbcopy