A collection of my "dotfiles" on Windows. I use this in combination with Cmder with a git bash shell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 --" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use Illuminate\Support\Str; | |
use PHPUnit\Framework\TestCase as BaseTestCase; | |
class TestCase extends BaseTestCase | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Database { | |
// Properties: | |
private $host; | |
private $dbname; | |
private $user; | |
private $pass; | |
private $error; | |
private $stmt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Log a player in. | |
* | |
* @param LoginPlayerRequest $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function auth(LoginPlayerRequest $request) | |
{ | |
// The user supplied the wrong credentials. |
NewerOlder