Skip to content

Instantly share code, notes, and snippets.

View webfacer's full-sized avatar
🤪
just coding it!

Ilic Davor webfacer

🤪
just coding it!
View GitHub Profile
@webfacer
webfacer / gist:1a166a5fc45d8baac8dd418875adb9f1
Last active July 10, 2020 13:26
typo3+laravel/homstead installation
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
#
# If you have user-specific configurations you would like
# to apply, you may also create user-customizations.sh,
# which will be run after this script.
@webfacer
webfacer / package.json
Last active August 12, 2021 05:09
Vue + Typescript + MochaPack Testing
{
"name": "clubwien-template-vue",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"eslint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"test": "mochapack --mode development --webpack-config webpack.config.development.js --require test/setup.js test/**/*.spec.js",
"build:prod": "vue-cli-service build --modern --mode production"
@webfacer
webfacer / integrity shasum-mac - command
Created December 4, 2019 15:30
How to create integrity - shasum-mac - command
curl https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.jscroll.min.js | shasum -b -a 256 | awk '{print $1}' | xxd -r -p | base64
@webfacer
webfacer / parseTypo3Hooks.sh
Created November 26, 2019 17:48
Typo3: Parase all files in Typo3 for Hook in File
#!/bin/bash
grep -n -C 5 "SC_OPTIONS" -r vendor/typo3/cms
@webfacer
webfacer / handleOutsideClick.js
Last active October 14, 2019 10:45
VueJs to handle outside events like click if a model is open and you wanna close it by clicking outside the modal-window.
import Vue from 'vue'
// This variable will hold the reference to
// document's click handler
let handleOutsideClick
Vue.directive('closable', {
bind (el, binding, vnode) {
// Here's the click/touchstart handler
// (it is registered below)
@webfacer
webfacer / deleteFromWithSubQueryAndSameTable.sql
Created September 25, 2019 14:50
Delete From with subquery and SameTable
delete from myTable where id in(SELECT id FROM (SELECT id, from_unixtime(crdate, '%Y') from myTable WHERE pid = 2203 and from_unixtime(crdate, '%Y') = 2018) mail)
@webfacer
webfacer / currentDockerIP.bash
Created June 1, 2019 14:11
Get the current docker-machine IP-Address
docker-machine ip default
@webfacer
webfacer / jenkins-docker-compose.yml
Created April 22, 2019 00:18
remove prefix "jenkins-" that docker-compose recognize the yml file
version: '2'
services:
jenkins:
image: 'jenkins/jenkins:lts'
labels:
kompose.service.type: nodeport
ports:
- '80:8080'
- '443:8443'
- '50000:50000'
@webfacer
webfacer / gulpfile.js
Created January 30, 2019 16:42
gulpfile configuration for nunjucks and scss. also you can use npm run start for dev-enviorment or npm run build:prod which will minify your data for production
require('es6-promise').polyfill();
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
@webfacer
webfacer / helpfull-sites
Last active January 3, 2019 17:29
Helpfull Sites which helped me fix something or configure some lines
#vagrant homestead
https://medium.com/@eaimanshoshi/i-am-going-to-write-down-step-by-step-procedure-to-setup-homestead-for-laravel-5-2-17491a423aa
#vagrant issue fix _Inaccessible_
https://www.virtualbox.org/ticket/12205#comment:8