Skip to content

Instantly share code, notes, and snippets.

View rafwell's full-sized avatar

Rafael Souza rafwell

  • Brazil
View GitHub Profile
@rafwell
rafwell / migrate-from-local-to-s3-on-chatwoot.txt
Last active September 2, 2025 18:15
Migrate from local to s3 on chatwoot
Este script pretende copiar seu armazenamento local para o s3 da amazon.
Primeiro você deve incluir as variaáveis do armazenamento da amazon no seu env ou docker-compose.yaml, mas deixando o armazenamento como local.
Quando concluir o script, teste e altere o armazenamento de local para amazon
<p>
</p>
@rafwell
rafwell / fix_mic_lenovo320.md
Created April 12, 2021 22:39 — forked from Therises/fix_mic_lenovo320.md
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

@rafwell
rafwell / location-provider-old.ts
Created June 22, 2018 19:16
Bugged mauron85/cordova-plugin-background-geolocation 3.x with Ionic
import { Injectable } from '@angular/core';
import { ApiProvider } from '../../providers/api/api';
import { BackgroundGeolocation, BackgroundGeolocationConfig, BackgroundGeolocationResponse } from '@ionic-native/background-geolocation';
import { NativeStorage } from '@ionic-native/native-storage';
import { UserProvider } from '../user/user';
import { Device } from '@ionic-native/device';
import moment from 'moment';
/*
Generated class for the LocationProvider provider.
@rafwell
rafwell / location-provider.ts
Last active June 22, 2018 19:14
Working with mauron85/cordova-plugin-background-geolocation 3.x with Ionic 3
import { Injectable } from '@angular/core';
import { ApiProvider } from '../../providers/api/api';
import { NativeStorage } from '@ionic-native/native-storage';
import { UserProvider } from '../user/user';
import { Device } from '@ionic-native/device';
import { ENV } from '../../config/environment';
import { AppVersion } from '@ionic-native/app-version';
/*
Generated class for the LocationProvider provider.