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 | |
################################################################ | |
# Install a printer on Arch Linux with cups using command line # | |
# Used for a HP PSC 1510 with default driver # | |
################################################################ | |
sudo pacman -S cups | |
sudo systemctl start org.cups.cupsd |
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
log_group_name="/aws/log-group-name" | |
log_stream_names=$(aws logs describe-log-streams \ | |
--log-group-name "$log_group_name" \ | |
--order-by LastEventTime \ | |
--descending \ | |
--max-items 50 \ | |
--output text \ | |
--query 'logStreams[*].logStreamName') |
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 to .gitignore. | |
.lando.yml | |
.ddev | |
.vscode | |
# Drush aliases can be used by anyone, but you might not want to add to repo. | |
# drush/sites/self.sites.yml |
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
From: http://web.archive.org/web/20160904174444/http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html | |
As you may know the rsync's --delete options if misused could make severe damage. | |
To prevent this you can use the --itemize-change and the --dry-run options to figure out how the command will behave before launching the real one. | |
The output will be something like that: | |
.d..t..g... ./ | |
.f...p.g... Something.pdf |
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
--- | |
defaults: false | |
services: | |
amazeeio-dnsmasq: | |
Config: | |
Labels: | |
- pygmy.defaults: true |
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
import "bytes" | |
func StreamToByte(stream io.Reader) []byte { | |
buf := new(bytes.Buffer) | |
buf.ReadFrom(stream) | |
return buf.Bytes() | |
} | |
func StreamToString(stream io.Reader) string { | |
buf := new(bytes.Buffer) |
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
// +build mage | |
// An abstraction layer for Amazeeio's Lagoon Make process. | |
// Made to suit compatibility with v0.22.1 | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" |
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
// +build mage | |
// An abstraction layer for Amazeeio's Lagoon Make process. | |
// Made to suit compatibility with v0.22.1 | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" |
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-content .\db.sql | docker-compose exec -T test bash -c 'drush sql-cli' |
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 | |
# Database importer. | |
# | |
# Used with the govCMS scaffolding projects by Department of Finance. | |
# Created independently of the Department of Finance by Karl Hepworth. | |
# @fubarhouse / [email protected] | |
# | |
# Pass one argument to this script to provide the path or drush alias | |
# for either syncing or importing from a sql file. This should ideally |
NewerOlder