Skip to content

Instantly share code, notes, and snippets.

using Mahna.Infrastructure.Services.Persistance;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Mahna.Oms.Services.Models
{
public class AddressBookEntry: Mahna.Infrastructure.Services.Persistance.DataObject<int>
{
[Service]
Type=simple
User=meghdad
Group=audio
ExecStart=/usr/bin/sh /etc/startpianoteq.sh
[Unit]
Description=Pianoteq using a preset
After=sysinit.target
@no149
no149 / promise.js
Last active December 20, 2020 08:24
async function storeUrlStatus(url, feature, safe, on) {
if (!url)
return;
if (url != 'default')
url = url.substring(0, url.length - 1);
console.trace('storing new status for url=' + url);
getUrlStatuses().then(statuses => {
console.log((statuses.has(url) ? 'has ' : 'no') + 'statuses for url=' + url);
@no149
no149 / gist:cccb4ed1075149b2027cb0615bb5b912
Created February 27, 2020 11:18
output of running a Password Protect Master file using Wine
009:err:ole:CoGetClassObject class {5569e7f5-424b-4b93-89ca-79d17924689a} not registered
0009:err:ole:CoGetClassObject no class object {5569e7f5-424b-4b93-89ca-79d17924689a} could be created for context 0x1
0009:err:ole:COMPOBJ_DllList_Add couldn't load in-process dll L"C:\\windows\\system32\\wmp.dll"
0009:err:ole:CoGetClassObject no class object {6bf52a52-394a-11d3-b153-00c04f79faa6} could be created for context 0x1
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="InfoBar" parent="GtkInfoBar">
<property name="show_close_button">True</property>
<property name="message_type">GTK_MESSAGE_ERROR</property>
<child>
<object class="GtkLabel">
</object>
</child>
@Gtk.Template(resource_path="/org/gnome/Music/ui/InfoBar.ui")
class InfoBar(Gtk.InfoBar):
"""Display messages and errors in the info bar.
Messages come in two parts: a high-level summary, and a detailed
description.
"""
__gtype_name__ = "InfoBar"
def __init__(self, vbox):
git status
HEAD detached at upstream/master
Untracked files:
(use "git add <file>..." to include in what will be committed)
.flatpak-builder/
.vscode/
build.sh
data/ui/InfoBar.ui
sandbox/
Bootchart for Ubuntu-Desktop - Thu, 13 Jun 2019 16:11:41 +0430
System: Linux 4.18.0-21-generic #22-Ubuntu SMP Wed May 15 13:13:21 UTC 2019 x86_64
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5400+
Boot options: BOOT_IMAGE=/boot/vmlinuz-4.18.0-21-generic root=UUID=6de8151b-019b-480a-8b97-6c66795848a7 ro quiet splash vt.handoff=1
Build: Ubuntu 18.10
Log start time: 219.804s
Idle time: Not detected
Graph data: 25.000 samples/sec, recorded 500 total, dropped 0 samples, 712 processes, 59 filtered
Top CPU consumers:
104149.6ms - [2040]
@no149
no149 / gist:f9364b299685db3c5257f8fcad0b13bb
Created June 13, 2019 11:03
systemctl --user status tracker-store.service
tracker-store.service - Tracker metadata database store and lookup manager
Loaded: loaded (/usr/lib/systemd/user/tracker-store.service; static; vendor p
Active: active (running) since Thu 2019-06-13 15:28:23 +0430; 4min 42s ago
Main PID: 11406 (tracker-store)
CGroup: /user.slice/user-1000.slice/user@1000.service/tracker-store.service
└─11406 /usr/lib/tracker/tracker-store
Jun 13 15:28:23 Ubuntu-Desktop systemd[10953]: Starting Tracker metadata databas
Jun 13 15:28:23 Ubuntu-Desktop systemd[10953]: Started Tracker metadata database
State: running
Jobs: 0 queued
Failed: 0 units
Since: Thu 2019-06-13 15:28:16 +0430; 16s ago
CGroup: /user.slice/user-1000.slice/user@1000.service
├─gvfs-goa-volume-monitor.service
│ └─11284 /usr/lib/gvfs/gvfs-goa-volume-monitor
├─xdg-permission-store.service
│ └─11207 /usr/lib/xdg-desktop-portal/xdg-permission-store
├─tracker-store.service