Skip to content

Instantly share code, notes, and snippets.

Stefan Urbansky urbansky

Block or report user

Report or block urbansky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@urbansky
urbansky / docker.sh
Last active Jan 24, 2019
Docker common commands
View docker.sh
# ---------------------------------------------------------
# docker file -> text file with commands to create an image
# images -> a read-only memory dump
# container -> running or stopped image with working data
# ---------------------------------------------------------
# see also: https://github.com/wsargent/docker-cheat-sheet
# List all running docker containers
docker ps
View spa.js
// ---------------------
// Vuex module
// ---------------------
import Vue from 'vue';
import { com } from "./../../main";
import * as log from 'loglevel';
const state = {
projects: {},
currentProjectId: undefined
View spa.html
<!-- -------------------- -->
<!-- Index page component -->
<!-- -------------------- -->
<template>
<div>
<v-container v-if="$route.name === 'crm/projects'" class="px-0" fluid>
<v-layout row wrap>
<v-flex>
<v-toolbar flat>
<v-text-field v-model="search" append-icon="search" label="Search" single-line hide-details></v-text-field>
View spa.groovy
// ------------------------
// Server API
// ------------------------
package de.beispiel.api
import de.beispiel.SuperController
import de.beispiel.crm.CrmProject
import de.beispiel.crm.CrmProjectService
import grails.converters.JSON
View mpa.html
<!-- ----------- -->
<!-- Index page -->
<!-- ----------- -->
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main"/>
<parameter name="layout" value="app" />
<parameter name="fixedWidth" value="true" />
<asset:stylesheet src="application"/>
View mpa.groovy
// ------------------------
// Controller classes
// ------------------------
package de.beispiel.api
import de.beispiel.SuperController
import de.beispiel.exception.DomainObjectNotFoundException
class CrmProjectController extends SuperController {
@urbansky
urbansky / vuejs.md
Last active Mar 28, 2018
Vue JS - Overview
View vuejs.md

Manage project

# Install Vue CLI, use 'sudo' on MacOS
# see: https://github.com/vuejs/vue-cli
npm install -g vue-cli

# Create project
vue init webpack-simple project-name
@urbansky
urbansky / search_github
Created Mar 7, 2017
Search GitHub examples
View search_github
# Search for Grails projects that uses the platform-core plugin
platform-core path:grails-app/conf filename:BuildConfig.groovy
@urbansky
urbansky / install_java_ubuntu.sh
Last active Mar 7, 2017
Install Java on Ubuntu
View install_java_ubuntu.sh
# install the commando 'add-apt-repository'
apt-get install software-properties-common
# see: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
# JAVA_HOME is '/usr/lib/jvm/java-8-oracle/'
@urbansky
urbansky / commands
Last active Apr 12, 2017
Misc linux commands
View commands
# All open port with bounded program
netstat -lntu
# Extract
tar -xzf archiv.tar.gz -C /PFAD/ZUM/ORDNER
# Create
tar -czf archiv.tar.gz
You can’t perform that action at this time.