Skip to content

Instantly share code, notes, and snippets.

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

Edward Facundo toymak3r

🏠
Working from home
View GitHub Profile
@toymak3r
toymak3r / CMakeLists.txt
Created August 28, 2019 23:09
Relative Link Path to Binary With CMake
set_target_properties(NAME_OF_TARGET PROPERTIES LINK_FLAGS "-Wl,-rpath,./libs")
@toymak3r
toymak3r / binary_gap.py
Created December 29, 2019 03:11
Binary Gap in Python
def binary_gap(N):
return len(max(format(N, 'b').strip('0').split('1')))
@toymak3r
toymak3r / amd_activate.sh
Created May 2, 2020 16:51
Use AMD Radeon on linux with some app
#!/bin/bash
xrandr --setprovideroffloadsink 1 0
DRI_PRIME=1 $1
@toymak3r
toymak3r / AdbCommands
Created February 10, 2021 22:45 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader