Skip to content

Instantly share code, notes, and snippets.

View Bellov's full-sized avatar
:octocat:

Alexander Atanasov Bellov

:octocat:
  • Sofia, Bulgaria
View GitHub Profile
<?php
namespace Oferti\Console\Commands;
use Illuminate\Console\Command;
use Oferti\Models\Listing;
use Oferti\Models\Parther;
use Oferti\Models\Category;
use Oferti\Models\City;
use Oferti\Models\CategoryMapping;
@Bellov
Bellov / All time zones in an array
Last active August 26, 2018 17:17
All time zones in an array
return array(
'Pacific/Midway' => '(UTC-11:00) Midway',
'Pacific/Niue' => '(UTC-11:00) Niue',
'Pacific/Pago_Pago' => '(UTC-11:00) Pago Pago',
'America/Adak' => '(UTC-10:00) Adak',
'Pacific/Honolulu' => '(UTC-10:00) Honolulu',
'Pacific/Johnston' => '(UTC-10:00) Johnston',
'Pacific/Rarotonga' => '(UTC-10:00) Rarotonga',
'Pacific/Tahiti' => '(UTC-10:00) Tahiti',
'Pacific/Marquesas' => '(UTC-09:30) Marquesas',
@Bellov
Bellov / Visual Studio Code shortcuts
Last active August 26, 2018 17:17
Visual Studio Code shortcuts
# Duplicate Lines
# Shift + Option + Up Down Arrow Keys
# Move line up or down
# Alt / Option + Up Down Arrow Keys
# Write on multiple lines (without mouse)
# Shift + Option + Command + Up Down Arrow Keys
# Write on multiple lines (with mouse)
@Bellov
Bellov / Spring Boot Annotations
Last active August 26, 2018 17:16
Spring Boot Annotations
@SpringBootApllication
we use this annotation to mark the main class
@EnableAutoConfiguration
as its name says, enables auto-configuration. it means that Spring Boot looks for auto-configuration beans
@ConditionalOnClass and @conditionalOnMissingClass
using these conditions spring will only use the marked auto-configuration bean if the class in the
@Bellov
Bellov / webdev_online_resources.md
Created August 26, 2018 17:12 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@Bellov
Bellov / docker-help.md
Created August 26, 2018 17:14 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@Bellov
Bellov / Laravel ENV file for PQSL
Last active September 14, 2018 10:55
env file for laravel pgsql db
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:***************************
APP_URL=http://localhost
DB_CONNECTION=pgsql
DB_HOST=hostname
DB_PORT=5432
DB_DATABASE=Your database name
DB_USERNAME=Your database username
@Bellov
Bellov / Stylesheet file for ATOM
Last active October 5, 2018 13:15
My stylesheet file for ATOM
/* variable defaults */
@syntax-cursor-line: transparent;
/* stuff in the status bar */
status-bar {
text-transform: lowercase;
.deprecation-cop-status {
color: inherit;
@Bellov
Bellov / key.md
Created February 7, 2019 07:57
FREE IntelliJ IDEA key 2018.2!

READ or DIE

  • put 0.0.0.0 account.jetbrains.com into your hosts file (C:\Windows\System32\drivers\etc\hosts or /etc/hosts)
  • for GayOS macOS read that
  • use the key below
K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIy
@Bellov
Bellov / my bash_profile
Created May 13, 2019 10:46
Bash Profile
#!/bin/bash
# ~/.bashrc - bash interactive session config
#
# is this an interactive session?
#
[[ -z "${PS1}" ]] && return
#