Skip to content

Instantly share code, notes, and snippets.

View valkirilov's full-sized avatar
:octocat:
Trying to make the world a better place by writing code

Valentin Kirilov valkirilov

:octocat:
Trying to make the world a better place by writing code
View GitHub Profile
@valkirilov
valkirilov / PrismicApiService.php
Last active June 4, 2020 11:23
A Laravel cache wrapper of the Prismic API PHP client.
<?php
namespace App\Services;
use Illuminate\Support\Facades\Cache;
use Prismic\Api;
class PrismicApiService
{
@valkirilov
valkirilov / SCP
Last active December 6, 2019 15:36
Trransfer files between your devices over the network
# Instal Open SSH server on the remote machine
sudo apt install openssh-server
# General usage
scp <options> source_path destination_path
# Copy a file to the remote system using scp command
scp file user@host:/path/to/file
# Copy a file from the remote system using scp command

Keybase proof

I hereby claim:

  • I am valkirilov on github.
  • I am valkirilov (https://keybase.io/valkirilov) on keybase.
  • I have a public key ASD72_PVXyo-6j1hqTA4zWjkupbeXBF4XqX-1QMtYXLSsQo

To claim this, I am signing this object:

ssh -L 3307:localhost:3306 [test.com]
mysql -h 127.0.0.1 -P 3307 -u [user] -p
mysqldump -h 127.0.0.1 -P 3307 -u [user] -p [db_name] > [db_name.sql]
@valkirilov
valkirilov / LESS Mixins
Created October 6, 2015 14:09
A list of my LESS mixins
.box-sizing(@box-model) {
-webkit-box-sizing: @box-model; // Safari <= 5
-moz-box-sizing: @box-model; // Firefox <= 19
box-sizing: @box-model;
}
.border-top-radius(@radius) {
border-top-right-radius: @radius;
border-top-left-radius: @radius;
}