Skip to content

Instantly share code, notes, and snippets.

@lduboeuf
lduboeuf / gist:6c4b1177d0984297ed6818c2521f78b8
Last active February 6, 2024 10:18
Test UT push notif
monitor Notifs:
dbus-monitor interface=org.freedesktop.Notifications
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
Avec son:
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"sound\": \"test.ogg\",\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
@fredldotme
fredldotme / mount-pstore.sh
Created October 6, 2020 22:44
Mount encrypted pstore on Ubuntu Touch (sargo/bonito)
#!/vendor/bin/sh
# Decrypt the keys and write them to the kernel
LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/android/system/lib64/vndk-28 /vendor/bin/ramoops -D
# Pivot (and decrypt)
echo 1 > /sys/devices/virtual/ramoops/pstore/use_alt
# Trigger remount of pstore regardless of decryption state
# setprop vendor.ramoops.decrypted true
@alex-spataru
alex-spataru / A QML Material Drawer.md
Last active August 20, 2023 07:12
Implementation of a simple and clean Material drawer for your QtQuick/QML applications

Description

This gist allows you to implement a material drawer easily for your projects. It consists of three files:

  • PageDrawer.qml The drawer itself, with an icon viewer, a list view and some hacks to execute the actions/functions assigned to each drawer item
  • DrawerItem.qml Which can act as an action, a spacer, a separator or a link
  • SvgImage.qml Ugly hack to make SVG images look crisp and smooth on HDPI screens

Licence

This code is released under the WTFPL, for more information click here.

@tcarrondo
tcarrondo / syncevolution_generic_caldav.sh
Last active July 30, 2020 08:28
Script simples para sincronizar um caledário caldav com o Ubuntu Touch. Adiciona a configuração do calendário de forma independente e adiciona uma tarefa automática para que ele sincronize periodicamente.
#!/bin/bash
# Simplified by me, Tiago Carrondo <tcarrondo@ubuntu.com>
# Thanks to: Romain Fluttaz <romain@botux.fr>
# Thanks to: Wayne Ward <info@wayneward.co.uk>
# Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au>
# --------------- [ Server ] ---------------- #
CAL_URL=" " # add the caldav URL here
USERNAME=" " # you know this one
PASSWORD=" " # lots of ******
@boTux
boTux / ubuntu-touch_owncloud-sync_contact-calendar.sh
Last active June 7, 2019 10:17
[Ubuntu-Phone] Owncloud Contact & Calendar Sync - Carddav & Caldav via syncevolution.
#!/bin/bash
# ---------------------------------------------------------------------------
# Ubuntu Phone - Sync Owncloud Contacts & Calendar Account
# Carddav & Caldav.
# Tested on : Ubuntu-touch vivid - ubuntu-touch/rc-proposed/bq-aquaris.en/vegetahd/
# Last edit : 2015/10/07.
# Author : Romain Fluttaz, boTux.fr, <romain@botux.fr>
# ============= [ Configuration ] ============= #