Skip to content

Instantly share code, notes, and snippets.

🤙

Dan Sullivan deepeeess

🤙
Block or report user

Report or block deepeeess

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:183214cc230c55e44eea906a151a9708
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:~$
View gist:b1d4bd0891c3947008d0beee6b3eeeaa
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
View gist:7f0358f46174f892782fada9632f5f39
[![Coverage Status](https://coveralls.io/repos/github/dsulli99/perfecto/badge.svg?branch=master)](https://coveralls.io/github/dsulli99/perfecto?branch=master)
View gist:9c4e88d020e4a1e9fd4d15486522fda2
<% 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 %>
View gist:1f122051485831e81ab5fd57bf6d6816
<% @asset.charge_segment.unprocessed.each do |segment| %>
<%= link_to segment.id, send(segment.class.name.underscore + "_path", segment.id) %>
View gist:d91abb7105a8ca1dfb0abb3de5994db1
#!/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
View gist:1cb9ebc455e0307d367deb4d6a495689
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
View gist:448a5db7ee2b4e68fa330eb2ec469aff
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
View gist:eb93df4c02d971658d46f3a6a0ca2fa4
/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
View gist:f1da25b0a5a9aa16a236519f03b23984
FilesMatch:
this: \.css\.gz$
ForceType: text/css
Header: set Content-Encoding gzip
FilesMatch:
this: \.js\.gz$
ForceType: text/javascript
Header: set Content-Encoding gzip
You can’t perform that action at this time.