Skip to content

Instantly share code, notes, and snippets.

View Eomm's full-sized avatar
🧠
Improving

Manuel Spigolon Eomm

🧠
Improving
View GitHub Profile
// Review a GitHub Pull Request ID
git fetch origin pull/ID/head:foo
git checkout foo
// View all your stashes, also which you have deleted!
git fsck --unreachable | grep commit | cut -d ' ' -f3 | xargs git log --merges --no-walk
// Restore a deleted stash
git update-ref refs/stash da02442ffa1584b489dc37a0fcf70fb1b60d9d2c -m "Piuf no one is lost"
@Eomm
Eomm / test-validator-ref-id
Created February 6, 2019 21:58
Fastify Snippet
const fastify = require('./fastify')({ logger: { level: 'debug' } })
fastify.addSchema({
$id: 'http://example.com/ref-to-external-validator.json',
type: 'object',
properties: {
hello: { type: 'string' }
}
})
const body = {
@Eomm
Eomm / SMPP Protocol details.md
Last active March 26, 2019 16:19
Sparse information for all communication channels
@Eomm
Eomm / Bash snippet
Last active August 17, 2020 15:21
Bash snippet
# Bash snippet
## List service
service --status-all
ls -F /etc/init.d/ | grep '*$'
## File Descriptors
### Open socket by node.js
lsof -n -i -P | grep node | wc -l