Skip to content

Instantly share code, notes, and snippets.

View RafaelPlantard's full-sized avatar
🏠
Working from home

Rafael da Silva Ferreira RafaelPlantard

🏠
Working from home
View GitHub Profile
#include <stdio.h>
/*
int* lhs: ponteiro de int
int* rhs: pointeiro de int
*/
void swap(int* lhs, int* rhs) {
// primeiramente a função armazena o valor que está contido no ponteiro do primeiro argumento (lhs)
// isso permite que possamos alterar o valor contido pelo ponteiro *lhs sem perder o valor original que estava em *lhs.
int aux = *lhs;
@RafaelPlantard
RafaelPlantard / TeamViewer.sh
Last active January 27, 2019 00:24
Disable Team Viewer's dock menu icon
sudo killall TeamViewer_Service
sudo killall TeamViewer
sudo killall TeamViewer_Desktop
sudo /usr/libexec/PlistBuddy -c "Add :LSUIElement string 1" /Applications/TeamViewer.app/Contents/Info.plist
sudo codesign -f -s /Applications/TeamViewer.app
sudo launchctl unload /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist
sudo launchctl load /Library/LaunchDaemons/com.teamviewer.teamviewer_service.plist