Skip to content

Instantly share code, notes, and snippets.

View mrjosh's full-sized avatar
It's always coffee time

BetterCallJosh mrjosh

It's always coffee time
View GitHub Profile
@mrjosh
mrjosh / Round_white_button_drop_shadow.xml
Created January 16, 2019 00:43 — forked from arvkmr/Round_white_button_drop_shadow.xml
Android round white button with drop shadow
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape android:shape="oval">
<gradient
android:startColor="#FF000000"
android:endColor="#00000000"
@mrjosh
mrjosh / php7_installer.sh
Created September 26, 2017 08:31
PHP 7 Installer
#!/bin/bash
wget http://de1.php.net/get/php-7.0.0.tar.bz2/from/this/mirror
tar -xvjf mirror
cd php-7.0.0/
./configure \
--with-readline \
--enable-pcntl \
--with-gettext \
--enable-phpdbg \
--enable-phpdbg-webhelper \
@mrjosh
mrjosh / laravel_queue_service_installer.sh
Last active December 31, 2016 11:50
Laravel queue service installer
#!/bin/bash
# @author Alireza Josheghani <[email protected]>
# @since 26 Dec 2016
# @package Laravel queue service installer
# download the source form github
if [ ! -f develop.tar.gz ]; then
wget https://github.com/iamalirezaj/laravel_queue_service/archive/develop.tar.gz
fi
@mrjosh
mrjosh / oh_my_bash_profile.sh
Last active January 1, 2017 20:28
Oh My Bash Profile
# Shell custom schema
# export PS1='\W > '
PS1='\[\033[01;34m\]\W > \033[0m'
# Artisan short commands
alias art='php artisan'
alias tinker='php artisan tinker'
# Php Serve alias serve
@mrjosh
mrjosh / install_codeception.sh
Last active December 31, 2016 11:16
Codeception installer bash script
if which codecept; then
echo ">>> You have already codeception <<<"
else
if which composer; then
composer global require codeception/codeception
@mrjosh
mrjosh / unixtime.php
Last active December 15, 2016 14:45
Get UnixTime With php
<?php
// Get UnixTime With php
// with this function , you can get the current unix time in php
function getUnixtime(){
$seconds = microtime(true); // true = float, false = weirdo "0.2342 123456" format