Skip to content

Instantly share code, notes, and snippets.

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

Danilo Verde oVerde

🏠
Working from home
View GitHub Profile
@oVerde
oVerde / tgTABLETMODE.sh
Last active January 19, 2024 18:53
In Linux devices running GNOME toggles the keyboard and touchpad on and off for a proper tablet mode.
View tgTABLETMODE.sh
#!/bin/sh
# toggle tablet mode script
#
# Toggles the keyboard and touchpad on and off for tablet mode on many devices
# PLEASE ENSURE THAT YOU ARE USING GNOME OR RUNNING SOME ONBOARD KEYBOARD APP BEFORE RUNNING THIS SCRIPT.
# This toggler a system variable named TABLET_MODE, OFF and then turns it ON
# Depends on `notify-send` and `xinput`
# if you dont have any: `brew install libnotify xinput`
# Must run using `source ./tgTABLETMODE.sh`
# would appreciate if anyone could turn this in a GNOME Plugin
@oVerde
oVerde / memcache.clj
Created May 9, 2019 20:48
Google AppEngine Memcache Example in Clojure
View memcache.clj
(:import (com.google.appengine.api.memcache MemcacheService MemcacheServiceFactory))
(def ^MemcacheService syncCache (MemcacheServiceFactory/getMemcacheService))
(.put syncCache "listUserChannels5648348291792896" {:csid ""
:unread 7})
(log/info (.contains syncCache "key"))
(log/info (class (.get syncCache "listUserChannels5648348291792896")))
(log/info (.get syncCache "listUserChannels5648348291792896"))