Create a file in your home and make it executable:
sudo vi ~/.local/bin/chrome
sudo chmod +x ~/.local/bin/chrome
Content of the file :
Create a file in your home and make it executable:
sudo vi ~/.local/bin/chrome
sudo chmod +x ~/.local/bin/chrome
Content of the file :
<template> | |
<div class="row"> | |
<div class="col-md-6 col-sm-6 col-xs-12"> | |
<div class="info-box"> | |
<span class="info-box-icon bg-green"><i class="fa fa-users"/></span> | |
<div class="info-box-content"> | |
<span class="info-box-text">Active users</span> | |
<span class="info-box-number">{{ usersCount || 0 }}</span> | |
</div> | |
</div> |
#!/usr/bin/env bash | |
set -e | |
git status --porcelain | ( | |
unset action | |
while read line; do | |
case "${line//[[:space:]]/}" in | |
'UU'*) action='check' ;; | |
'M'*) action='check' ;; | |
'D'*) action='ignore' ;; |
with | |
test as ( | |
select * | |
from ( | |
values | |
(123, '{"key_1": {"value_1": 1}}'::jsonb), | |
(123, '{"key_2": {"value_2": 2}}'::jsonb), | |
(123, '{"key_3": {"value_3": 3}}'::jsonb), | |
(456, '{"key_4": {"value_4": 4}}'::jsonb), | |
(456, '{"key_1": {"value_3": 4}}'::jsonb) |
#!/bin/bash | |
set -e | |
function travel() { | |
cd /var/www/$1 ${@:2} && echo -ne "\033]0;${1}\007" | |
} | |
dps() { | |
docker ps $@ | |
} |
[Desktop Entry] | |
Exec=/bin/bash -i -c "/path/to/bin/phpstorm.sh" %f | |
... or | |
Exec=/bin/zsh -i -c "/path/to/bin/phpstorm.sh" %f | |
... |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
# General config | |
POWERLEVEL9K_MODE='nerdfont-fontconfig' | |
POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k | |
# prompt | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status dir_writable time) | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator user dir vcs) | |
# other options | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true |
String.prototype.getInitials = function(glue){ | |
if (typeof glue == "undefined") { | |
var glue = true; | |
} | |
var initials = this.replace(/[^a-zA-Z- ]/g, "").match(/\b\w/g); | |
if (glue) { | |
return initials.join(''); | |
} |
<?php | |
/** | |
* Various configurations of Monolog and Whoops | |
* using a Pimple Container as service locator | |
* | |
* Monolog: https://github.com/Seldaek/monolog | |
* Pimple: https://github.com/fabpot/Pimple | |
* Whoops: https://github.com/filp/whoops | |
* Swift Mailer: https://github.com/swiftmailer/swiftmailer |