Skip to content

Instantly share code, notes, and snippets.

View oviniciusfeitosa's full-sized avatar
🧛

Vinícius Feitosa da Silva oviniciusfeitosa

🧛
View GitHub Profile
@oviniciusfeitosa
oviniciusfeitosa / Solution.md
Last active September 21, 2016 19:46
Angular2 + meteor | Solving the "Expected one of: <body>, <head>, <template>" error

If you got the error below while doing the this tutorial since Step 1, follow the steps below.

client/app.component.html:1: Expected one of: <body>, <head>, <template>

During the explanation of tutorial, is not clear enough how we fill all files. So you can do 2 alternatives:

  • Do the tutorial from begining, acessing all links markeds
  • OR JUST DOWNLOAD THE FILES FROM TUTOTORIAL HERE, and continue the tuto!
@oviniciusfeitosa
oviniciusfeitosa / Readme.md
Created September 22, 2016 18:19
[ Docker ] Open new bash terminal instance in container shell

Just run the command below and have fun!

docker exec -it ff /bin/bash
Works to me, when i uninstall the app "Mi fit" and after "Mi band control".
Now, enter in you apps configuration, unpair and clear bluetooth cache.
Restart the phone.
Install "Mi fit" again.
Log in, and pair the mi band 2 with your device!
Enjoy!
Vinícius Feitosa da Silva
----
@oviniciusfeitosa
oviniciusfeitosa / Readme.md
Created October 13, 2016 03:09
Send mouse events to Windows VMWare Virtual Machines

#Send mouse events to Windows VMWare Virtual Machines

Not quite. What's going on is that, in order to improve user experience and graphical responsiveness of the mouse cursor, we actually map the guest mouse cursor onto the host, so the cursor that you see is being drawn by your host operating system; in effect it's "offloaded" from the guest. A similar trick is used by e.g. Microsoft Terminal Services/Remote Desktop Connection, for the same reasons.

In order for SetCursorPos() or Mouse_Event() to behave the way you would expect, you can disable the absolute mouse and host cursor offload, by adding the following to the VM's .vmx file and rebooting:

vmmouse.present = FALSE

You may notice that the mouse in your guest won't feel as smooth as before.

@oviniciusfeitosa
oviniciusfeitosa / Docker.md
Created November 16, 2016 23:58
Installing Docker on Windows 10
  1. Install Container Feature

The container feature needs to be enabled before working with Windows containers. To do so run the following command in an elevated PowerShell session.

If you recieve an error saying Enable-WindowsOptionalFeature does not exist, double check that you are running PowerShell as Administrator.

Enable-WindowsOptionalFeature -Online -FeatureName containers -All Because Windows 10 only supports Hyper-V containers, the Hyper-V feature must also be enabled. To enable the Hyper-V feature using PowerShell, run the following command in an elevated PowerShell session.

@oviniciusfeitosa
oviniciusfeitosa / Readme.md
Created December 26, 2016 11:46
Open blocked partition from windows on linux

Open blocked partition from windows on linux

Execute the command below:

ntfsfix /dev/sdb1 (apenas troque sdb1 pelo seu device)
sudo apt-get autoclean
sudo apt-get clean
sudo dpkg-reconfigure --all
sudo dpkg --configure -a
* * > sudo dpkg -r pacote:plataforma
apt-get autoremove -f
@oviniciusfeitosa
oviniciusfeitosa / Solving problem using brew or nvm to install node
Created March 12, 2017 06:28
Solving problem using brew or nvm to install node
http://stackoverflow.com/questions/34718528/nvm-is-not-compatible-with-the-npm-config-prefix-option
https://plugins.jetbrains.com/plugin/7251-dynamicreturntypeplugin