https://keyoxide.org/aspe:keyoxide.org:P74REETIPQOP7KN7JPQLM42KIY
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/sh | |
date +"%d%m%y%H" | sed -E 's/^.(.).(.).(...)$/\1\2\3/g' | rev |
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/sh | |
CONF_DIR="$HOME/.cmux" | |
LAYOUT=tiled | |
CMD_FILE="$1" | |
SESSION_NAME=$(basename "$CMD_FILE") | |
if ! [ -e "$CMD_FILE" ]; then | |
CMD_FILE="$CONF_DIR/$CMD_FILE" |
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 | |
/** | |
* @link https://l-x.github.io/blog/2014/09/29/messing-around-with-phps-late-static-binding/ | |
*/ | |
class A { | |
public function createInstance() { | |
/** | |
* Calling method static even if |
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 | |
/** | |
* @link https://l-x.github.io/blog/2014/09/03/determine-the-type-of-a-php-array/ | |
* | |
* @param array $array | |
* | |
* @return int | |
*/ | |
function get_array_type(array $array) { |
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 | |
/** | |
* @link http://l-x.github.io/blog/2014/09/29/call-user-func-struct/ | |
* | |
* @param callback $function | |
* @param array $param_struct | |
* | |
* @return mixed | |
*/ |