Skip to content

Instantly share code, notes, and snippets.

View kdes70's full-sized avatar
🏠
Working from home

Dmitriy Krivoshein kdes70

🏠
Working from home
View GitHub Profile
@kdes70
kdes70 / MassInsertOrUpdate.php
Created June 17, 2022 09:50
Mass (bulk) insert or update on duplicate for Laravel 4/5
<?php
namespace Crm\Repositories\Traits;
trait MassInsertOrUpdate {
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
@kdes70
kdes70 / Dockerfile
Created August 29, 2022 20:22 — forked from designervoid/Dockerfile
Web app with HTTPS, based on proxy Traefik and Nuxt.js
# my_frontend/Dockerfile
### STAGE 1: Build ###
FROM node:latest as build
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
RUN npm install --silent
COPY . /usr/src/app

GitHub Gist - настройка и установка в JetBrains PhpStorm

  1. Установка плагина Get Gist Beta в PhpStorm
  1. В настройках плагина вводим пароль или генерируем токен на GitHub

P.S. К сожалению в Windows плагин работает не корректно c кодировкой Win-1251. Проблема до сих пор актуальна.

@kdes70
kdes70 / Conky Ubuntu
Created June 1, 2023 06:13 — forked from GiorgioAresu/Conky Ubuntu
Conky configuration for Ubuntu linux
# Size and position
alignment top_right
gap_x 5
gap_y 30
minimum_size 300 1050
maximum_width 300
# Appearance and font
border_margin 4
border_width 2
-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
-- print("Loading Conky config")
--