Skip to content

Instantly share code, notes, and snippets.

Patrick Debois jedi4ever

Block or report user

Report or block jedi4ever

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 0-bridging-react-native-cheatsheet.md
@lusis
lusis / README.md
Last active Apr 10, 2019
terraform template to generate serverspec properties
View README.md

This uses terraform's template_file resource to generate a yaml properties file for serverspec to use.

  • create the Rakefile in your terraform project root
  • create a spec directory and put spec_helper.rb in it
  • create the templates/properties.tmpl.yml file
  • create the serverspec.tf
  • terraform apply

tests

Tests will be matched based on roles defined for a given node.

@vizath
vizath / readme.md
Created Jun 11, 2015
SlimerJS on AWS EC2 with webgl support
View readme.md

There is not a lot of doc or posts about making an headless renderer with webgl support. Here are few of my findings

I tried things on Heroku, but I was not able to make anything work.

Next, I tried EC2 t2.micro, only to find out that OpenGL needs a graphic card to execute (sure, there are things like mesa that I didn't tried, but it looked like I needed to build Chrome and I didn't want to go that way).

The only easy solution that I found was AWS EC2 GPU Instances. They are pretty much overpriced for what I'm trying to acheive, but it worked. You need to use an AMI that support the Nvidia GRID thing. eg https://aws.amazon.com/marketplace/pp/B00FYCDDTE and its CentOS.

Slimer need Firefox and Firefox need shared libraries that we need to install (we will use a custom repo).

@sokratisg
sokratisg / sysctl.conf
Last active Aug 24, 2019
Tuned sysctl.conf for use by CentOS/RHEL 6.x or later
View sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Turn on execshield
# 0 completely disables ExecShield and Address Space Layout Randomization
# 1 enables them ONLY if the application bits for these protections are set to “enable”
# 2 enables them by default, except if the application bits are set to “disable”
# 3 enables them always, whatever the application bits
@epadillas
epadillas / client.js
Created Jul 14, 2013
Send cookies for the socket.io handshake (sails.js)
View client.js
// Send cookies for the socket.io handshake (sails.js)
// Based on https://gist.github.com/jfromaniello/4087861
// Socket.io open ticket (started by jfromaniello):
// https://github.com/LearnBoost/socket.io-client/pull/512
var io = require('socket.io-client');
var request = require('request');
var xhr = require('socket.io-client/node_modules/xmlhttprequest');
var xhrOriginal = require('xmlhttprequest');
@simon-wenmouth
simon-wenmouth / README.md
Last active Jan 12, 2017
Windows 7 AIK / veewee / Vagrant
View README.md

This collection of documents moves forward in three steps

  1. Create Autounattend.xml file(s)
  2. Create base box with veewee
  3. Create box with vagrant

Read the documents in that order, i.e.

  1. WindowsAIK.md
  2. Veewee.md
@jfromaniello
jfromaniello / gist:4087861
Last active Jun 11, 2019
socket-io.client send the cookies!
View gist:4087861
/*
* Little example of how to use ```socket-io.client``` and ```request``` from node.js
* to authenticate thru http, and send the cookies during the socket.io handshake.
*/
var io = require('socket.io-client');
var request = require('request');
/*
* This is the jar (like a cookie container) we will use always
@command-tab
command-tab / gist:2370710
Created Apr 12, 2012
Extract Certificate Subject from a Provisioning Profile
View gist:2370710
# Parse a provisioning profile
# Extract the first DeveloperCertificates <data> entry
# Remove any leading whitespace
# Remove any blank lines
# Base64 decode the blob
# Parse the .cer with OpenSSL
# Extract the first line, which is the certificate subject (the rest is the cert blob)
# End up with a string like: subject= /UID=AABBCCDDEE/CN=iPhone Developer: First Last (FFGGHHIIJJ)/C=US
# Note: Uses xmlstarlet to parse the plist, but you could probably use PlistBuddy or grep, too
@rubiojr
rubiojr / open_auth.diff
Created Aug 18, 2011
open_auth support for libvirt fog provider
View open_auth.diff
diff --git a/lib/fog/compute/libvirt.rb b/lib/fog/compute/libvirt.rb
index 323c362..930be4f 100644
--- a/lib/fog/compute/libvirt.rb
+++ b/lib/fog/compute/libvirt.rb
@@ -41,7 +41,18 @@ module Fog
require 'libvirt'
begin
- @connection = ::Libvirt::open(@uri.uri)
+ if options[:user] and options[:password]
@olistik
olistik / poll_repository.sh
Created May 18, 2011
poll git repository
View poll_repository.sh
#!/bin/bash
while true; do
echo "Checking git repository.."
date -u
git_status=`git pull`
if [[ $git_status != *up-to-date* ]]; then
growlnotify -m "Repository updated" -s
else
echo "no updates"
You can’t perform that action at this time.