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
# https://github.com/mperham/sidekiq/blob/master/examples/systemd/sidekiq.service | |
# | |
# systemd unit file for CentOS 7, Ubuntu 15.04 | |
# | |
# Customize this file based on your bundler location, app directory, etc. | |
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu). | |
# Run: | |
# - systemctl enable sidekiq | |
# - systemctl {start,stop,restart} sidekiq | |
# |
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/sh | |
#NOTE pass a path as a first argument, i.e. `./recursive_tmutil.sh ~/` | |
find $1 -type directory -exec tmutil isexcluded {} + \ | |
| grep -F "[Excluded]" \ | |
| sed -E 's/^\[Excluded\][[:space:]]*//' \ | |
| awk '{ print length, $0 }' \ | |
| sort -n -s \ | |
| cut -d" " -f2- \ | |
| awk ' { if(length(res) == 0) { res[$0] }; mark=0; for(r in res) { if(match($0, r)== 1){ mark=1; break } }; if(mark==0) res[$0] } END { for (i in res) print i } ' \ |
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
# Rails 5.0.2 | |
# Ruby 2.4.0p0 | |
> Date.current | |
=> Fri, 01 Feb 2019 | |
> date = 1.day.ago | |
=> Thu, 31 Jan 2019 10:13:59 UTC +00:00 | |
> date + 1.month | |
=> Thu, 28 Feb 2019 10:13:59 UTC +00:00 |
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
# Fail2Ban filter for dante | |
# This filter is for sockd.log, NOT for errors log | |
# | |
# Prevent a bruteforce of a login/password combination and some other strange actions. | |
[INCLUDES] | |
# Read syslog common prefixes | |
before = common.conf | |
[Definition] |