Skip to content

Instantly share code, notes, and snippets.

View man0s's full-sized avatar
☁️
Building Clouds

Emmanouil Katefidis man0s

☁️
Building Clouds
View GitHub Profile
@man0s
man0s / gist:20e233d9230b2173d4a26e266bb6a3e8
Created December 5, 2022 12:53 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@man0s
man0s / GitCommitEmoji.md
Created November 25, 2021 10:38 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@man0s
man0s / git-change-commit-messages.md
Created April 16, 2021 06:23 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@man0s
man0s / postgres-cheatsheet.md
Created November 15, 2019 12:50 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@man0s
man0s / gist:cc1e0447d273ba8df776631c42462493
Created November 8, 2019 12:10 — forked from winash/gist:5856669
grails restful controller template
<%=packageName ? "package ${packageName}\n\n" : ''%>
import grails.converters.JSON
import grails.converters.XML
import org.springframework.dao.DataIntegrityViolationException
class ${className}Controller {
static allowedMethods = [list:'GET',
show:'GET',
edit:['GET', 'POST'],