Skip to content

Instantly share code, notes, and snippets.

View bascht's full-sized avatar
📢
Setting all the statuses.

Sebastian Schulze bascht

📢
Setting all the statuses.
View GitHub Profile
#!/usr/bin/env ruby
puts "Ohai, I am #{Process.pid()} and hungry for input!"
puts "Got: #{$stdin.read}"
Traceback (most recent call last):
File "/tmp/.mount_60kX8w/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 666, in _seekRelativeCb
self.seekRelative(time_delta)
File "/tmp/.mount_60kX8w/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 458, in seekRelative
self.simple_seek(self.getPosition() + time_delta)
File "/tmp/.mount_60kX8w/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 336, in getPosition
raise PipelineError("Position not available")
pitivi.utils.pipeline.PipelineError: Position not available
ERROR 14:30:41 pipeline pitivi+utils+pipeline+pipeline2 _asyncDoneNotReceivedCb: we didn't get async done, this is a bug (usr/lib/pitivi/python/pitivi/utils/pipeline.py:408)
ERROR 14:30:41 pipeline pitivi+utils+pipeline+pipeline2 _recover: Pipeline error detected during playback, resetting -- num tries: 0 (usr/lib/pitivi/python/pitivi/utils/pipeline.py:558)
./pitivi-0.94-x86_64-2015-11-02_0159
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
Missing soft dependency:
- pycanberra not found on the system
-> enables sound notifications when rendering is complete
Missing soft dependency:
- GnomeDesktop not found on the system
-> file thumbnails provided by GNOME's thumbnailers
Missing soft dependency:
- Notify not found on the system
$ dnf info VirtualBox-5.0
Last metadata expiration check performed 0:01:01 ago on Fri Aug 21 11:03:57 2015.
Available Packages
Name : VirtualBox-5.0
Arch : x86_64
Epoch : 0
Version : 5.0.2_102096_fedora22
Release : 1
Size : 67 M
Repo : virtualbox
@bascht
bascht / 1.pp
Created July 2, 2015 14:27
if -> ensure
if $ensure == 'present' {
user { $name:
ensure => present
}
} else {
user { $name:
ensure => absent
}
}
#!/usr/bin/env ruby
require 'openssl'
require 'net/http'
http = Net::HTTP.new('www.example.org', 443)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
two_weeks_from_now = Time.now + (2*7*24*60*60)
#0 zval_scan_black (pz=0x1f0c93800) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:294
#1 0x00000000005d9f9c in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:326
#2 0x00000000005d9fee in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:301
#3 0x00000000005d9f9c in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:326
#4 0x00000000005d9fee in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:301
#5 0x00000000005d9fee in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:301
#6 0x00000000005d9f9c in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:326
#7 0x00000000005d9f9c in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:326
#8 0x00000000005d9f9c in zval_scan_black (pz=<value optimized out>) at /usr/src/debug/php-5.6.8/Zend/zend_gc.c:326
#9 0x000000
@bascht
bascht / scopes.pp
Created May 8, 2015 10:13
Scopes & co
class a {
$foo = "value"
}
class b {
include a
$foo = "So. Und nun?"
}
<!doctype html>
<!--
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@bascht
bascht / geht.rb
Last active August 29, 2015 14:20
[3] pry(main)> def foo(bar, baz=bar); baz; end
=> :foo
[4] pry(main)> foo("oha")
=> "oha"