Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
@razbakov
razbakov / QFirebaseUploaderBase.vue
Created April 23, 2019 14:38
Firebase File Uploader for Quasar Framework
<script>
import { QUploaderBase } from 'quasar'
import firebase from 'firebase/app'
import 'firebase/storage'
import uuid from 'uuid/v4'
export default {
mixins: [ QUploaderBase ],
props: {
@razbakov
razbakov / wd-form.vue
Created February 7, 2024 10:34
Vue Form Component
<template>
<form @submit.prevent="submit">
<slot />
</form>
</template>
<script>
import Vue from 'vue'
import { onMounted, ref } from '@nuxtjs/composition-api'
@razbakov
razbakov / gist:ed1522ee3fbfc148eab0
Last active January 6, 2024 05:45
json format

Which JSON format would you recommend to use?

Full

{
    "name": "kirchbergerknorr/teamalpin",
    "description": "Teamalpin",
    "minimum-stability": "dev",
    "authors": [
@razbakov
razbakov / jenkins.conf
Last active March 26, 2023 06:50
Jenkins Apache Virtual Host
<Virtualhost *:80>
ServerName your.url.com
ProxyRequests Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
git fetch --all
git push origin HEAD
WORK_BRANCH=`git rev-parse --abbrev-ref HEAD`
git checkout development
git rebase origin/development
git merge $WORK_BRANCH --no-edit
git push origin HEAD
git checkout $WORK_BRANCH

get AJQ-15x15-ZM

{
  product: {
    DecimalsAllowed: false,
    Description1: 'Ablauf ESS Aqua Jewel Quattro 15x15cm ES',
    Description2: '"Zero+Edelst. gebürstet" swh 30/35/50mm',
    GTIN: '',
    PicturePath: 'https://ablexprod.blob.core.windows.net/ablexprodcontainer/8eb882af3664f584682df48d6401b5f7',
<template>
<input
v-model="userValue"
:pattern="pattern"
v-bind="$attrs"
type="tel"
@focus="focus"
@keydown="keyDown"
@blur="update"
>
@razbakov
razbakov / evernote_2.applescript
Created January 30, 2020 19:47
Evernote Apple Script API
-- This script includes examples for using AppleScript to perform several
-- useful tasks with Evernote.
-- Each section illustrates a chunk of Evernote's AppleScript interface,
-- and each section also cleans up after itself.
-- Please refer to the Evernote application's scripting dictionary for
-- detailed information and BE CAREFUL: operations that would normally
-- confirmation from the user (such as deleting notes, etc) are
-- completed without warning when invoked from AppleScript!
tell application "Evernote"
import { reactive, toRefs, computed } from '@vue/composition-api'
import Vue from 'vue'
import firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/firestore'
const state = Vue.observable({
loading: true,
signingIn: false,
uid: null,
@razbakov
razbakov / MigrateNotesToEvernote.applescript
Created January 30, 2020 19:47
MigrateNotesToEvernote
-- Read more
-- https://dev.evernote.com/doc/articles/applescript.php
-- https://gist.github.com/evernotegists
-- https://discussion.evernote.com/topic/4046-importing-from-apple-mailapps-notes/
-- https://www.macosxautomation.com/applescript/notes/05.html
-- https://macscripter.net/viewtopic.php?id=45602
tell application "Notes"
set theMessages to every note
repeat with appleNote in theMessages