Skip to content

Instantly share code, notes, and snippets.

View devarda's full-sized avatar
💻

Arda devarda

💻
View GitHub Profile
@devarda
devarda / _ide_helper.php
Created May 23, 2019 14:02
Laravel 4.1 IDE Helper
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated for Laravel 4.1.31 on 2019-05-17.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
@devarda
devarda / Vagrantfile
Created June 26, 2019 18:40 — forked from mrfolkblues/Vagrantfile
Vagrant / Ubuntu 14.04.5 + PHP 7.1 + MariaDB 10.1 + Apache 2.4.7
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Update your Vagrant install before using.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.71.71"
@devarda
devarda / README.md
Last active August 11, 2019 00:11
Building PHP from source on Mac :: PHP 7.3.8 Compilation on macOS Mojave 10.14.5
@devarda
devarda / multiple_ssh_setting.md
Last active August 30, 2019 18:39 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@devarda
devarda / Apache MIME for httpd.conf or .htaccess
Created September 12, 2019 00:04
Apache MIME for httpd.conf or .htaccess
# Set encoding for file extensions
<IfModule mod_mime.c>
# Plain text files
AddType text/plain .txt .text .def .list .log .in
# Source files
AddType text/x-asm .s .asm
AddType text/x-c .c .cc .cxx .cpp .h .hh .dic
AddType text/x-fortran .f .for .f77 .f90
AddType text/x-pascal .p .pas
AddType text/x-java-source .java

Access file in / public

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On
    
#!/bin/bash
PROJECT_NAME="laravel-voyager"
laravel new $PROJECT_NAME
cd $PROJECT_NAME
git init .
vim .gitignore
git add .
git commit -am "fresh install"
composer require tcg/voyager
git add .
@devarda
devarda / vagrant-cheat-sheet.md
Created October 23, 2019 02:20 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@devarda
devarda / vagrant-cheat-sheet.md
Created October 23, 2019 02:20 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@devarda
devarda / get_history.sh
Created December 22, 2019 03:33 — forked from TravelingTechGuy/get_history.sh
Get your Chrome history as a CSV file
#!/bin/bash
# Locate the history file in your profile, and copy it to the same folder as this script.
# On Mac: ~/Library/Application\ Support/Google/Chrome/Default/History
# On Windows: C:\Users\YOUR USER NAME\AppData\Local\Google\Chrome\User Data\Default\History
sqlite3 History <<!
.headers on
.mode csv
.output out.csv