Skip to content

Instantly share code, notes, and snippets.

@orschiro
orschiro / README.md
Last active April 21, 2018 07:49
Podcasts
# 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.
@orschiro
orschiro / fedora_flatpak_update.sh
Created April 11, 2018 07:17
Check for Fedora & Flatpak updates on boot
#/bin/sh
echo "Ready to check for Fedora updates?"
select yn in "Yes" "No"; do
case $yn in
Yes ) sudo dnf upgrade --refresh --best --allowerasing; break;;
No ) exit;;
esac
done
@orschiro
orschiro / decrease-brightness.desktop
Created March 2, 2018 11:22
Recipe to change brightness on GNOME
# ~/.local/share/applications/decrease-brightness.desktop
[Desktop Entry]
Version=1.1
Type=Application
Name=Decrease brightness
Icon=~/.icons/decrease-brightness.png
Exec=gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepDown
Actions=
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
@orschiro
orschiro / CopyQ - Snippets.ini
Created September 25, 2015 06:37 — forked from hluk/CopyQ - Snippets.ini
CopyQ - Dialog for Pasting Snippets
[Command]
Command="
copyq:
var snippetsTabName = 'Snippets'
function newVarRe(content) {
return new RegExp('\\\\${' + content + '}', 'g')
}
function getText(item) {
# /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