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
[INFO] [Content]: Updating firmware status for: "/private/var/containers/Bundle/Application/9BADA19E-492B-4BC6-BEC2-74F355D68542/RetroArchTV.app/Frameworks/ppsspp.libretro.framework" on "/private/var/mobile/Containers/Data/Application/9A0E0DCF-1A3C-4F6A-B429-20E5EA88D61D/Library/Caches/RetroArch/system".
[INFO] [Core]: Using content: "/private/var/mobile/Containers/Data/Application/9A0E0DCF-1A3C-4F6A-B429-20E5EA88D61D/Library/Caches/RetroArch/downloads/Gran Turismo (USA) (En,Fr,Es) (v2.00).iso".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] RetroArch 1.18.0 (Git 90fb335271)
[INFO] === Build =======================================
[INFO] Capabilities: NEON VFPV3 VFPV4
[INFO] Version: 1.18.0
[INFO] Git: 90fb335271
@outrowender
outrowender / keybindings.jsonc
Created December 11, 2023 19:24
vscode key bindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+cmd+]",
"command": "-editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "alt+cmd+]",
"command": "-notebook.unfold",
@outrowender
outrowender / Quicksort.swift
Last active December 13, 2023 22:47
Swift QuickSort example
func qs(_ list: [Int]) -> [Int] {
if list.count < 1 { return list }
let pivot = list[list.count-1]
var l = [Int]()
var e = [Int]()
var r = [Int]()
for x in list {
if x < pivot { l.append(x) }
@outrowender
outrowender / Observable.swift
Created August 11, 2022 22:15
A observable to a single listener in Swift
//
// Observable.swift
// Created by Wender on 11/08/22.
//
class Observable<T> {
private(set) var value: T {
didSet {
listener?(value)
@outrowender
outrowender / flags.sh
Created August 2, 2022 03:19
Open app with argument flags
open -a '/Applications/WhatsApp.app' --args -disable-gpu
@outrowender
outrowender / script.sh
Created April 18, 2022 21:08
Copy ssh key to macOS clipboard
cat ~/.ssh/id_rsa.pub | pbcopy
@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 / 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 / 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 / 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