Skip to content

Instantly share code, notes, and snippets.

View jeanlescure's full-sized avatar
🚀
Actively Contributing

Jean Lescure jeanlescure

🚀
Actively Contributing
View GitHub Profile
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
PHANTOM_VERSION="phantomjs-1.9.8"
ARCH=$(uname -m)
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
PHANTOM_VERSION="phantomjs-1.9.8"
ARCH=$(uname -m)
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.8
Comment: https://keybase.io/crypto
wcBMA8HXR+LBlfN9AQgAunt0lccBPqVHfVhKugVNQuv4jX6GRBGoV64SYOgWWcQW
CoIQztwtY/hEi2ZbgtMbTiMgSW91qXnWSJN0qS6mGu7wYGipj0XodJFuOSmRiZHS
MUGMQLzN4keNfiePoqVllOTWdUxtdW+ezT6PNoTI6N8U0rw4EmM/89ZPwboqMu4u
Ag6MhhC5Kf/xBvDSGuuScDnQBnU0XJT7S+OoEmTHdejMctegHanktr4HmLsoLRaH
OHTAO2zqNvOaAEq6+Qydl2vAsfgqKaSbM82bt1zubHCsP1Yre74vupkx4XJ71QrY
RL+zar9dvLhSZz/W6AtqZw83KOoc79EDJglOwcOthcHATAPB10fiwZXzfQEH/1TE
@jeanlescure
jeanlescure / README.md
Last active November 24, 2024 21:24
Ubuntu/Debian Offline Repository Creation

Ubuntu/Debian Offline Repository Creation Gist

When I googled how to create my own offline repository of packages for use in an offline Ubuntu/Debian machine, the results were disheartening and the steps to be taken scattered all over the place.

The files within this gist will allow you to:

  • Download specific apt-get packages... with dependencies included!
  • Create a Packages.gz file so that you can add the repository folder you create to the target machine's /etc/apt/sources.list file.

Before using

@jeanlescure
jeanlescure / details.md
Created July 8, 2015 08:59
Tigase Details

Tigase Server Details

JDK Path => /usr/lib/jvm/java-7-oracle
install wizard => on
configuration wizard => on
Install Path => /opt/tigase

1 => Base, The base files
2 => Unix Files, Files needed to run the server on Unix like systems
@jeanlescure
jeanlescure / TransformationShader.js
Last active January 22, 2025 14:07
ThreeJS: Vertex shader for translating, scaling, and rotating. Fragment shader for adding texture and controlling opacity.
THREE.TransformationShader = {
defines: {},
uniforms: {
"tDiffuse": { type: "t", value: texture },
"opacity": { type: "f", value: 1.0 },
"translationX": { type: "f", value: 1.0 },
"translationY": { type: "f", value: 1.0 },
"translationZ": { type: "f", value: 1.0 },
"scaleX": { type: "f", value: 1.0 },
@jeanlescure
jeanlescure / opentok-session.js
Last active September 7, 2015 20:29
First half of OpenTok NodeJS server
var fs = require('fs');
var server = express();
var OpenTok = require('opentok');
//Replace this with your OpenTok API key and OpenTok Secret
var opentok = new OpenTok('API_KEY', 'SECRET');
var SESSION_ID;
var QUALITY_SESSION_ID;
@jeanlescure
jeanlescure / opentok-server-and-token.js
Last active September 7, 2015 20:45
Second half of OpenTok NodeJS server
var express = require('express');
function start_server(){
// Serve files for browser clients
server.get('/', function(req, res){
// Serve index file
// ...
});
server.get('/:dir/:name', function(req, res, next){
// Serve asset files
// ...
@jeanlescure
jeanlescure / opentok-pre-call-changes.js
Created September 7, 2015 21:59
Changes to OpenTok Pre-Call test
//...
var session;
var publisher;
var subscriber;
var statusContainerEl;
var statusTitleEl;
var statusMessageEl;
var statusIconEl;
@jeanlescure
jeanlescure / opentok-call-module.js
Last active September 7, 2015 22:45
OpenTok call module harnessing Pre-Call bandwidth test
// Override global variable callback
onTestComplete = function(){
// Run the following only if there's enough bandwidth
// to stream at least audio
if (audioSupported){
setTimeout(function(){
setText(statusTitleEl, 'Session Started');
setText(statusMessageEl, '');
statusContainerEl.removeChild(statusIconEl);