Skip to content

Instantly share code, notes, and snippets.

View weslley39's full-sized avatar
🤘
Awesome

Weslley Neri weslley39

🤘
Awesome
View GitHub Profile
@wbroek
wbroek / genymotionwithplay.txt
Last active August 12, 2024 07:34
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@weslley39
weslley39 / Sublime_Text_Packages
Last active August 29, 2015 14:07
Sublime_Text_Packages
{
"in_process_packages":
[
],
"installed_packages":
[
"Better CoffeeScript",
"BracketHighlighter",
"Browser Refresh",
"DocBlockr",
{
"color_scheme": "Packages/User/Solarized (dark) (SL).tmTheme",
"fallback_encoding": "UTF-8",
"font_size": 10,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"theme": "Seti.sublime-theme",

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@javilobo8
javilobo8 / download-file.js
Last active September 2, 2024 03:58
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
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

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": [
@csarron
csarron / scrcpy_shortcut.md
Created April 20, 2018 02:08
Scrcpy Shortcuts

Scrcpy Shortcuts

Action Shortcut
switch fullscreen mode Ctrl+f
resize window to 1:1 (pixel-perfect) Ctrl+g
resize window to remove black borders Ctrl+x | Double-click¹
click on HOME Ctrl+h | Middle-click
click on BACK Ctrl+b | Right-click²
click on APP_SWITCH Ctrl+m
@Generator
Generator / Deluge_Throttle.md
Last active June 2, 2023 00:30
Throttle Deluge on Plex stream Start/Stop

Dependencies

  • deluge-console

Install

$ wget -O deluge_throttle.sh https://gist.githubusercontent.com/Generator/67da7dc859634046165320ef061769e0/raw/deluge_throttle.sh
$ chmod +x deluge_throttle.sh

Script Setup

Edit deluge_throttle.sh and set deluged username password .

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