openpgp4fpr:83dc1fc2373f0e2797f2c7812f4a8869e66811fd
This file contains hidden or 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
# This can be due to security features built into newer Git versions, which prevent WSL paths from being accessed by Git. | |
#There is a workaround, though: disabling the check for a specific directory or all: | |
git config --global --add safe.directory '%(prefix)///wsl.localhost/ | |
git config --global --add safe.directory '*' | |
# After applying this you should be able to add the repo to Tower. | |
This file contains hidden or 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
# Set the command to execute on remote servers | |
$command = "YourCommandHere" | |
# Set the list of remote servers | |
$servers = "server1", "server2", "server3" | |
# Set the schedule for the task (every day at 8:00 AM) | |
$schedule = "0 8 * * *" | |
# Set the username and password for authentication on remote servers |
This file contains hidden or 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 | |
protected_branch='master' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [ $protected_branch = $current_branch ] | |
then | |
read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty | |
echo | |
if echo $REPLY | grep -E '^[Yy]$' > /dev/null |
This file contains hidden or 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 | |
#################################################### | |
# Super-duper-simple JSON log to JSON converter # | |
# # | |
# Install: # | |
# $ curl $RAW_GIST_URL -o jl2j # | |
# $ chmod +x jl2j # | |
# $ sudo mv jl2j /usr/local/bin # | |
# # |
This file contains hidden or 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
{ | |
"name": "strapi", | |
"private": true, | |
"version": "0.1.0", | |
"description": "A Strapi application", | |
"scripts": { | |
"develop": "strapi develop", | |
"start": "eval $(node src/secrets.js); strapi start", | |
"build": "strapi build", | |
"gcp-build": "strapi build", |
This file contains hidden or 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
#!/usr/bin/env bash | |
########################################################### | |
# Use this script to delete old versions of GAE services. # | |
# Requires gcloud SDK to be installed and authorized. # | |
# Usage: # | |
# GCP_PROJECT=my_project GAE_SERVICE=my_service KEEP=5 \ # | |
# ./gae_version_cleanup.sh # | |
########################################################### |
This file contains hidden or 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 | |
/** Enable W3 Total Cache */ | |
define('WP_CACHE', true); // Added by W3 Total Cache | |
/* Load .env */ | |
require_once 'public/vendor/autoload.php'; | |
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__); | |
$dotenv->load(); |
This file contains hidden or 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
<template> | |
<h1 v-if="status === 'success'">Success {{ complex.deep }}</h1> | |
<h1 v-else-if="status === 'error'">Error</h1> | |
<h1 v-else>Loading</h1> | |
</template> | |
<script> | |
import { mapState } from 'vuex'; | |
export default { |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "client: chrome", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceFolder}" | |
}, |
NewerOlder