Do the following:
grep -rnw '/path/to/somewhere/' -e "pattern"
-r or -R is recursive, -n is line number and -w stands match the whole word. -l (lower-case L) can be added to just give the file name of matching files.
<?php | |
/** | |
* Generate a list of Status Cake Ip addresses | |
* To add allowed IPs to Nginx or Firewall | |
* from: https://www.statuscake.com/kb/knowledge-base/what-are-your-ips/ | |
*/ | |
$statuscake_locations_json = "https://app.statuscake.com/Workfloor/Locations.php?format=json"; | |
$locations = json_decode(file_get_contents($statuscake_locations_json)); | |
$output = "#STATUS CAKE IPs" . "\n"; |
for unattended installations
Ansible module: http://docs.ansible.com/ansible/debconf_module.html
query the debconf database
$ debconf-show postfix
#!/bin/sh | |
# Credits to: | |
# - http://vstone.eu/reducing-vagrant-box-size/ | |
# - https://github.com/mitchellh/vagrant/issues/343 | |
# - https://gist.github.com/adrienbrault/3775253 | |
## for vagrant related tasks, uncomment vagrant comments | |
# vagrant: Unmount project |
# 1 FOR TESTING PURPOSES ONLY!!! | |
debuglevel = 1 | |
# file format to send | |
pattern = '.txt' | |
# files to sent path | |
path = 'path = ‘/path/where/files/to/send/' | |
# delete file after sending? | |
delete_files = False |
########## START | |
RED=$'\e[0;31m' | |
R=${RED} | |
BLUE=$'\e[0;34m' | |
B=${BLUE} | |
GREEN=$'\e[0;32m' | |
G=${GREEN} | |
CYAN=$'\e[0;36m' | |
C=${CYAN} | |
YELLOW=$'\e[0;33m' |
test.yml
---
- hosts: localhost
gather_facts: no
connection: local
vars:
type: st1
<?php | |
/* | |
* 2007-2015 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
[user] | |
name = Example Name | |
email = example@example.com | |
[http] | |
sslVerify = false | |
[push] | |
default = current | |
[color] | |
ui = auto | |
[color "branch"] |