Skip to content

Instantly share code, notes, and snippets.

💭
http://orschi.ro

Or Schiro orschiro

💭
http://orschi.ro
Block or report user

Report or block orschiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.md

Test

Test to embed this gist on Medium and Wordpress.com

@orschiro
orschiro / 0_reuse_code.js
Created Mar 28, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@orschiro
orschiro / publish-content-commons.md
Created Mar 28, 2016
Publishing content to the Commons
View publish-content-commons.md

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 / notification-mute.sh
Last active Apr 23, 2016
Temporarily mute Ubuntu's notification for undisturbed work
View notification-mute.sh
#!/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 / snapcraft.yaml
Last active Jul 5, 2016
Snap Package Source File Vokoscreen 2.5.0
View snapcraft.yaml
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:
View gist:b853483947cdecf9c831b1df9daaeee8
[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
View gist:80b66425456f7a135685845941145427
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: ~
View 50-myconfig.conf
# /etc/lightdm/lightdm.conf.d/50-myconfig.conf
[SeatDefaults]
greeter-session=unity-greeter
[greeter]
background = /home/orschiro/Wallpapers/zen.jpg
View mozilla voice short sentences.txt
# 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.
View gist:be6b4d61498b48e171240a40da3695b4
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
You can’t perform that action at this time.