Skip to content

Instantly share code, notes, and snippets.

View ElfSundae's full-sized avatar
:octocat:
🤔

Elf Sundae ElfSundae

:octocat:
🤔
View GitHub Profile
@ElfSundae
ElfSundae / phpdocs_facade_generator.php
Last active March 17, 2022 08:02 — forked from ardzz/phpdocs_facade_generator.php
PHPDocs facades laravel generator
<?php
/**
* Class FacadePHPDocs
*
* @author Ardhana <ardzz@indoxploit.or.id>
*/
class FacadePHPDocs{
/**
* @var ReflectionClass
@ElfSundae
ElfSundae / bin2hex.sh
Created December 28, 2019 02:15 — forked from dstebila/bin2hex.sh
Shell script to convert binary to hex
#!/bin/bash
# Read either the first argument or from stdin (http://stackoverflow.com/questions/6980090/bash-read-from-file-or-stdin)
cat "${1:-/dev/stdin}" | \
# Convert binary to hex using xxd in plain hexdump style
xxd -ps | \
# Put spaces between each pair of hex characters
sed -E 's/(..)/\1 /g' | \
# Merge lines
tr -d '\n'