Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Max Maintz Netznarkose

🎯
Focusing
View GitHub Profile
View käsekuchen.md

Ingredientien

  • 150 g Mehl
  • 100 g (weiche Butter)
  • 500 g bis 1 kg Quark
  • 150 g Zucker
  • 1 becher Sahne
  • 1 Päckchen Vanillezucker
  • 1 Päckchen Vanillepudding
  • 1 Päckchen Backpulver (???)
View debug_blcr_3399.md

ticket https://brandslisten.atlassian.net/browse/BLCR-3399

params:

# participants_total 
# returns count of all confirmed or auto-confirmed participants
    has_many :participants, -> { distinct.joins(:participation_requests).where(bl_participation_requests: { status: %w[confirmed auto_confirmed] }) }, through: :participation_requests, source: :user

# participation_requests_total
@Netznarkose
Netznarkose / install-nvm-zsh.txt
Created Aug 3, 2018 — forked from mike-casas/install-nvm-zsh.txt
install nvm on mac with zsh shell
View install-nvm-zsh.txt
After install zsh
- brew update
- brew install nvm
- mkdir ~/.nvm
after in your ~/.zshrc or in .bash_profile if your use bash shell:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
View gist:a6cae8d187d30e7cf5bd6cfb303cfffd

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@Netznarkose
Netznarkose / open_vims_command_history.md
Last active Mar 10, 2018
open command history #vim
View open_vims_command_history.md

Type q: from Normal-Mode

View escape_backticks_in_markdown.md

wrap the command in double backticks, dont forget a whitespace when the escaped backtick is at the end

sudo usermod -a -G rvm `whoami`

stackoverflow_answer

@Netznarkose
Netznarkose / the_jorney.md
Created Mar 7, 2018
the whole journey #DevOps
View the_jorney.md
@Netznarkose
Netznarkose / create_a_deploy_user.md
Last active Mar 10, 2018
Create a deploy-user on unix #DevOps #edit
View create_a_deploy_user.md

SSH into your server with root

local: ssh root@ip

Install Git

root@ubuntu: apt-get install git

Clone this Gist

root@ubuntu: git clone https://gist.github.com/Netznarkose/098295c54b8b8bf402564fc7491e3eab

execute the shell-script