Skip to content

Instantly share code, notes, and snippets.

View pquerner's full-sized avatar

Pascal Querner pquerner

View GitHub Profile
@pquerner
pquerner / Dockerfile
Last active July 18, 2020 17:36
PS4 OpenOrbis
FROM ubuntu:20.04
ENV PS4DEV=/usr/local/ps4dev
RUN echo 'alias build="cd /build && make clean && make"' >> ~/.bashrc
RUN echo 'export OO_PS4_TOOLCHAIN=${PS4DEV}/ps4toolchain' >> ~/.bashrc
#Get deps
RUN \
apt-get -y update && \
@pquerner
pquerner / kbm.timetracking.userscript.js
Last active February 12, 2020 12:43
KBMPro Timetracking JS
// ==UserScript==
// @name KBMpro quick buttons for time tracking
// @namespace http://www.concept-design.de
// @updateUrl https://bitbucket.concept-design.de/snippets/raw/c3688c4bcaae441dae1216edf6bd31e2/kbmpro-quickbuttons.user.js
// @version 1.2
// @description Adds quick buttons to KBMpro time tracking
// @author Daniel Mann (fork PQ)
// @match https://cundd.kbmpro.de/kbmpro/index.php?action=zeiten*
// @grant none
// ==/UserScript==
@pquerner
pquerner / SearchController.php
Created August 1, 2019 10:29
RouteEnhancers in Searchresult for ext:news (ext:indexed_search)
<?php
namespace CuD\EntdeckenBase\Controller\Extensions\Indexedsearch;
use CuD\CudNewsauthors\Domain\Model\News;
use GeorgRinger\News\Domain\Repository\NewsRepository;
use TYPO3\CMS\Core\Utility\MathUtility;
@pquerner
pquerner / user.js
Last active April 26, 2019 12:06
Alexa Skill Repeat
// ==UserScript==
// @name Alexa Repeat Dev Message
// @version 0.1
// @author You
// @match https://developer.amazon.com/alexa/console/ask/test/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
ps4sh> connect
log: [HOST][INFO]: [PS4SH] Connecting to fio ps4link ip 192.168.178.27
log: [HOST][INFO]: [PS4SH] PlayStation is listening at 192.168.178.27
log: [HOST][DEBUG]: [PS4SH] Opening homebrew.elf flags 0
log: [HOST][DEBUG]: [PS4SH] Open return 7
log: [HOST][DEBUG]: [PS4SH] 211272 result of lseek 0 offset 2 whence
log: [HOST][DEBUG]: [PS4SH] 0 result of lseek 0 offset 0 whence
version: '3.3'
services:
mysql:
image: mariadb:latest
container_name: tvextra_mariadb
volumes:
- container-volume:/var/lib/mysql
- ./20181122.tvextra.live.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
@pquerner
pquerner / gist:e902f5f8018653ee3e815f8dd46aec52
Last active June 29, 2018 21:54
Ubuntu PS4 SDK Build Slave
Vagrant.configure("2") do |config|
# Ubuntu 14.04 LTS x64 official cloud image
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.network "public_network", ip: "192.168.178.99"
# VirtualBox
config.vm.provider "virtualbox" do |vb|
vb.name = "PS4 Build Slave" # friendly name that shows up in Oracle VM VirtualBox Manager
vb.memory = 2048 # memory in megabytes
@pquerner
pquerner / grab-videos.js
Created April 6, 2016 11:37
node youtube-dl
var https = require('https');
var async = require('async');
var path = require('path');
var fs = require('fs');
var ytdl = require('youtube-dl');
var ytchannelids = ['UCrsECiuZUe7HObWu7UF--5A', 'valvenewsnetwork']; //channels to download, not yet used
var ytchannelid = 'UCrsECiuZUe7HObWu7UF--5A'; //channel to download, new format
var youtubeids = [];
//'valvenewsnetwork';
var apikey = 'xxxx'; //youtube api key
@pquerner
pquerner / .bashrc
Created January 7, 2016 13:05 — forked from dbalabka/.phpdebug
PHP CLI debugging helper console commands with PhpStorm, NetBeans support
# Installation steps:
# 1. Put these lines into ~/.bashrc;
# 2. Script will try to autodetect your machine IP where runs IDE or use 127.0.0.1 otherwise.
# If automatic detection doesn't work for you, set ip directly via IDE_IP enviroment variable:
# $ export IDE_IP=1.2.3.4
# 3. Change ports if it not same as default (see local variables zend_debugger_config and xdebug_config);
# 4. Change IDE specific configuration: serverName, idekey (see local variables php_ide_config and xdebug_config)
# 5. Run: source ~/.bashrc
# Usage:

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes