Skip to content

Instantly share code, notes, and snippets.

View stanBienaives's full-sized avatar

Stan BIENAIVES stanBienaives

View GitHub Profile
@SantoshSrinivas79
SantoshSrinivas79 / Running electron using xvfb.md
Last active April 24, 2024 03:09
Running electron using xvfb

Running electron using xvfb

Install xvfb

apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps

Some tips at: xvfb init script for Ubuntu

// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@82times
82times / gist:5594887
Last active September 27, 2016 12:41
Quick and dirty use of the wonderful xcodeproj gem to modify the CODE_SIGN_IDENTITY and PROVISIONING_PROFILE property of all configurations of each target where that property is set.
#!/usr/bin/ruby
# Use the xcodeproj gem to modify code sign identity in all targets where
# that attribute is set.
#
# Kind of getto.
require 'rubygems'
require 'xcodeproj'
@nz
nz / configuring tire for bonsai.md
Last active October 1, 2015 18:58
Configuring Tire to work with Bonsai

1. Configure Tire to use the Bonsai ElasticSearch Heroku add-on

gem 'tire'

config/initializers/bonsai.rb

ENV['ELASTICSEARCH_URL'] = ENV['BONSAI_URL']