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
@bascht
bascht / composer.log
Created July 12, 2017 09:46
Composer Weirdness
$ composer dump-autoload -o
Generating optimized autoload files
Warning: Ambiguous class resolution, "Some\Class" was found in both "vendor/some/File.php" and "vendor/some/OtherFile.php", the first will be used.
$ echo $?
0
stack: 'TypeError: Cannot read property \'maybeTickleMS\' of undefined
at objectAndParentGivenPath (/usr/lib/slack/resources/app.asar/node_modules/electron-remote/lib/execute-js-func.js:478:15)
at /usr/lib/slack/resources/app.asar/node_modules/electron-remote/lib/execute-js-func.js:26:33
at Generator.next (<anonymous>)
at step (/usr/lib/slack/resources/app.asar/node_modules/electron-remote/lib/execute-js-func.js:100:191)
at /usr/lib/slack/resources/app.asar/node_modules/electron-remote/lib/execute-js-func.js:100:437
at Promise.cancellationExecute [as _execute] (eval at D.exports (https://a.slack-edge.com/bv1-1/emoji.1ededa120e6a9042a904.min.js:1:109), <anonymous>:857:9)
at Promise._resolveFromExecutor (eval at D.exports (https://a.slack-edge.com/bv1-1/emoji.1ededa120e6a9042a904.min.js:1:109), <anonymous>:3013:18)
at new Promise (eval at D.exports (https://a.slack-edge.com/bv1-1/emoji.1ededa120e6a9042a904.min.js:1:109), <anonymous>:2629:14)
at /usr/lib/slack/resources/app.as
@bascht
bascht / klebeband.js
Created March 27, 2017 08:47
Fixing sound output with Jenkins and simple-build-monitor plugin
// Klebeband. Wir brauchen mehr Klebeband!
// See https://github.com/jenkinsci/sounds-plugin/pull/5#issuecomment-288331914
// and https://github.com/jan-molak/jenkins-build-monitor-plugin/issues/159
if (typeof(Ajax) == 'undefined') {
var Ajax = { Request: function() { } };
function myFixedSoundFactory(onSuccess, onFailure) {
return function() {
var request = new XMLHttpRequest();
request.open('GET', '/sounds/getSounds', true);
html{font-size:12px}*{box-sizing:border-box;text-rendering:geometricPrecision}body{font-size:1rem;line-height:1.5rem;margin:0;font-family:Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}fieldset{border:none;padding:0;margin:0}pre{padding:2rem;margin:1.75rem 0;background-color:#fff;border:1px solid #ccc;overflow:auto}code[class*=language-],pre[class*=language-],pre code{font-weight:100;text-shadow:none;margin:1.75rem 0}a{cursor:pointer;color:#ff2e88;text-decoration:none;border-bottom:1px solid #ff2e88}a:hover{background-color:#ff2e88;color:#fff}body::-webkit-scrollbar{background-color:transparent;width:12px}body::-webkit-scrollbar-thumb{border-radius:0;background-color:#ccc}body::-webkit-scrollbar-thumb:hover{background-color:#b1b1b1}body.dark::-webkit-scrollbar-thumb{border-radius:0;background-color:rgba(95,95,95,.78)}body.dark::-webkit-scrollbar-thumb:hover{background-color:#525252}.grid{display:-ms-flexbox;display:flex}.grid.\-top{-ms-flex-al
html{font-size:12px}*{box-sizing:border-box;text-rendering:geometricPrecision}body{font-size:1rem;line-height:1.5rem;margin:0;font-family:Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}fieldset{border:none;padding:0;margin:0}pre{padding:2rem;margin:1.75rem 0;background-color:#fff;border:1px solid #ccc;overflow:auto}code[class*=language-],pre[class*=language-],pre code{font-weight:100;text-shadow:none;margin:1.75rem 0}a{cursor:pointer;color:#ff2e88;text-decoration:none;border-bottom:1px solid #ff2e88}a:hover{background-color:#ff2e88;color:#fff}body::-webkit-scrollbar{background-color:transparent;width:12px}body::-webkit-scrollbar-thumb{border-radius:0;background-color:#ccc}body::-webkit-scrollbar-thumb:hover{background-color:#b1b1b1}body.dark::-webkit-scrollbar-thumb{border-radius:0;background-color:rgba(95,95,95,.78)}body.dark::-webkit-scrollbar-thumb:hover{background-color:#525252}.grid{display:-ms-flexbox;display:flex}.grid.\-top{-ms-flex-al
Apr 26 14:27:31 example postfix/pickup[23191]: 9E702460FB: uid=0 from=<root@example.dev>
Apr 26 14:27:31 example postfix/cleanup[23195]: 9E702460FB: message-id=<20160426122731.9E702460FB@example.dev>
Apr 26 14:27:31 example postfix/qmgr[23192]: 9E702460FB: from=<root@example.dev>, size=392, nrcpt=1 (queue active)
Apr 26 14:27:31 example postfix/smtp[23197]: 9E702460FB: to=<test@bascht.com>, relay=127.0.0.1[127.0.0.1]:1025, delay=0.03, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (250 Message accepted)
Apr 26 14:27:31 example postfix/qmgr[23192]: 9E702460FB: removed
21/04/2016 11:19:38: prof: INF: Starting Profanity (0.5.0dev.master.20a0313)...
21/04/2016 11:19:38: prof: INF: Initialising chat logs
21/04/2016 11:19:38: prof: INF: Initialising groupchat logs
21/04/2016 11:19:38: prof: INF: Loading accounts
21/04/2016 11:19:38: prof: INF: Loading theme "boothj5_slack"
21/04/2016 11:19:38: prof: INF: Initialising UI
21/04/2016 11:19:39: prof: INF: Initialising XMPP
21/04/2016 11:19:39: prof: INF: Loading capabilities cache
21/04/2016 11:19:39: prof: INF: Initialising commands
21/04/2016 11:19:39: prof: INF: Initialising contact list
# Wichtiger Hinweis:
#
# Diese Information ist ausschließlich für die adressierte Person
# oder Organisation bestimmt und könnte vertrauliches und/oder
# privilegiertes Material enthalten. Personen oder Organisationen,
# für die diese Information nicht bestimmt ist, ist es nicht
# gestattet, diese zu lesen, erneut zu übertragen, zu verbreiten,
# anderweitig zu verwenden oder sich durch sie veranlasst zu sehen,
# Maßnahmen irgendeiner Art zu ergreifen. Sollten Sie diese
# Nachricht irrtümlich erhalten haben, bitten wir Sie, sich mit dem
@bascht
bascht / middleman-strace.log
Created February 21, 2016 15:40
Middleman stuck
[…]
clock_gettime(CLOCK_MONOTONIC, {6550, 552084825}) = 0
select(12, [10 11], NULL, NULL, {2, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6552, 554244104}) = 0
select(12, [10 11], NULL, NULL, {2, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6554, 556443293}) = 0
select(12, [10 11], NULL, NULL, {2, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6556, 558659345}) = 0
select(12, [10 11], NULL, NULL, {2, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {6558, 560845425}) = 0
#!/usr/bin/env ruby
puts "Ohai, I am #{Process.pid()} and hungry for input!"
puts "Got: #{$stdin.read}"