"dotfiles"
A collection of my "dotfiles" on Windows. I use this in combination with Cmder with a git bash shell.
[user] | |
useConfigOnly = true | |
# name = Robin Hood | |
# email = your-email@example.com | |
signingkey = <gpg signing key> | |
[alias] | |
st = "status" | |
lg = log --graph --date=human --pretty=default | |
df = "diff --" |
# | |
# Available at https://git.io/sven-git-aliases | |
# | |
# run "curl -fsSL https://git.io/sven-git-aliases | sh" to apply these automagically. | |
# | |
git config alias.st "status -sb" | |
git config alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
git config alias.df "diff --" | |
git config alias.branch-name "rev-parse --abbrev-ref HEAD" | |
git config alias.find = "log --pretty=\"format:%Cblue%H %Cgreen%s%Creset\" --abbrev-commit --grep" |
<?php | |
namespace Tests; | |
use Illuminate\Support\Str; | |
use PHPUnit\Framework\TestCase as BaseTestCase; | |
class TestCase extends BaseTestCase | |
{ | |
/** |
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
{ | |
"bold_folder_labels": false, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/OLD/Material-Theme-Darker.tmTheme", | |
"detect_indentation": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |
<?php | |
class Database { | |
// Properties: | |
private $host; | |
private $dbname; | |
private $user; | |
private $pass; | |
private $error; | |
private $stmt; |
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
server { | |
listen 80 default_server; # Listen for regular HTTP requests | |
listen [::]:80 default_server; # Handle requests over IPv6 | |
server_name _; # Respond to any and all server_names | |
return 301 https://$host$request_uri; # Redirect to https | |
} | |
server { |
<?php | |
/** | |
* Log a player in. | |
* | |
* @param LoginPlayerRequest $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function auth(LoginPlayerRequest $request) | |
{ | |
// The user supplied the wrong credentials. |