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
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: NetworkPolicy | |
metadata: | |
name: default-deny-egress | |
namespace: default | |
spec: | |
podSelector: {} | |
policyTypes: | |
- Egress |
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
input { | |
file { | |
path => [ "/mnt/weblogs/*access.log" ] | |
type => "apache-access" | |
sincedb_path => "/opt/logstash/sincedb-access" | |
} | |
file { | |
path => [ "/mnt/weblogs/*error.log" ] | |
type => "apache-error" | |
sincedb_path => "/opt/logstash/sincedb-error" |
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
# /opt/kiosk.sh | |
#!/bin/bash | |
xset -dpms | |
xset s off | |
openbox-session & | |
while true; do | |
#rm -rf ~/.{config,cache}/chromium/ | |
#/usr/bin/chromium-browser --kiosk --no-first-run 'http://braindump.cat.pdx.edu' |
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
$stashes = hiera('stash') | |
$defaults = { | |
'cname' => $cname, | |
} | |
create_resources(cecs::role::dfsproxy::stash, $stashes, $defaults) |
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
#!/usr/bin/env ruby | |
codons = [] | |
a = ['A', 'C', 'T', 'G'] * 3 | |
a.permutation(3).to_a.uniq.each do |codon| | |
codons.push(codon.join().to_s) | |
end | |
puts "create table refseq (id varchar(20) not null, name varchar(20), description text, #{codons.sort.join(" varchar(3) default 0, ").to_s} varchar(3) default 0);" |
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
refseq table | |
pid name | |
-------------- | |
1 thing1 | |
2 thing2 | |
3 thing3 | |
refseq count table |
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
root@puppetmaster:/etc/puppet/hieradata/fqdn# hiera clientcert=client2 mysql::server::override_options | |
mysql::server::override_options | |
root@puppetmaster:/etc/puppet/hieradata/fqdn# hiera mysql::server::override_options clientcert=client2 | |
{"mysqld"=>{"max_connections"=>"1024"}} |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCoj2pSm2nQ9j4yvkbmfGd2h7qBkUdJihvos1+8f4Y78RHCTs+IeXf9vSiaQZfdiQxpdZSPwjLcFINwZaKO9/oED+B+3crKgVGKZNHFhNVP21laquk/lueqoJx9SpEKDMx4OS3CVrrf3BBkYQowiGXJtrDBnV6vcV2P3n6gLLkM2bq/yGxGYd3vmUuIjktahg2A0aDjV1EvfhQUSBDOTGBaMi8+oLEc0hWcBai2IZTYDoCZIrYFunqLk9zFYhrzkdMK10RjR1a1+xaScn+hr3olMS848NU5lhmDNq+oSdAUEUaJDL5B7r1iQWPt8n1k9qewZYGPc6M5Ze51CURyKjkPWZ7TIR0DrzwhFZqRq313og39J3rXaKnyvG2J1sZLTV231pbga4bXaTexVwBx+xmb/JGDY8dGzGoklZ/mnGbMjRBjvEmYMXfZgRl8yIM8fm4TKaGeTytGkEv3DVI/knVjElet6NwNPNKaJ/s9XLvtM22blJEaRXIDenYwDezDGuxp/rE0uWccThGp53fxQb1IxN8lWMuSYQPy5zFMb5r3GsPjLS6ZusdJVgSnjuesQUcPItDfHgBZ6KPj2Oe5qAE12EDQ0YoaKQemjGsKAJxtLtvfZ9rqrdvTjGipUgWAMT8Xt7a3lEUBUNkyiar8Wamb9+0Cv7ExANYTdwHdh942Zw== [email protected] |
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
root@darkarchon:~# cat /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla | |
[Disable suspend by default] | |
Identity=unix-user:* | |
Action=org.freedesktop.login1.suspend | |
ResultActive=no | |
[Disable suspend for all sessions] | |
Identity=unix-user:* | |
Action=org.freedesktop.login1.suspend-multiple-sessions | |
ResultActive=no |
NewerOlder