Skip to content

Instantly share code, notes, and snippets.

View ojacques's full-sized avatar
🌤️
Head in the cloud; feet, too.

Olivier Jacques ojacques

🌤️
Head in the cloud; feet, too.
View GitHub Profile
@ojacques
ojacques / DiscountSpec.groovy
Last active April 18, 2018 17:49
DevOps Dojo Test Case
package io.github.zutherb.appstash.shop.ui.page.test
import geb.Page
import geb.spock.GebReportingSpec
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.remote.RemoteWebDriver
import io.github.zutherb.appstash.common.util.Config
class DiscountSpec extends GebReportingSpec {
def "Check discount"() {
@ojacques
ojacques / cart_B.html
Created February 11, 2017 11:09
A B Testing with cart option B
<h2>Shopping Cart</h2>
<div class="well">
<div class="alert alert-info">
<strong>Info!</strong> Pay with Paypal and get free shipping!
</div>
<table class="table table-striped" ng-controller="CartController">
<thead>
<tr ng-show="vm.globalDiscount>0">
<td colspan="3"><h1>All store {{vm.globalDiscount}}% off</h1></td>
@ojacques
ojacques / build-pocketvj.md
Last active June 8, 2021 14:33 — forked from baydam/build-pocketvj.md
How to build PocketVJ on Raspberry Pi 3

Documentation for building PocketVJ on Raspberry Pi 3

Install Raspbian Lite

Find the instruction in the link below https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Install dependencies

$ sudo apt-get -y install lxde-core lxterminal lxappearance xinit lightdm ntfs-3g python-pexpect vim figlet git-core firmware-ralink hostapd isc-dhcp-server lighttpd samba samba-common-bin php5-common php5-cgi php5 php5-mysql screen fbi ttf-mscorefonts-installer mediainfo gparted php5-cli iptables xtightvncviewer imagemagick dosfstools exfat-utils exfat-fuse hfsplus hfsprogs hfsutils xdotool expect expect-dev avahi-daemon libavahi-compat-libdnssd-dev feh libjpeg8 libjpeg8-dev libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl python-smbus mpg321 mpg123 libreoffice-impress rc-gui python-pip iceweasel python-dev python-dbus xpdf x11-xserver-utils libncurses5-dev shellinabox tk okular usbmount libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstr
@ojacques
ojacques / .env.template
Created October 1, 2017 12:56
Redémarrage LABOX SFR
export labox_IP="192.168.0.1"
export labox_user="admin"
export labox_password="password"
export labox_urlcheck="http://url__a_verifier_avec_port_redir:port"
@ojacques
ojacques / sync_github_repos.md
Last active December 15, 2017 12:42
Syncing GitHub repositories

Investigating full sync between GitHub repositories, including GIT repo, issues, labels/milestones between two repositories across different GitHub Enterprise instances.

GIT Repo

https://github.com/gjtorikian/repository-sync

Install

@ojacques
ojacques / README.md
Last active May 1, 2019 20:10
TCPSClient on Raspberry PI2
@ojacques
ojacques / README.md
Last active June 14, 2021 04:06
WSL tips Windows 10 /

Collecting tips to make Windows 10 WSL a tiny bit faster

  • Wrap git to use Windows's GIT per this
  • Delay when starting conemu prompt: add %program files%\conemu folder to windows defender folder exclusion, per this
#!/bin/bash
# WSL 'git' wrapper, save as /usr/local/bin/git and chmod a+x

/c/Program\ Files/Git/bin/git.exe "$@"
@ojacques
ojacques / README.md
Created June 4, 2019 22:10
Useful media manipulation with exiftool

Update iPhone movie files date with EXIF data "MediaCreateDate":

exiftool.exe ExifTool "-FileCreateDate<MediaCreateDate" "-FileModifyDate<MediaCreateDate" *.mov`
@ojacques
ojacques / ALM-with-REST.md
Last active October 29, 2020 12:28
ALM REST API with curl

This GIST shows example on how to authenticate with HP/HPE/Microfocus ALM REST API and run queries.

Note:

By default, the ALM REST API returns XML data. If you want to get JSON data, add -H "Accept: application/json"

Authenticate with ALM and set the LWSSO_COOKIE_KEY cookie

curl -X POST -H "Content-Type: text/xml" --cookie cookies.txt -k --cookie-jar cookies.txt -d "alm_useralm_password" https://alm_host:8443/qcbin/authentication-point/alm-authenticate

Alternatively (same result):

curl --cookie cookies.txt --cookie-jar cookies.txt --user alm_user:alm_password https://alm_host:8443/qcbin/authentication-point/authenticate

@ojacques
ojacques / Dockerfile
Created November 29, 2020 16:46
Docker container to run tests on AWS Device Farm
```Dockerfile
FROM PYTHON:3.7-buster
RUN apt-get -qq -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
jq \
curl \
less \
git \
vim \