Skip to content

Instantly share code, notes, and snippets.

View jced-artem's full-sized avatar

Artem jced-artem

View GitHub Profile
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk
git update-ref refs/stash 4b3fc45c94caadcc87d783064624585c194f4be8 -m "My recovered stash"
(https://dev.to/meduzen/recover-a-lost-git-stash-in-two-steps-569)
@jced-artem
jced-artem / README
Created December 6, 2016 15:43
Simple bash daemon
To run this daemon:
setsid /path/to/simple-daemon.sh >>/dev/null 2>&1
@jced-artem
jced-artem / UopzTrait.php
Last active June 12, 2021 08:10
Wrapper for php uopz library's functions. Very useful for unit testing for changing function's behaviour in runtime.
<?php
/**
* Trait UopzTrait
*
* Useful wrapper for uopz library's functions
*/
trait UopzTrait
{
/**