Skip to content

Instantly share code, notes, and snippets.

View luxio's full-sized avatar

Stéphane Lux luxio

View GitHub Profile
@luxio
luxio / output.txt
Created December 14, 2018 20:03
SCP fails with Return Code 126 (host-only network)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
@luxio
luxio / index.html
Last active February 26, 2018 14:35
Material Design Input Text
<form id="user_login_form" class="ll-form ll-login-form material-design">
<div id="drupalgap_form_errors"></div>
<div class="form-item field-name-liveloop-site-path">
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input id="edit-user-login-form-liveloop-site-path" value="" autocapitalize="none" autocorrect="off" required="" class="" type="text"><label for="edit-user-login-form-liveloop-site-path"><strong>Community</strong><span class="required-marker">*</span></label>
<span class="bar"></span>
</div>
</div>
<div class="form-item field-name-name">
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input id="edit-user-login-form-name" value="" autocapitalize="none" required="true" class="" type="text"><label for="edit-user-login-form-name"><strong>e-mail</strong><span class="required-marker">*</span></label><span class="bar"></span></div>
</div>
@luxio
luxio / gist:20a7efd2ad65233729affa07de131659
Created March 29, 2017 18:50 — forked from omega8cc/gist:5731695
Steps to install and configure Redis for any Drupal site on BOA

Steps to install and configure Redis for any Drupal site on BOA:

  1. Login to the dashboard and create a ticket requesting the Redis Service.
  • No, no, scratch that. I forgot it is BOA ;)
  • OK, done!
  • Wait. What?!
  • Seriously. You don't need to do anything -- it works out of the box!

How it works?

Aegir on Debian/wheezy x86_64
VPS XEN
CPU 12
RAM 60522
XTR _XTRAS_LIST="CGP CSF FTP SR4"
MFX _MODULES_FIX=YES
PFX _PERMISSIONS_FIX=NO
DBS _DB_SERIES=5.5
DNS _DNS_SETUP_TEST=YES
PKG _EXTRA_PACKAGES=
@luxio
luxio / gist:cf76dd1f52bb24a98823
Last active August 29, 2015 14:27 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
func parser(parser: NSXMLParser!, didStartElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!, attributes attributeDict: [NSObject : AnyObject]!) {
element = elementName
}
func parser(parser: NSXMLParser!, foundCharacters string: String!) {
currentStringValue = string
}
func parser(parser: NSXMLParser!, didEndElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!) {
if elementName == "title" {
@luxio
luxio / bot.log
Created October 19, 2012 19:56
bot.log
21:54:44,969 [main] INFO [Meetings] - The given response is a mobile getMeetings
21:54:45,023 [Thread-2] INFO [FileChannelReader] - opened file: /Users/lux/AeroFS/LIVELOOP/IT/LIVELOOP/bigbluebutton/bbbot/bot/etc/video-sample.flv
21:54:45,125 [Thread-2] INFO [FileChannelReader] - closed file: /Users/lux/AeroFS/LIVELOOP/IT/LIVELOOP/bigbluebutton/bbbot/bot/etc/video-sample.flv
21:54:45,126 [Thread-2] INFO [BotLauncher] - Running with the following configuration:
numbots: 2
server: http://live.liveloop.de
securityKey: 9C256654-160C-11E2-A5C9-924F6188709B
meeting: test
videoFilename: etc/video-sample.flv
voiceFilename: null
@luxio
luxio / gist:3908494
Created October 17, 2012 21:47
bbbot log
14:45:47,408 [main] DEBUG [JoinService0Dot8] - getTimestamp URL: http://192.168.114.137:80/demo/mobile.jsp?action=getTimestamp&checksum=ea3c955bb8347b48a9604a4bfea837f8d35bbf01
14:45:47,458 [main] DEBUG [JoinService0Dot8] - getTimestamp response: <response><returncode>SUCCESS</returncode><timestamp>1350510347</timestamp></response>
14:45:47,463 [main] DEBUG [JoinServiceBase] - getMeetings URL: http://192.168.114.137:80/demo/mobile.jsp?action=getMeetings&timestamp=1350510347&checksum=cedd5988fddb1d4a85a8beee49416741a6a14f9b
14:45:47,649 [main] DEBUG [Meetings] - parsing getMeetings response: <meetings><meeting><returncode>SUCCESS</returncode><meetingName>Demo Meeting</meetingName><meetingID>Demo Meeting</meetingID><createTime>1350509677099</createTime><voiceBridge>75354</voiceBridge><attendeePW>ap</attendeePW><moderatorPW>mp</moderatorPW><running>true</running><recording>false</recording><hasBeenForciblyEnded>false</hasBeenForciblyEnded><startTime>1350509680357</startTime><endTime>0</endTime><participantCount>
@luxio
luxio / bot.log
Created October 16, 2012 05:39
bbbot log
07:34:22,073 [main] DEBUG [JoinService0Dot8] - getTimestamp URL: http://192.168.114.136:80/demo/mobile.jsp?action=getTimestamp&checksum=a9479fe4baa5f235a08f26e12ded55a3dc9ad928
07:34:22,094 [main] DEBUG [JoinService0Dot8] - getTimestamp response: <response><returncode>SUCCESS</returncode><timestamp>1350365662</timestamp></response>
07:34:22,096 [main] DEBUG [JoinServiceBase] - getMeetings URL: http://192.168.114.136:80/demo/mobile.jsp?action=getMeetings&timestamp=1350365662&checksum=c6260c48f39200b4fc83de1e73938dea71156ed4
07:34:22,131 [main] DEBUG [Meetings] - parsing getMeetings response: <meetings></meetings>
07:34:22,133 [main] INFO [Meetings] - The given response is a mobile getMeetings
07:34:22,133 [main] DEBUG [JoinServiceBase] - No meetings currently running
07:34:22,163 [Thread-2] INFO [FileChannelReader] - opened file: /Users/lux/AeroFS/LIVELOOP/IT/LIVELOOP/tools/bbbot/bot/etc/video-sample.flv
07:34:22,185 [Thread-2] DEBUG [Amf0Value] - << [STRING onMetaData]
07:34:22,185 [Thread-2] DEBUG [Amf0Value