This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
phpver=`php -r "echo phpversion();"` | |
if [ "`echo $phpver | grep '7.4'`" ]; then | |
echo "Bascule sur PHP 5.6.x" | |
sudo a2dismod php7.4 | |
sudo a2enmod php5.6 | |
sudo update-alternatives --set php /usr/bin/php5.6 | |
sudo service apache2 restart | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getRaspberryPiVersion($revision) { | |
$fp = fopen('pi-model.json', 'r'); | |
$filename = "pi-model.json"; | |
$contents = fread($fp, filesize($filename)); | |
fclose($fp); | |
$json = json_decode($contents); | |
foreach ($json as $item) { | |
if ($item->Code == $revision) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebSocket = require('ws'); | |
var EventEmitter = require('events').EventEmitter; | |
const ws = new WebSocket('ws://127.0.0.1:7905'); | |
var g15composer = require('g15composer').init('/home/antoine/dev/musikG15/pipe', 'notifications'); | |
ws.on('open', function open() { | |
ws.send('{ "name": "authenticate", "type": "request", "id": "foobar", "options": { "password": "" }}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
start=0 | |
for file in v2*; do | |
randomid=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1` | |
mv $file $randomid"-"$start.JPG | |
start=$((start + 1)) | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ============================================================= | |
* bootstrap-typeahead.js v2.3.2 | |
* http://twitter.github.com/bootstrap/javascript.html#typeahead | |
* ============================================================= | |
* Copyright 2012 Twitter, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "My idea", | |
"author": "Me", | |
"submitdate": "2015-01-01", | |
"lastupdate": "2015-02-31", | |
"version": "0.1", | |
"shortdescription": "My idea is to change the world", | |
"longdescription": "Lorem Ideapsum", | |
"urls": { | |
"idea": "http://linktomyidea.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Flickr RSS Feed | |
// @name:fr Flux RSS Flickr | |
// @namespace https://greasyfork.org/fr/users/11510-antoine-code | |
// @author Antoine Turmel | |
// @version 1.0.2 | |
// @description Adds back RSS feeds to Flickr galleries | |
// @description:fr Réajoute le flux RSS des galeries Flickr | |
// @icon https://cloud.githubusercontent.com/assets/119288/7681140/9284a93e-fd6d-11e4-8854-89ab643b600a.png | |
// @icon64 https://cloud.githubusercontent.com/assets/119288/7681134/811317e4-fd6d-11e4-8350-2dac0d5f0d66.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib | |
import sys | |
if len(sys.argv) == 1: | |
print "You must specify a locale" | |
else: | |
f = urllib.urlopen("http://translate.songbirdnest.com/languages/" + sys.argv[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SongbirdInstallBundle version="2"> | |
<XPI name="Afrikaans" id="[email protected]" languageTag="af" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-af-1.12.1.xpi"/> | |
<XPI name="عربي" id="[email protected]" languageTag="ar" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-ar-1.12.1.xpi"/> | |
<XPI name="Български" id="[email protected]" languageTag="bg" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-bg-1.12.1.xpi"/> | |
<XPI name="বাংলা (ভারত)" id="[email protected]" languageTag="bn-IN" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-bn-IN-1.12.1.xpi"/> | |
<XPI name="Català" id="[email protected]" languageTag="ca" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-ca-1.12.1.xpi"/> | |
<XPI name="Čeština" id="[email protected]" languageTag="cs" url="http://locales.getnightingale.com/langpacks/1.12.1/langpack-cs-1.12.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bz_user= | |
bz_pass= | |
tx_api_url="http://beta.babelzilla.org/api/2/project/" | |
tx_project="ngaletest" | |
curl -L --user $bz_user:$bz_pass -X GET $tx_api_url$tx_project/resources/ > filelist.json | |
cat filelist.json | grep slug | sed -e 's/"slug": "//g' | sed -e 's/",//g' | sed -e 's/ //g' > filelist |
NewerOlder