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/ksh | |
# | |
VLANS="98 99 100 101 102 103 104 105 106 107 108 109 110 111 150 151" | |
VLAN100_CAP=120 | |
CEIL=190 | |
TC="echo tc " |
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
-rw-r--r-- 1 root assp 1478 Oct 12 07:58 Luxury_Algarve_Holiday_from_227pp_4_Berlin_City_Br--3096130.eml | |
-rw-r--r-- 1 root assp 1374 Oct 12 08:01 Today_Only_Buy_1_Get_1_Free_On_World_Arthritis_Day--3096134.eml | |
-rw-r--r-- 1 root assp 1478 Oct 12 08:09 Luxury_Algarve_Holiday_from_227pp_4_Berlin_City_Br--3096141.eml | |
-rw-r--r-- 1 root assp 1789 Oct 12 08:13 Say_yes--3096143.eml | |
-rw-r--r-- 1 root assp 1651 Oct 12 08:29 50_Adidas_79_Apple_70_Decathlon_31_Tiffany_CO--3096148.eml | |
-rw-r--r-- 1 root assp 1789 Oct 12 08:35 Say_yes--3096151.eml | |
-rw-r--r-- 1 root assp 1478 Oct 12 08:39 Luxury_Algarve_Holiday_from_227pp_4_Berlin_City_Br--3096155.eml | |
-rw-r--r-- 1 root assp 1756 Oct 12 08:39 Huge_40_discount_on_Ladies_Breeches_excludes_Coco_--3096156.eml | |
-rw-r--r-- 1 root assp 1789 Oct 12 08:56 Say_yes--3096165.eml |
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 [[ -r /etc/borg.conf ]] | |
then | |
. /etc/borg.conf | |
else | |
echo "Borg backup settings file missing (/etc/borg.conf)" 1>&2 | |
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
{%- set pool_options = settings.get('pool_options', {}) %} | |
{%- set php_values = settings.get('php_values', {}) %} | |
{%- set php_flags = settings.get('php_flags', {}) %} | |
/etc/php/7.0/fpm/pool.d/{{website_label}}.conf: | |
file.managed: | |
- source: salt://php_fpm.conf | |
- template: jinja | |
- user: {{site_owner}} | |
- group: {{site_owner}} | |
- website: {{ website }} |
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
pillar | |
websites: | |
test.co.uk: | |
owner: testsite | |
servers: | |
- www.test.co.uk | |
aliases: | |
- dev.test.co.uk | |
type: magento |
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
Send: N84475 G1 X68.203 Y137.091 E0.03464*95 | |
Recv: ok | |
Send: N84476 G1 X68.805 Y136.239 E0.03529*89 | |
Recv: Full RX Buffer | |
Recv: ok | |
Send: N84477 G1 X69.348 Y135.319 E0.03617*85 | |
Recv: ok | |
Send: N84478 G1 X69.852 Y134.345 E0.03712*86 | |
Recv: ok | |
Send: N84479 G1 X70.563 Y132.810 E0.05725*95 |
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
def filterActive(wine_type_var2) | |
params[:wine_type] && params[:wine_type].include?(wine_type_var2) | |
return "active" | |
end | |
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
<%= f.select(:wine_type, options_for_select( | |
[["European Style", "eu"], | |
["Qvevri Style", "qvevri"], | |
["High Quality", "hq"]], selected: f.object.wine_type), | |
include_blank:"Please Select one.") %> | |
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
<html> | |
<head> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/> | |
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="col-sm-6"> | |
<h4>Input Field Input Group</h4> |
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
s = "This is a catchphrase or common saying" | |
lines = [] | |
cnt = 0 | |
s.downcase.gsub(/[^a-z ]/, "").split(" ").each { |w| | |
lines[cnt] ||= '' | |
cnt = cnt + 1 if ( ( lines[cnt].length + w.length + 1) > 12 && lines[cnt]!='' ) | |
lines[cnt] ||= '' |