Skip to content

Instantly share code, notes, and snippets.

View marcellkiss's full-sized avatar
🎯
Focusing

Marcell Kiss marcellkiss

🎯
Focusing
View GitHub Profile

Coming soon

Commands:

:{v,}split - Open new pane
:open . - Open file

Shortcuts:

shift + i - Insert into the beginning of the line
shift + a - Insert into the end of the line
. - Repeat last inputs

Create: cat /etc/systemd/system/budacode.com.service

[Unit]                                                                                                               │var config = require('./config/environment');
Description=Budacode                                                                                                 │
After=network.target                                                                                                 │// Connect to database
                                                                                                                     │mongoose.connect(config.mongo.uri, config.mongo.options);
[Service]                                                                                                            │
ExecStart=/var/www/budacode/domains/budacode.com/www/static/dist/server/app.js                                       │// Populate DB with sample data
Restart=always                                                                                

##Useful software:

  • slack
  • skype
  • sublime
  • webstorm
  • chome
  • kdbx
  • betterTouchTool

##Useful shortcuts:

Frontend - Backend damage report structure differences

  • instructions: just documents
  • participants: insured, witness, witnesses
  • damage_picker: this is new (damage_location array)
  • additionals: we can reduce it

Backend damage report structure

{
    "type": "object",

TypeError: create() got an unexpected keyword argument 'datacheck'

We're sending the following:

{
  "datacheck": {
    "vehicle": {},
    "person": {
      "nachname": "Nutzer",
      "vorname": "Nadine",

Server Best Practices

Getting started

  • Append 46.101.204.196 budacode-vps to etc/hosts
  • Append:
Host budacode-vps
 User budacode
[
  {
    "title": "Risikoleben",
    "id": 0,
    "fields": [
      {
        "title": "Beitrag",
        "type": "float",
        "id": "fee"

No text like identifier to show in the dropdown

{
  "employee_id": "nadine.test.id",
  "files": [
    "74921590582d444493164022b042b3a3"
  ],
  "_id": "713a36228ebd487cb50b51a84f55f417",
 "info": {
@marcellkiss
marcellkiss / Angular with Firebase for Ionic.markdown
Created May 26, 2016 08:23
Angular with Firebase for Ionic
# NOTES:
# Create this file as: .git/hooks/pre-commit
# Also make it executable
#!/bin/sh
pass=true
RED='\033[1;31m'
GREEN='\033[0;32m'
NC='\033[0m'