Skip to content

Instantly share code, notes, and snippets.

@sleetdrop
sleetdrop / gist:849b0a6c82e859221a914b681ee375b5
Created January 10, 2023 05:34
sbopkg sqg doesn't work
# sqg -p iperf3
Setting system wide configuration in /etc/sbopkg/sbopkg.conf
Computers / CPU cores / Max jobs to run
1:local / 4 / 1
Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
ETA: 0s Left: 1 AVG: 0.00s local:1/0/100%/0.0s Processing iperf3.
ETA: 0s Left: 0 AVG: 0.00s local:0/1/100%/0.0s
Done.
#!/usr/bin/expect -f
trap {
set rows [stty rows]
set cols [stty columns]
stty rows $rows columns $cols < $spawn_out(slave,name)
} WINCH
@sleetdrop
sleetdrop / i.php
Created March 17, 2017 06:18
impl
<?php
Interface B {
public function test_method();
}
abstract class A implements B {
abstract function test_method();
}
class C extends A {
@sleetdrop
sleetdrop / gist:91abba050c67227e1383
Created March 29, 2016 12:53
Systemtap doesn't work on openSUSE Leap 42.1
$ stap hello-world.stp
In file included from /usr/share/systemtap/runtime/linux/task_finder.c:17:0,
from /usr/share/systemtap/runtime/linux/runtime.h:206,
from /usr/share/systemtap/runtime/runtime.h:24,
from /tmp/stap1gVtFg/stap_52253a0e90ec6a4596e231333a862028_891_src.c:24:
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_call_mmap_callbacks_with_addr’:
/usr/share/systemtap/runtime/linux/task_finder2.c:695:24: error: ‘struct file’ has no member named ‘f_dentry’
dentry = vma->vm_file->f_dentry;
^
/usr/share/systemtap/runtime/linux/task_finder2.c: In function ‘__stp_call_mmap_callbacks_for_task’:
gem install htty
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNRESET: Connection reset by peer - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://api.rubygems.org/quick/Marshal.4.8/htty-1.5.5.gemspec.rz)
@sleetdrop
sleetdrop / gist:b55fe2bbe9b864300c98
Created August 19, 2015 11:18
vagrant up saltstack
* ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
Usage : bootstrap-salt.sh [options] <install-type> <install-type-args>
Installation types:
- stable (default)
- stable [version] (ubuntu specific)
- daily (ubuntu specific)
- testing (redhat specific)
- git
@sleetdrop
sleetdrop / gist:10490744
Created April 11, 2014 18:36
brew doctor
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
folly
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install libmpdclient php54
@sleetdrop
sleetdrop / brewphp
Last active August 29, 2015 13:59
Output of brew install -v php54 --with-fpm --with-phpdbg
==> Downloading http://www.php.net/get/php-5.4.27.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.27
==> Verifying php54-5.4.27 checksum
tar xf /Library/Caches/Homebrew/php54-5.4.27
==> Downloading https://github.com/krakjoe/phpdbg/archive/v0.3.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/php54--phpdbg-0.3.2.tar.gz
==> Verifying php54--phpdbg-0.3.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/php54--phpdbg-0.3.2.tar.gz
==> ./buildconf --force
Forcing buildconf
loop do
begin
bot.start
rescue Exception => e
bot.quit
bot.stop
end
sleep 1
end