Skip to content

Instantly share code, notes, and snippets.

@Grohden
Grohden / android-Appfile
Last active July 22, 2024 07:24
Release Flutter fastlane + azure pipelines (based on chimon2000/03b0fb1fa2f96c5933e3c9cb1ba59bc7 gist)
package_name("com.foo.bar")
@aguinaldotupy
aguinaldotupy / phpstorm
Created August 17, 2020 14:16
Open file (flare ignition - laravel) with phpstorm
arg=${1}
pattern=".*file(:\/\/|\=)(.*)&line=(.*)"
# Get the file path.
lineFile=$(echo "${arg}" | sed -r "s/${pattern}/\2/")
file=$(echo "${lineFile}" | sed 's/\%2F/\//g')
# Get the line number.
line=$(echo "${arg}" | sed -r "s/${pattern}/\3/")
@sebroad
sebroad / .gitignore
Last active May 27, 2022 11:41 — forked from roder/xmlsqlite.py
Convert XML files into SQLite
.vscode/launch.json
xmlsqlite.db3
.vscode/settings.json
@ezequiel9
ezequiel9 / Install Redis on Windows 10, PHP 7+
Created July 26, 2018 01:23
Install Redis on Windows 10, PHP 7+
Install Redis extension on your pc
Download the CORRECT version the DDL from the following link
https://pecl.php.net/package/redis/4.1.0/windows
Put the dll in the correct folder
Wamp -> C:\wamp\bin\php\php-XXXX\ext
Laragon -> C:\laragon\bin\php\php-XXX\ext
Edit the php.ini file adding
@EmadAdly
EmadAdly / Add-ESLint-to-Laravel-Mix.md
Last active January 20, 2024 16:55
Adding eslint to your Laravel application

1. Add eslint and eslint-loader and eslint-plugin-vue to your projects package.json file

npm i eslint eslint-loader eslint-plugin-vue --save-dev

2. Create a base configuration by --init

@eiri
eiri / README.md
Created January 17, 2018 20:29
Installing Prometheus on Debian

Install Prometheus on Debian

install gosu

just to not wrestle with sudo and exec

$ sudo apt-get update
$ sudo apt-get install gosu

Create prometheus user

@Razoxane
Razoxane / laravel_conditional_index_migration.php
Created August 8, 2017 01:35
Laravel - Create Index If Not Exists / Drop Index If Exists
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class LaravelConditionalIndexMigration extends Migration
{
/**
* Run the migrations.
#server side:
#server live directory: /var/www/domain.com
#server repository: /var/repo/site.git
1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init".
2. go to /var/repo/site.git and init the folder as git bare
$git init --bare
--bare means that our folder will have no source files, just the version control.
@oviniciusfeitosa
oviniciusfeitosa / gist:9189e0d02cdfd969769f60d54f54e16d
Created August 8, 2016 21:42
How to set "~/.composer/vendor/bin" directory in your PATH?
To put this folder on the PATH environment variable type
export PATH="$PATH:$HOME/.composer/vendor/bin"
This appends the folder to your existing PATH, however, it is only active for your current terminal session.
If you want it to be automatically set, it depends on the shell you are using. For bash you can append this line to $HOME/.bashrc using your favourite editor or type the following on the shell
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc