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
# General modules | |
Import-Module -Name PSReadLine # typeahead predictions and whatnot | |
Import-Module -Name Terminal-Icons # Icons when listing directories | |
Import-Module -Name PSFzf # activate using `Ctrl T`, `Ctrl R` and `Alt C` | |
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 # Exposes `refreshenv` | |
Invoke-Expression (&starship init powershell) | |
# Advanced completion features (arrow up and down after having started typing) | |
Set-PSReadLineOption -HistorySearchCursorMovesToEnd | |
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward |
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": { | |
"action": "globalSummon", | |
"name": "_quake", | |
"dropdownDuration": 200, |
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
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
############# | |
# Notes # | |
############# | |
# This config assumes you have a Nerd Font installed and enabled in your terminal. | |
# I use 'FiraCode Nerd Font Mono', but you should be able to use any Nerd Font you like. |
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
#!/bin/bash | |
# | |
# Unraid Userscript (but should run on any linux distro) | |
# Log and display latest known use of docker image digests for each image. | |
# | |
# Recommended to set as a 5 minute cron (`*/5 * * * *`) | |
# | |
# If something goes wrong you can pull the image by digest instead of `latest` | |
# See: https://docs.docker.com/reference/cli/docker/image/pull/#pull-an-image-by-digest-immutable-identifier | |
## |
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
{ | |
// 1. Use these exact dependencies | |
"devDependencies": { | |
"husky": "=8.0.3", | |
"lint-staged": "=13.2.1" | |
} | |
// 2. Make sure it installs when people install dependencies | |
"scripts": { | |
"prepare": "husky install" |
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
// Todo - Replace next line with your own | |
const DISCORD_WEBHOOK_URL = 'https://discord.com/api/webhooks/YOUR_WEBHOOK_URL'; | |
export default { | |
async email(message, env, ctx) { | |
const url = DISCORD_WEBHOOK_URL; | |
const { from, to } = message; | |
const subject = message.headers.get('subject') || '(no subject)' |
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
# Check whether a docker image exists on Dockerhub. | |
# | |
# Usage: | |
# if (Docker-Tag-Exists -Repository "unityci/base" -Tag "windows-0.17.0") { | |
# echo "Image exists." | |
# } else { | |
# echo "Image does not exist." | |
# } | |
function Docker-Tag-Exists { | |
[CmdletBinding()] |
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
# | |
# Git attributes for Unity projects | |
# | |
# Compiled by the GameCI community under the MIT license - https://game.ci | |
# | |
# Latest version at https://gist.github.com/webbertakken/ff250a0d5e59a8aae961c2e509c07fbc | |
# | |
# Ensure that text files that any contributor introduces to the repository have their line endings normalized | |
* text=auto |
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 App\Validator\Constraints; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
*/ | |
class DtoUniqueEntity extends Constraint |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 100 | |
tab_width = 2 |
NewerOlder