Skip to content

Instantly share code, notes, and snippets.

View weslley39's full-sized avatar
🤘
Awesome

Weslley Neri weslley39

🤘
Awesome
View GitHub Profile
rm -rf /Applications/Android File Transfer.app/Contents/Helpers/Android File Transfer Agent.app
rm -rf ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app
Pushing to a different branch
If you want to push to the same remote but a different branch. Use the following syntax;
git push <branch with new changes>:<branch you are pushing to>
For example:
git push origin dev:master
This pushses local dev branch to origin master branch
defaults write -g InitialKeyRepeat -int 10
defaults write -g KeyRepeat -int 1
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
METHOD 1: Merge Two Or More MP3 Files
cat file1.mp3 > newfile.mp3
cat file2.mp3 >> newfile.mp3
cat file3.mp3 >> newfile.mp3
METHOD 2: Merge Two Or More MP3 Files
cat file1.mp3 file2.mp3 file3.mp3 > newfile.mp3
@weslley39
weslley39 / remove-accents-salesforce-formula
Created November 27, 2018 16:01
Remove the Accents from Salesforce field with formula
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
@weslley39
weslley39 / suspend_until
Created October 15, 2018 23:57
install: chmod +x suspend_until | Use: sudo ./suspend_until 07:30
#!/bin/bash
# Auto suspend and wake-up script
#
# Puts the computer on standby and automatically wakes it up at specified time
#
# Written by Romke van der Meulen <[email protected]>
# Minor mods fossfreedom for AskUbuntu
#
# Takes a 24hour time HH:MM as its argument
@weslley39
weslley39 / suspend_until
Created October 15, 2018 23:57
isntall
#!/bin/bash
# Auto suspend and wake-up script
#
# Puts the computer on standby and automatically wakes it up at specified time
#
# Written by Romke van der Meulen <[email protected]>
# Minor mods fossfreedom for AskUbuntu
#
# Takes a 24hour time HH:MM as its argument

Put the file on /Users/{{user}}/.config/karabiner/assets/complex_modifications Change F1 In the Simple Modification tab remap f1 to grave_accent_and_tilde

{
  "title": "Weslley Modifications",
  "rules": [
    {
      "description": "Remap extra mouse buttons to return and close a window",
      "manipulators": [
export PATH=/Users/weslleyneri/Library/Android/sdk/platform-tools:/Users/weslleyneri/Library/Android/sdk/tools:$PATH
adb reverse tcp:8081 tcp:8081 - foward port
adb shell input keyevent 82 - run command line tools
adb shell settings put system screen_off_timeout 60000 - always awake
~/Library/Android/sdk/emulator/emulator -avd Pixel_2_API_27 -dns-server 8.8.8.8,8.8.4.4 - start avd on mac
"/emulator -list-avds" - list emulators
./gradlew installDebug - install app from comand liine
adb logcat *:S ReactNative:V ReactNativeJS:V - see console.logs
adb push /Users/weslleyneri/apps/rook/android/app/build/outputs/apk/app-dev19-armeabi-v7a-debug.apk /data/local/tmp/net.lua.reseller