Skip to content

Instantly share code, notes, and snippets.

function enable() {
aggregateMenu = Main.panel.statusArea.aggregateMenu;
if (aggregateMenu.hasOwnProperty('_volume') && aggregateMenu._volume instanceof PanelMenu.SystemIndicator) {
volumeIndicator = aggregateMenu._volume;
_onVolumeIndicatorScrollEventId = volumeIndicator.indicators.connect('scroll-event', _onVolumeIndicatorScroll);
_onVolumeIndicatorClickEventId = volumeIndicator.indicators.connect('button-press-event', _onVolumeIndicatorClick);
_onAggregateMenuEnterEventId = aggregateMenu.menu.actor.connect('enter-event', _onAggregateMenuEnter);
_onAggregateMenuLeaveEventId = aggregateMenu.menu.actor.connect('leave-event', _onAggregateMenuLeave);
_onAggregateMenuClickEventId = aggregateMenu.actor.connect('button-press-event', _onAggregateMenuClick);
Search results for i shot the sheriff [1/25>
> Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 3497, in preload
stream = get_streams(song)
File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 345, in get_streams
# Released under a cc-0 license
# https://creativecommons.org/share-your-work/public-domain/cc0/
I looked outside the window and saw the basil.
He sat on the floor drinking his coffee.
It was early morning when he woke up.
They heard the people walking on the street.
It wasn't clear to him how to spend his morning time.
We were awaiting the guitar player to begin the concert.
The coffee had a very strong taste.
# /etc/lightdm/lightdm.conf.d/50-myconfig.conf
[SeatDefaults]
greeter-session=unity-greeter
[greeter]
background = /home/orschiro/Wallpapers/zen.jpg
orschiro@x230:~$ wmctrl -lp
0x03e00002 0 1871 x230 XdndCollectionWindowImp
0x03e00005 0 1871 x230 unity-launcher
0x03e00008 0 1871 x230 unity-panel
0x03e0000b 0 1871 x230 unity-dash
0x03e0000c 0 1871 x230 Hud
0x06400002 0 9596 x230 unity - How can I identify an empty window? - Ask Ubuntu - Google Chrome
0x0680000a 0 12137 x230 orschiro@x230: ~
[Desktop Entry]
NotShowIn=Unity;
Name=Files
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --no-desktop --new-window %U
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
@orschiro
orschiro / snapcraft.yaml
Last active July 5, 2016 19:37
Snap Package Source File Vokoscreen 2.5.0
name: vokoscreen
version: "2.5.0"
summary: Vokoscreen Screencast
description: Snap package for Vokoscreen Screencast Software
https://gist.github.com/orschiro/489710764173788d07c00b5a84ddaafe
Currently, you have to manually replace all instances of
lrelease-qt5 with lrelease in parts/vokoscreen/src/vokoscreen.pro
confinement: strict
apps:
@orschiro
orschiro / notification-mute.sh
Last active November 29, 2021 05:04
Temporarily mute Ubuntu's notification for undisturbed work
#!/bin/bash
echo "Temporarily muting notifications until aborted..."
killall -s SIGSTOP notify-osd
keepgoing=1
trap '{ echo "sigint"; keepgoing=0; }' SIGINT
while (( keepgoing )); do
sleep 5
done
@orschiro
orschiro / publish-content-commons.md
Created March 28, 2016 06:46
Publishing content to the Commons

Publishing content to the Commons

I have finally found a good working way for me to publish all my creative content to the Commons.

  • For videos I use YouTube and their Creative Commons option
  • For entire photo albums I use Flickr
  • For single photos I use Wikimedia Commons
  • For audio files I use the Internet Archive
  • For text like this I use Github Gist
@orschiro
orschiro / 0_reuse_code.js
Created March 28, 2016 06:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console