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
sensor: | |
- platform: rest | |
name: tmobile | |
resource: "http://192.168.12.1/fastmile_radio_status_web_app.cgi" | |
json_attributes: | |
- cell_5G_stats_cfg | |
- cell_LTE_stats_cfg | |
scan_interval: 30 | |
value_template: "OK" | |
- platform: template |
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
[general] | |
version = 4 | |
name = Extended Ender-3 Pro_settings | |
definition = creality_ender3 | |
[metadata] | |
setting_version = 11 | |
type = definition_changes | |
[values] |
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
<TaskerData sr="" dvi="1" tv="5.8.5"> | |
<Profile sr="prof4" ve="2"> | |
<cdate>1570498332601</cdate> | |
<edate>1570498332601</edate> | |
<id>4</id> | |
<mid0>3</mid0> | |
<nme>Front Screen</nme> | |
<Event sr="con0" ve="2"> | |
<code>2075</code> | |
<pri>0</pri> |
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
from r2.models import * | |
from r2.lib.db import queries | |
def bare_minimum(): | |
try: | |
a = Account._by_name(g.system_user) | |
except NotFound: | |
a = register(g.system_user, "password", "127.0.0.1") | |
try: |
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 | |
livestatus="/usr/local/nagios/var/rw/live" | |
acked_services="/usr/local/nagios/var/ack_services" | |
acked_hosts="/usr/local/nagios/var/ack_hosts" | |
now=`date +%s` | |
commandfile='/usr/local/nagios/var/rw/nagios.cmd' | |
# Clear acks on any currently acked service | |
while read sline; do |
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
File { | |
backup => 'main', | |
selinux_ignore_defaults => true, | |
ignore => [ '.svn','.git','CVS','.bzr'], | |
} |
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
exec { "${instance_dir}_perms": | |
command => "chmod -R 651 \"$instance_dir\"", | |
unless => "find \"$instance_dir\" -not -perm 651 | wc -l | grep -q '^0$'", | |
path => '/bin:/usr/bin:/sbin:/usr/sbin', | |
require => Acl["$instance_dir"], | |
} |
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
define ip_local_reserved_ports ( | |
$reserved_ports = [], | |
) { | |
$all_reserved_ports += $reserved_ports | |
$joined_ports = join($all_reserved_ports, ",") | |
file_line { 'joined_ports_line': | |
line => "net.ipv4.ip_local_reserved_ports = ${joined_ports}", |
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 | |
echo "Hello World: Line 1" | |
echo "Hello World: Line 2" | |
for i in $@; do | |
echo $i | |
done |
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 | |
# Writes Markdown Text to terminal | |
file="$1" | |
if [ "$file" == "" ]; then | |
exit 1 | |
fi |
NewerOlder