Skip to content

Instantly share code, notes, and snippets.

View emyasnikov's full-sized avatar

Evgenij 'Warl' Myasnikov emyasnikov

  • Germany
View GitHub Profile
@emyasnikov
emyasnikov / install_libsass.sh
Last active July 7, 2019 11:08 — forked from feryardiant/install_libsass.sh
Easy way to Install libsass & sassc in Ubuntu, `curl -sSL https://git.io/fji3v | sudo bash`
#!/bin/bash
# Based on https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87
set -e
# Installing dependencies
apt-get -q -y install build-essential automake libtool git
buildDir="/tmp/sass-build"
@emyasnikov
emyasnikov / raspbian-stretch-lite-slimdown.md
Created February 4, 2021 20:52 — forked from hhromic/raspbian-stretch-lite-slimdown.md
Slimming Down Raspbian Stretch Lite

Slimming Down Raspbian Stretch Lite

Notes for slimming down a fresh installation of Raspbian Stretch Lite. This guide does not strip Raspbian of basic functionality such as Bluetooth and mDNS.

Instructions

Install a fresh Raspbian Stretch Lite image into the SD card ([source][1]).

$ unzip -p 2018-04-18-raspbian-stretch-lite.zip | dd bs=4M of=/dev/sdX conv=fsync

@emyasnikov
emyasnikov / v-data-table-with-handle.vue
Created February 5, 2021 16:20 — forked from abhaywawale/v-data-table-with-handle.vue
Where user can select the text and interact with the table
<template>
<v-container fluid>
<v-layout align-start justify-center>
<v-data-table :headers="headers" :items="desserts" hide-actions class="elevation-2">
<template slot="items" slot-scope="props">
<td class="handle" style="max-width: 28px;">::</td>
<td>{{ props.item.name }}</td>
<td class="text-xs-right">{{ props.item.calories }}</td>
<td class="text-xs-right">{{ props.item.fat }}</td>
<td class="text-xs-right">{{ props.item.carbs }}</td>
@emyasnikov
emyasnikov / gist:867c8318f2166c9c7b044f0f0a9aa972
Created March 10, 2021 11:41 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@emyasnikov
emyasnikov / gitflow-breakdown.md
Created April 14, 2021 14:00 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@emyasnikov
emyasnikov / auth.php
Created April 29, 2021 09:47 — forked from pretzelhands/auth.php
German Language files for Laravel 5.4
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
@emyasnikov
emyasnikov / Kernel.php
Last active July 29, 2021 09:00 — forked from phillipsharring/Kernel.php
Laravel Artisan command to perform MySQL Dump using database connection information in the .env file. Forked from https://gist.github.com/kkiernan/bdd0954d0149b89c372a
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@emyasnikov
emyasnikov / PullWithoutHistoryInGit.md
Created July 4, 2023 20:43 — forked from krlozadan/PullWithoutHistoryInGit.md
Pull from another repository without history using Git

Pull from another repository without history using Git

Ok, so lets contextualize ourselves

  • Let's say you have a main repo A which could be an open source project or a company project
  • Project A served as blueprint for your next project, B. So you either forked or cloned A and removed the .git folder to have a clean git history
  • You start working on project B as you would normally do

Now... at some point A changes and you want to pull those changes to B without getting the entire commit history. Maybe there's only 1 commit, maybe there's thousands.

@emyasnikov
emyasnikov / gist:5de6e73b7b06cd12b4a9c424d808acb6
Last active April 2, 2024 09:52 — forked from knu/gist:111055
How to mass-rename tags and push them with Git
# make sure your tags are up to date
git fetch origin
# rename all tags
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git tag -d $t; done
# synchronise with the server
git push --tags --prune origin refs/tags/*