Skip to content

Instantly share code, notes, and snippets.

View ahmethelvaci's full-sized avatar

Ahmet Helvacı ahmethelvaci

View GitHub Profile
@ahmethelvaci
ahmethelvaci / sql.sql
Created February 17, 2020 08:34
Your password does not satisfy the current policy requirements
SET GLOBAL validate_password_policy = 0;
SET GLOBAL validate_password_length = 6;
SET GLOBAL validate_password_mixed_case_count = 0;
SET GLOBAL validate_password_number_count = 0;
SET GLOBAL validate_password_special_char_count = 0;
SHOW VARIABLES LIKE 'validate_password%';
ln -s __userdir__/storage/app/public __userdir__/public/storage
@ahmethelvaci
ahmethelvaci / laravel-nearby-locations-query-scope.php
Created February 13, 2018 11:15 — forked from stevenmaguire/laravel-nearby-locations-query-scope.php
Laravel (Illuminate) query builder scope to list neighboring locations within a given distance from a given location
<?php
/**
* Query builder scope to list neighboring locations
* within a given distance from a given location
*
* @param Illuminate\Database\Query\Builder $query Query builder instance
* @param mixed $lat Lattitude of given location
* @param mixed $lng Longitude of given location
* @param integer $radius Optional distance
$ git archive -o archive.zip HEAD $(git diff --name-only <commit_hash> <commit_hash>)
@ahmethelvaci
ahmethelvaci / git local repostory change remote url
Created August 8, 2016 13:50
git local repostory change remote url
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
@ahmethelvaci
ahmethelvaci / add remote repo to local repo on git
Created August 6, 2016 21:40
add remote repo to local repo on git
git remote add origin https://github.com/ahmethelvaci/OOP-ogreniyorum.git
@ahmethelvaci
ahmethelvaci / open a whichever file to desktop with console on linux
Created August 6, 2016 21:32
open a whichever file to desktop with console on linux-mint(ubuntu)
xdg-open git-cheat-sheet-large01.png
@ahmethelvaci
ahmethelvaci / copy from file text on linux terminal
Created August 6, 2016 21:14
copy from file text on linux terminal
xclip -sel clip < text.txt
<!DOCTYPE html>
<html>
<head>
<title>CSS Bubble</title>
<style type="text/css">
.contents {
width: 300px;
}
.content{