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
// | |
//sudo /etc/init.d/elasticsearch start | |
// Start | |
sudo systemctl start elasticsearch.service | |
// Check | |
curl 127.0.0.1:9200 | |
// Get some stuff | |
wget http://127.0.0.1:9200/_stats?format=json |
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
//while in the dir | |
dotnet new sln | |
dotnet new webapi -o Project.Api | |
dotnet new classlib -o Project.Module | |
//add to solution: | |
dotnet sln add Project.Api/Project.Api.csproj Project.Core/Project.Core.csproj Project.Data/Project.Data.csproj etc... | |
//link them: |
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
search: (\$)(\w+)_(\w)([\w-]*) | |
replace: $1$2\U$3$4 |
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 -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew cask install google-chrome | |
brew cask install visual-studio-code | |
brew cask install docker | |
brew install git | |
brew install composer | |
brew install node | |
mkdir ~/.npm-global | |
npm config set prefix '~/.npm-global' | |
export PATH=~/.npm-global/bin:$PATH |
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/sh | |
pipeline { | |
agent any | |
stages { | |
stage('Checkout Repo') { | |
steps { | |
checkout scm | |
} | |
} | |
stage('Build') { |
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
body{ | |
// Dev tool, remove once done! // | |
@include media('xs') { | |
&::before{ | |
content: "xs"; | |
position: fixed; | |
top: 0px; | |
height: 20px; | |
width: 100%; | |
background-color: #D9B504; |
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
add_filter( 'timber/loader/loader', function( $loader ){ | |
$loader->addPath( __DIR__ . "/views/components", "components" ); | |
return $loader; | |
} ); | |
// To use the namespace in your Twig template, just include it with an @ prefix. | |
{{ include( '@components/filename.twig' ) }} |
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
// Breakpoints (this map lives in variables). | |
$breakpoint:( | |
'xxsmall': 400px, // max-width | |
'xsmall': 400px, // min-width... | |
'small': 600px, | |
'medium': 1000px, | |
'large': 1200px, | |
'xlarge': 1400px, | |
'xxlarge': 1600px, |
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 start and end of BST. | |
*/ | |
$bst-month = date( 'Y/03/d', strtotime('last sunday of march' ) ); | |
$gmt-month = date( 'Y/10/d', strtotime('last sunday of october' ) ); | |
$event_date_sanitized = $datetime->format( 'Y/m/d' ); | |
if ( $result->allday ){ | |
if ( $event_date_sanitized >= $bst-month && $event_date_sanitized <= $gmt-month ){ | |
$datetime->modify( '+1 day' ); |
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/sh | |
pipeline { | |
agent any | |
stages { | |
stage('Checkout Repo') { | |
steps { | |
checkout scm | |
} | |
} | |
stage('Build') { |
NewerOlder