Known Issues: On High Sierra there are problems related to the screen brightness and sleep issues.
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 | |
################################################################ | |
# 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 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
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 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
# 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 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
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 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
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 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 | |
# Test Ansile role inside container | |
# | |
# Inspired by the wonderful work of Jeff Geerling (@geerlingguy) | |
# https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181 | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NEUTRAL='\033[0m' |
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 | |
/** | |
* @file | |
* Module file for add_more_example. | |
*/ | |
/** | |
* Implements hook_menu(). | |
* |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"path/filepath" | |
) | |
func run() ([]string, error) { | |
searchDir := "c:/path/to/dir" |