Skip to content

Instantly share code, notes, and snippets.

View janmartendeboer's full-sized avatar

Jan-Marten de Boer janmartendeboer

View GitHub Profile
@janmartendeboer
janmartendeboer / custom-stylesheet.css
Last active April 3, 2024 11:53
Custom stylesheet test
div.message.image-msg img[src="https://abbi-insights.cdn.cloudbear.nl/uploads/b73c95d7-11b7-45ee-929d-20f2e35b6f7c/1712144188226_9c9961c0-eea0-4b7a-ba1f-a0249475b513.1712144188.png"] {
max-height: 75vh !important;
}
@janmartendeboer
janmartendeboer / composer.mk
Last active May 27, 2022 09:08
Composer Makefile
# Updates at https://gist.github.com/johmanx10/b48bd498484384975fe7ed338cf9aef4
# Composer configuration
PHP := $(shell command -v php || echo php)
COMPOSER := $(shell command -v composer.phar || command -v composer || echo composer)
COMPOSER_VENDOR_DIR := $(shell $(COMPOSER) config vendor-dir || echo vendor)
COMPOSER_AUTOLOAD := $(shell echo "$(COMPOSER_VENDOR_DIR)/autoload.php")
# Install vendor dependencies.
$(COMPOSER_VENDOR_DIR) $(COMPOSER_AUTOLOAD): | composer.lock $(COMPOSER)
@janmartendeboer
janmartendeboer / keybase.md
Created March 29, 2017 20:15
Keybase proof of identity

Keybase proof

I hereby claim:

  • I am johmanx10 on github.
  • I am johmanx10 (https://keybase.io/johmanx10) on keybase.
  • I have a public key whose fingerprint is 9190 0D28 1392 FC94 E327 885D F482 80D2 FEBA 8A42

To claim this, I am signing this object:

@janmartendeboer
janmartendeboer / fibonacci.php
Created July 31, 2016 15:41
Proof of concept: generators versus array builders
#!/usr/bin/env php
<?php
/**
* Fibonacci number creator.
*
* @param int $grandparent
* @param int $parent
* @return int
*/
function f(int $grandparent, int $parent): int
@janmartendeboer
janmartendeboer / YourWish.php
Created November 17, 2015 18:44
Your wish is my command
<?php
// Awh, how cute
Me::execute(
Command::fromWish(
$you->getWish()
)
);
"use strict";
; var Timer = (function () {
var defineIntervalProperties = function (target, starter, ender) {
Object.defineProperties(
target,
{
'start': {
'get': starter
},
@janmartendeboer
janmartendeboer / attack.xml
Last active April 15, 2020 11:43
XXE attack using PHP
<!DOCTYPE scan [
<!ENTITY test SYSTEM "target.xml">
]><scan>&test;</scan>
@janmartendeboer
janmartendeboer / square-watch-fedora-16
Created July 23, 2012 18:53
Having problems loading square --watch on Fedora 16
20:49 /var/www/html/drenths-end.nl $ square --bundle . --plugin crush
o-o o-o o o o-o o-o o-o
\ | | | | |-| | |- version: 0.0.6
o-o o-O o--o o o-o o-o
|
o
20:49 /var/www/html/drenths-end.nl $ square --bundle . --plugin crush --watch 1337