- Copy Touch-ID template config into PAM settings directory:
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local- Edit this config using
nano(or you preferred editor):
sudo nano /etc/pam.d/sudo_localTo extract the changes that are in a specific commit and apply them in another project, run
git format-patch -1 commit_shaThat will generate a .patch file for the specific commit.
Then to apply it, just run:
| { | |
| "summary": "{{environment}} deployment {{status}} on {{project.name}}", | |
| "themeColor": "412888", | |
| "title": "The {{environment}} deployment is {{status}} on {{project.name}}", | |
| "sections": [ | |
| { | |
| "activityTitle": "{{user.name}}", | |
| "activitySubtitle": "{{deployment.finished_at}}", | |
| "activityImage": "{{user.avatar_url}}", | |
| "text": "The {{environment}} deployment is {{status}}." |
Sum size of binlog for a specific day
ls -lha binlog* | grep "Oct 20" | awk '{print $5}' | numfmt --from=iec | awk '{ sum += $1; } END { print sum; }' | numfmt --to=iec
Convert it to readable text file
mysqlbinlog -vv --base64-output=decode-rows binlog.190611 > binlog.190611.txt
| #!/usr/bin/env sh | |
| install_missing_dep() { | |
| if ! command -v "$1" > /dev/null 2>&1; then | |
| echo "Installing $1..." | |
| apk add "$1" | |
| fi | |
| } | |
| DEPS="curl jq coreutils" |