Skip to content

Instantly share code, notes, and snippets.

View lethak's full-sized avatar
✌️
Nothing is really work unless you would rather be doing something else.

LethaK Maas lethak

✌️
Nothing is really work unless you would rather be doing something else.
  • FR
View GitHub Profile
@lethak
lethak / starcitizen-french-speaking-organizations.json
Last active August 29, 2015 13:56
Star-Citizen French speaking organizations
{"webQueryCount":2,"crawled":["https:\/\/robertsspaceindustries.com\/community\/orgs\/listing?sort=size_desc&search=&language[]=fr&pagesize=255&page=1&","https:\/\/robertsspaceindustries.com\/community\/orgs\/listing?sort=size_desc&search=&language[]=fr&pagesize=255&page=2&"],"count":495,"listCount":495,"list":{"SIBYLLA":{"spectrumId":"SIBYLLA","name":"Sibylla","logo":"\/media\/fpt7ffp70y3aer\/avatar\/SIBYLLA-Logo.png","isDefaultLogo":0,"_Archetype":"Organization","_Lang":"French","_Commitment":"Regular","_Recruiting":"Yes","_Role play":"Yes","_Members":"358"},"CPC":{"spectrumId":"CPC","name":"Canards Patrouilleurs Celestes","logo":"\/media\/rkcgc0mf05xscr\/avatar\/CPC-Logo.png","isDefaultLogo":0,"_Archetype":"Corporation","_Lang":"French","_Commitment":"Regular","_Recruiting":"Yes","_Role play":"No","_Members":"107"},"FROG":{"spectrumId":"FROG","name":"FrogSwarm","logo":"\/media\/8np8mah4uve11r\/avatar\/FROG-Logo.png","isDefaultLogo":0,"_Archetype":"Corporation","_Lang":"French","_Commitment":"Hardcore","_R
@lethak
lethak / eZDebugBox.js
Created March 7, 2014 09:09
eZ Debug Box
// ==UserScript==
// @name eZ Debug Box
// @namespace EzDebugBox
// @author Valentin Faïsse
// @version 1.2.1
// @description Displays eZ Publish debug in a lightbox, allows you to filter debug output by level and adds an HTML inspector
// @include http*
// @grant GM_addStyle
// @downloadURL https://userscripts.org/scripts/source/101599.user.js
// @updateURL https://userscripts.org/scripts/source/101599.meta.js
<?php
namespace phpQuery;
use \Iterator as Iterator;
use \Countable as Countable;
use \ArrayAccess as ArrayAccess;
use \DOMDocument as DOMDocument;
use \DOMXPath as DOMXPath;
use \DOMNode as DOMNode;
use \DOMNodeList as DOMNodeList;
@lethak
lethak / doctrine2_adding_seconds_to_datetime_dql.php
Last active August 29, 2015 14:15
Adding seconds to a DateTime object in doctrine2 DQL
<?php
// in symfony2 app/ config.yml ...
doctrine:
orm:
entity_managers:
default:
dql:
datetime_functions:
unix_timestamp: Acme\AcmeBundle\DoctrineExtension\ORM\Query\AST\Functions\UnixTimestamp
@lethak
lethak / SC_RSI_Orion_Minigame_Helper.js
Last active August 29, 2015 14:16
RobertsSpaceIndustries.com StarCitizen Orion Minigame Auto Success
//https://robertsspaceindustries.com/comm-link/engineering/14535-Orion-Vault-A-Loan-In-The-Verse
window.ltkOrionMinigameHelper = {
uid:null,
phase:null,
init: function(){
console.info("== LTK Orion Minigame Helper == init");
window.ltkOrionMinigameHelper.uid = "";
window.ltkOrionMinigameHelper.phase = 0;
window.ltkOrionMinigameHelper.apiCall();
},
@lethak
lethak / cli_argv.php
Last active August 29, 2015 14:17
Build proper CLI script argument array
<?php
// Usage:
// php myScript.php --titi tata -foo bar --solo --pincemi=" pincemoi" -baz="dd= bat" -caremba --dry-run --ddd --zzz="qqq"
$params = array();
$argKey = null;
$argValue = null;
foreach ($_SERVER['argv'] as $argv)
@lethak
lethak / kimsufi_dispo_vlc.php
Last active August 29, 2015 14:17
Kimsufi JSON
<?php
/**
* @author https://github.com/lethak
* Usage:
php dispo.php --vlc "/home/myuser/Music/GameofThronesThemeMetal.mp3" --longpoll 1 --ref "150sk30" -v=1
*/
// Script Default Arguments...
<?php
function slugify($text, $separator = '-')
{
$string = trim(''.$text);
if($string=='')
$string = trim(''.$this->getTitle());
$accents_regex = '~&([a-z]{1,2})(?:acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml);~i';
$special_cases = array( '&' => 'and');
$string = mb_strtolower( trim( $string ), 'UTF-8' );
/*
Space Engeeneer - Whip's Rocket Guidance Script v11 - revised: 10/28/15
By Joshua Banks
*/
List<IMyTerminalBlock> remotes = new List<IMyTerminalBlock>();
List<IMyTerminalBlock> shooterRefrenceList = new List<IMyTerminalBlock>();
List<IMyTerminalBlock> missileRefrenceList = new List<IMyTerminalBlock>();
List<IMyTerminalBlock> gyroList = new List<IMyTerminalBlock>();
string shooterReferenceName = "[Shooter]";
// Made a browser extension : @see https://github.com/lethak/digitally_imported_userscript
// Stop anti-afk popup ? maybe
di.app.timedAlerts.stop()
// Wepplayer stuff
//AudioAddict.WP.wp.
// Removing ad providers to block ads ? maybe
AudioAddict.WP.AdManager.providers = {}