Home | Dep Sea pln | Arrv S.F. | Arrv Werq |
---|---|---|---|
5:13 AM O | 5:39 AM | 5:47 AM | |
5:43 AM O | 6:09 AM | 6:17 AM | |
6:09 AM 🚲 | 6:30 AM | 6:50 AM | 7:05 AM 🚲 |
6:13 AM O | 6:40 AM | 6:48 AM | |
6:16 AM 🏍 | 6:30 AM | 6:50 AM | 7:06 AM |
6:39 AM 🚲 | 7:00 AM | 7:20 AM | 7:35 AM 🚲 |
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 | |
if [ "$#" -lt "1" ]; then | |
echo "usage" | |
echo "$0 GITHUB_USERNAME UNIX_USERNAME" | |
echo "$0 GITHUB_AND_UNIX_USERNAME" | |
echo "$0 GITHUB_USERNAME -G wheel UNIX_USERNAME" | |
echo "$0 GITHUB_USERNAME --home /opt/foo -G wheel UNIX_USERNAME" | |
exit 1 | |
fi |
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
for keyfile in /etc/apt/keyrings/*.asc; do cat "$keyfile" | gpg --with-colons --import-options show-only --import | awk -F: '$1 == "fpr" {print $10}' | xargs -L 1 apt-key del; done |
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 | |
if [ -z "$1" -o "$1" = "mount" ]; then | |
action=mount | |
elif [ "$1" = "umount" ]; then | |
action=umount | |
elif [ "$1" = "wait" ]; then | |
action=wait | |
else | |
echo "missing action" |
If you're running the linuxserver.io dockerized Unifi Network Application / Unifi Controller and you've SSH'd into the Unifi AP and set the inform URL as described in the README by running
set-inform http://$address:8080/inform
and when you run the info
command to see the result you see the message
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
require 'json' | |
# Example ruby hash string which exercises all of the permutations of position and type | |
# See http://json.org/ | |
ruby_hash_text='{"alpha"=>{"first second > third"=>"first second > third", "after comma > foo"=>:symbolvalue, "another after comma > foo"=>10}, "bravo"=>{:symbol=>:symbolvalue, :aftercomma=>10, :anotheraftercomma=>"first second > third"}, "charlie"=>{1=>10, 2=>"first second > third", 3=>:symbolvalue}, "delta"=>["first second > third", "after comma > foo"], "echo"=>[:symbol, :aftercomma], "foxtrot"=>[1, 2]}' | |
puts ruby_hash_text | |
# Transform object string symbols to quoted strings | |
ruby_hash_text.gsub!(/([{,]\s*):([^>\s]+)\s*=>/, '\1"\2"=>') |
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 | |
/** | |
* Plugin Name: Disable Native Login | |
* Plugin URI: https://cs.cementhorizon.com/ | |
* Description: Disable the native username password login in wordpress | |
* Version: 1.0.0 | |
* Author: Gene Wood | |
* Author URI: https://cs.cementhorizon.com/ | |
* License: GPL2 |
If the AWS API key and secret which you use and and are stored in ~/.aws/credentials
in
a profile called default
then you don't need to set the SOURCE_PROFILE_NAME
in the code.
If the profile name in ~/.aws/credentials
is something other than default
then set
SOURCE_PROFILE_NAME
to that name. For example if your ~/.aws/credentials
looked like this
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 | |
if [ -z "$1" -o "$1" = "mount" ]; then | |
action=mount | |
elif [ "$1" = "umount" ]; then | |
action=umount | |
else | |
echo "missing action" | |
exit 1 | |
fi |
my-package-name
├── my_module_name
│ └── __init__.py
├── LICENSE.txt
├── README.rst
├── requirements.txt
└── pyproject.toml
- Create a Python package name which is ideally all lower case with no dashes but may contain dashes (but not underscores)