Use this in a text editor like Atom or Sublime Text:
Find: ([^\( ]+)\.has_key\(([^)]*)\)
Replace: $2 in $1
Insprired by: https://gist.github.com/shawnjgoff/3543601
#!/bin/bash | |
# Let's get some color going! | |
red=$'\e[1;31m' | |
grn=$'\e[1;32m' | |
end=$'\e[0m' | |
# cd to cwd of the script (presumably in it's proper location) | |
cd "$(dirname "$0")" | |
printf "\nInstalling Sketch templates..." |
# Numerous always-ignore extensions | |
*.diff | |
*.err | |
*.log | |
*.orig | |
*.rej | |
*.swo | |
*.swp | |
*.vi | |
*.zip |
Name: python-modulename | |
Version: 0.0.0 | |
Release: 1%{?dist} | |
License: BSD # Will vary between each package | |
Summary: Short summary from the project URL | |
Url: https://github.com/user/reponame | |
Group: Development/Libraries/Python | |
Source: modulename-%{version}.tar.gz # Must match your downloaded archive | |
BuildRequires: python-devel, python-distribute | |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
#!/usr/bin/env bash | |
# Inspired by: http://nicolasgallagher.com/mac-osx-bootable-backup-drive-with-rsync/ | |
# --acls update the destination ACLs to be the same as the source ACLs | |
# --archive turn on archive mode (recursive copy + retain attributes) | |
# --delete delete any files that have been deleted locally | |
# --delete-excluded delete any files (on DST) that are part of the list of excluded files | |
# --exclude-from reference a list of files to exclude | |
# --hard-links preserve hard-links |
Use this in a text editor like Atom or Sublime Text:
Find: ([^\( ]+)\.has_key\(([^)]*)\)
Replace: $2 in $1
Insprired by: https://gist.github.com/shawnjgoff/3543601
Generally speaking, the administrative procedures are more streamlined for G suite than for Zimbra so we can expect less admin busy work but more direct support for TCEO staff.
# Setting up pipenv for MacOS | |
1. Install homebrew. | |
2. `brew install python3` | |
3. `pip3 install pipenv` | |
4. Change to your project directory | |
5. `pipenv --three` | |
6. `pipenv install` |
#!/bin/sh | |
# | |
# You can start the script on boot, in the background, by adding it to /etc/rc.local: | |
# echo -e "/path/to/logmon.sh &\n" >> /etc/rc.local | |
# | |
tail -Fn0 /path/to/that/logfile.log | \ | |
while read line ; do | |
echo "$line" | grep "thing" | |
if [ $? = 0 ] |