Skip to content

Instantly share code, notes, and snippets.

@DKrepsky
DKrepsky / Enable bridge network android studio emulator.md
Last active April 18, 2023 16:27
Enable bridge network Android Studio Emulator

sudo ip tuntap add dev tap0 mode tap group kvm sudo brctl addif br0 tap0 sudo ip link set dev tap0 up promisc on #sudo sysctl -w net.ipv4.ip_forward=1

emulator -avd Pixel_3a_API_30_x86 -netfast -accel auto -qemu -device virtio-net,netdev=net0,mac=52:55:00:d1:55:51 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no

adb root

@DKrepsky
DKrepsky / Android Studio Link Capacitor.md
Created August 4, 2020 12:06
Set android studio link for Capacitor
@DKrepsky
DKrepsky / Fix Vue webpack dev server net::ERR_CONNECTION_REFUSED
Created February 1, 2020 18:37
Fix Vue webpack dev server net::ERR_CONNECTION_REFUSED
Install IP package:
```
npm install ip --save-dev
```
Add dev server config to vue.config.js
```js
module.exports = {
publicPath: '',
devServer :{
@DKrepsky
DKrepsky / Open in code context menu nemo
Created December 15, 2019 13:57
Open in code context menu nemo
copy file to ~/.local/share/nemo/actions/
@DKrepsky
DKrepsky / Fix perl error: missing locale for ssh connections
Last active December 15, 2019 13:50
Fix perl error: missing locale for ssh connections
Comment line ```SendEnv LANG LC_*``` on file /etc/ssh/ssh_config on client side.
@DKrepsky
DKrepsky / Kicad project relative path
Created July 13, 2017 14:12
Add project relative path into kicad
To add paths relative to the project folder use the environment variable ${KIPRJMOD}.
Example: ${KIPRJMOD}/3d/resistor_model.wrl
@DKrepsky
DKrepsky / STM32 windows install
Created July 12, 2017 11:14
STM32F UNDER WINDOWS WITH ECLIPSE AND GCC
1- Install the latest Java JDK (http://www.oracle.com/technetwork/pt/java/javase/downloads/index.html);
2- Download and install Eclipse CDT Neon 3:
2.1- Go to http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon3 and download Eclipse Neon 3;
2.2- Extract the .zip archive to the installation directory;
2.3- Double click eclipse.exe;
2.4- Check for update by clicking in Help > Check for updates, do any pending updates and restart eclipse;
2.5- Go to Help > Install New Software and click in the Add button;
2.6- Type GNU MCU ECLIPSE in the name field and http://gnu-mcu-eclipse.netlify.com/v4-neon-updates/ as the Location, then click Ok;
2.7- Install the GNU MCU pluggin;
@DKrepsky
DKrepsky / Qt Heap and Stack size GCC
Last active August 22, 2017 22:23
Change stack and heap size in Qt with gcc
Put this in .pro
QMAKE_CXXFLAGS += -Wl,--stack,100000000
QMAKE_CXXFLAGS += -Wl,--heap,100000000
@DKrepsky
DKrepsky / cc3200-ubuntu.txt
Last active July 1, 2023 20:20
CC3200 Launchpad Ubuntu Install
#Install instructions to work with the CC3200 uC under Ubuntu 14.10.
## Adding the drivers to enable debug and the serial port:
1- Install OpenOCD: "sudo apt-get install openocd".
2- Create a UDEV rule to be able to debug.
a- Create a new file in /opt/udev/rules.d named 99-ticc3200.rules.
b- Open the file with a editor.
c- Add the following text:
@DKrepsky
DKrepsky / Qt-Armadillo-Ubuntu
Last active April 19, 2017 20:01
Armadillo with lapack and blas on Qt (Ubuntu 14.10)
When trying to use armadillo with Qt in ubuntu, follow this steps:
1- Open synaptic.
2- Search for libarmadillo4 and libarmadillo-dev, if they are installed, mark for uninstall, apply.
3- Search for libblas3 and liblapack3 and mark both libs to reinstall (this will remove a version problem with armadillo), apply.
4- Mark for install liblapack-dev and libblas-dev, apply.