Skip to content

Instantly share code, notes, and snippets.

pi@master_pi_4h4e:~$ time ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no pi@192.168.70.3 "uptime"
22:44:55 up 19 min, 0 users, load average: 0.06, 0.04, 0.00
real 0m0.736s
user 0m0.190s
sys 0m0.040s
pi@master_pi_4h4e:~$
cri-cdb-test.xxx:
----------
ID: git-website-staging
Function: git.latest
Name: git@gxxx:CDB/cdb.git
Result: False
Comment: Failed to check remote refs: Unable to authenticate using identity file:
fatal: cannot exec '/tmp/tmp8MBwIJ': Permission denied
fatal: unable to fork
[![Coverage Status](https://coveralls.io/repos/github/dsulli99/perfecto/badge.svg?branch=master)](https://coveralls.io/github/dsulli99/perfecto?branch=master)
<% if @asset.billable_entity.nil? || @asset.billable_entity.user.fas_accounts_users.count == 0 %>
<div class="form-group">
<select class='form-control' id='_fas_accounts_users_id'>
<option value="">None</option>
</select>
</div>
<% else %>
<%= f.collection_select(:fas_accounts_users_id, @asset.billable_entity.user.fas_accounts_users, :id, :serialize_details, :include_blank => 'None', hide_label: true, :selected => @asset.fas_accounts_user_id) %>
<% end %>
<% @asset.charge_segment.unprocessed.each do |segment| %>
<%= link_to segment.id, send(segment.class.name.underscore + "_path", segment.id) %>
#!/bin/sh
#THIS REQUIRES THE FOLLOWING LINE TO BE CONFIGURED IN /etc/sudoers
#some.account.name ALL = NOPASSWD: /sbin/service crond *
if [ `whoami` == some.account.name ]; then
export GALAXY_RUN_ALL=1
sudo /sbin/service crond stop
while pgrep galaxy-dropbox > /dev/null; do sleep 1 && echo "waiting for galaxy-dropbox to finish"; done
/group/galaxy/galaxy-dist/run.sh --stop-daemon && sleep 15
cd /group/galaxy/galaxy-dist; sh run.sh --daemon --log-file /group/galaxy/log/galaxy.log
while ! echo exit | nc localhost 8080; do sleep 1 && echo "waiting for galaxy to start"; done
Somewhat Centered
ALSO SOMEWHAT CENTERED
I am inserting a manual linebreak at 80 characters here. This is almost the 123
ALSO SOMEWHAT CENTERED
Beginning End
2016-10-17T15:36:48Z DEBUG args='tar' '--exclude=/var/lib/ipa/backup' '--xattrs' '--selinux' '-cf' '/tmp/tmp0KAKnWipa/ipa/files.tar' '/usr/share/ipa/html' '/root/.pki' '/etc/pki/pki-tomcat' '/etc/sysconfig/pki' '/etc/httpd/alias' '/var/lib/pki' '/var/lib/ipa/sysrestore' '/var/lib/ipa-client/sysrestore' '/var/lib/sss/pubconf/krb5.include.d/' '/var/lib/authconfig/last' '/var/lib/certmonger' '/var/lib/ipa' '/var/run/dirsrv' '/var/lock/dirsrv' '/etc/dirsrv/slapd-SOMEDOMAIN-EDU' '/var/lib/dirsrv/scripts-SOMEDOMAIN-EDU' '/var/lib/dirsrv/slapd-SOMEDOMAIN-EDU' '/etc/resolv.conf' '/etc/sysconfig/pki-tomcat' '/etc/sysconfig/dirsrv' '/etc/sysconfig/ntpd' '/etc/sysconfig/krb5kdc' '/etc/sysconfig/ipa-dnskeysyncd' '/etc/sysconfig/ipa-ods-exporter' '/etc/sysconfig/authconfig' '/etc/ipa/nssdb/pwdfile.txt' '/etc/pki/ca-trust/source/ipa.p11-kit' '/etc/nsswitch.conf' '/etc/krb5.keytab' '/etc/sssd/sssd.conf' '/etc/openldap/ldap.conf' '/etc/security/limits.conf' '/etc/httpd/conf/password.conf' '/etc/httpd/conf/ipa.keytab' '/etc/i
/etc/httpd/conf.d/{{ pillar['fqdn'] }}-ssl.conf:
apache.configfile:
- config:
- VirtualHost:
this: '*:443'
SSLEngine: 'on'
Header: set Access-Control-Allow-Origin "https://{{ pillar['fqdn'] }}"
SSLCertificateFile: /opt/certbot/config/live/{{ pillar['fqdn'] }}/cert.pem
SSLCertificateKeyFile: /opt/certbot/config/live/{{ pillar['fqdn'] }}/privkey.pem
SSLCertificateChainFile: /opt/certbot/config/live/{{ pillar['fqdn'] }}/fullchain.pem
FilesMatch:
this: \.css\.gz$
ForceType: text/css
Header: set Content-Encoding gzip
FilesMatch:
this: \.js\.gz$
ForceType: text/javascript
Header: set Content-Encoding gzip