Skip to content

Instantly share code, notes, and snippets.

View weslley39's full-sized avatar
🤘
Awesome

Weslley Neri weslley39

🤘
Awesome
View GitHub Profile
@joshuat
joshuat / Slack avatar-less sidebar.md
Last active January 19, 2021 08:25
Remove the avatars from your slack sidebar

Slack has listened to feedback and given us a way to toggle off the sidebar avatars.

(This only seems to be available in the Beta channel at the moment)

Display or hide profile photos

  1. From your desktop, click your profile picture in the top right.
  2. Select Preferences from the menu.
  3. Click Sidebar in the left-side column.
  4. Check or uncheck the boxes next to Show profile photos next to DMs.
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
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
@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 .

@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

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
@javilobo8
javilobo8 / download-file.js
Last active July 1, 2024 23:21
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);

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

{
"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",