Skip to content

Instantly share code, notes, and snippets.

View guilhermgonzaga's full-sized avatar

Guilherme Gonzaga guilhermgonzaga

  • Brazil
  • 21:34 (UTC -04:00)
View GitHub Profile
@guilhermgonzaga
guilhermgonzaga / macrodroid-adb.ps1
Created January 13, 2021 19:41
Enable extra permissions for Macrodroid through the ADB shell. You should only try this at your own risk and if you know your way around console tools.
<# You need to enable developer options and usb debugging on your phone.
- Unblock the developpers menu on your smartphone;
- Enable USB debugging;
- Plug-in usb cable while your phone is running;
- Open a console on the folder extracted with ADB tool;
- Type `adb devices` and check what it says;
- If you see "device - not authorizated", look at your phone, maybe you need to confirm access;
- After confirming, type `adb devices` once more;
- If you see a code and "device", you are ready to run this.
#>
@guilhermgonzaga
guilhermgonzaga / texstudio-dracula.txsprofile
Last active December 8, 2020 22:35
Dark themes for TeXstudio.
[General]
IniMode=true
[version]
written_by_TXS_version=3.0.1
written_by_TXS_hg_revision=3.0.1
written_by_Qt_version=330753
created_by_TXS_version=3.0.1
created_by_TXS_hg_revision=3.0.1
created_by_Qt_version=330753
@guilhermgonzaga
guilhermgonzaga / monokaist.py
Last active September 21, 2020 17:14
Color Scheme definition of the Sublime Text version of Monokai for use with Pygments. Mainly focused on C++ syntax highlighting.
""" pygments.styles.monokaist
Closely mimic the Sublime Text version of Monokai color scheme.
Made with the C++ syntax in mind, so YMMV.
Check out https://pygments.org/docs/styles/#creating-own-styles
for instructions on how to use.
"""
from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, Text, \
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
@guilhermgonzaga
guilhermgonzaga / .clang-format
Last active March 20, 2022 15:00
Simple, reasonable, and flexible Clang-Format configuration for C/C++ code. To be extended...
BasedOnStyle: Chromium
---
Language: Cpp
AccessModifierOffset: -2 # Negative of TabWidth
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: false
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Empty
BinPackArguments: true