Skip to content

Instantly share code, notes, and snippets.

View halibegic's full-sized avatar
🎯
Focusing

Hasan Alibegić halibegic

🎯
Focusing
View GitHub Profile
@halibegic
halibegic / install-cursor-sh
Created July 22, 2025 07:07 — forked from tatosjb/install-cursor-sh
install-cursor.sh
#!/bin/bash
# To install on ubuntu
# curl -fsSL https://gist.github.com/tatosjb/0ca8551406499d52d449936964e9c1d6/raw/28459ee07900ef76081c9e276cd94d707bed73a9/install-cursor-sh | bash
installCursor() {
if ! [ -f /opt/cursor.appimage ]; then
echo "Installing Cursor AI IDE..."
mkdir -p "$HOME/Applications/cursor"
# URLs for Cursor AppImage and Icon
@halibegic
halibegic / [Android] Enable DEBUG mode in HUAWEI phone
Created November 14, 2017 14:46 — forked from shallowlong/[Android] Enable DEBUG mode in HUAWEI phone
How to enable the "DEBUG" level log in a HUAWEI android phone (not checking the different kinds of HUAWEI phones, but should be okay to use). The problem here is that in the LogCat, the debug level logs cannot be viewed when using a HUAWEI android phone. There are several steps to activate the DEBUG level log inside a HUAWEI phone. This knowledg…
dial *#*#2846579#*#*
select 'ProjectMenu'
select 'Background Setting'
select 'Log Setting'
select 'Log Switch'
enable 'LOG on'
Select 'Log level setting'
enable 'DEBUG'
Press the 'Back' key
select 'Dump and Log'