Skip to content

Instantly share code, notes, and snippets.

View milohr's full-sized avatar
💭
I may be slow to respond.

Camilo Higuita milohr

💭
I may be slow to respond.
View GitHub Profile
@milohr
milohr / gist:ac2a0f6c84fc9690f90555b08cd92c71
Created March 17, 2023 14:42 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@milohr
milohr / maui-appimages.sh
Last active July 23, 2019 04:45
script for quickly creating maui appimages
#!/bin/bash
sudo apt-get install ecm qtbase5-dev build-essential git gcc g++ qtdeclarative5-dev qml-module-qtquick-controls libqt5svg5-dev qtmultimedia5-dev automake cmake qtquickcontrols2-5-dev libkf5config-dev libkf5service-dev libkf5notifications-dev libkf5kiocore5 libkf5kio-dev qml-module-qtwebengine gettext extra-cmake-modules libkf5wallet-dev qtbase5-private-dev qtwebengine5-dev libkf5wallet-dev qt5-default qt5-default libqt5websockets5-dev libtag1-dev libkf5people-dev libkf5contacts-dev
[ ! -d "kirigami" ] && git clone git://anongit.kde.org/kirigami && [ -d "kirigami" ] && git pull origin master
pushd ./kirigami && [ ! -d "build" ] && mkdir build
cd ./build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
sudo make install
popd
@milohr
milohr / union.java
Created May 12, 2019 17:38
contacts fetching
public void fetchContacts()
{
ContentResolver cr = this.c.getContentResolver();
final String RAW_CONTACT_SELECTION = ContactsContract.RawContacts.DELETED + " = 0 ";
Cursor mainCursor = cr.query(ContactsContract.RawContacts.CONTENT_URI, null, RAW_CONTACT_SELECTION, null, null);
if (mainCursor != null)
{
while (mainCursor.moveToNext())
{
@milohr
milohr / remount.sh
Created October 19, 2017 13:46 — forked from ertseyhan/remount.sh
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."