Skip to content

Instantly share code, notes, and snippets.

View dalen's full-sized avatar

Erik Dalén dalen

View GitHub Profile
@dalen
dalen / WACCF-Requiem.pas
Last active February 27, 2023 22:59
Requiem - WACCF Patch generator
{
Patch generator for Requiem and
Weapons, Armor, Clothing and Clutter Fixes
}
unit RequiemWACCFPatcher;
const
requiemFile = 'Requiem.esp';
waccfFile = 'Weapons Armor Clothing & Clutter Fixes.esp';
@dalen
dalen / authproxy.erb
Created December 6, 2013 15:24
PuppetDB filtering proxy Requires jq 1.3+ and mod_ext_filter in apache
Listen 8080
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName <%= @fqdn %>:8080
SSLEngine on
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!ADH:!RC4:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP:!RC2
SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/<%= @fqdn %>.pem
@dalen
dalen / CACO - Survival Mode.pas
Last active July 6, 2020 20:26
Add Skyrim survival mode effects to CACO ingestables
{
Purpose: Add survival mode effects to CACO ingestables
Game: The Elder Scrolls V: Skyrim
Author: dalen <erik.gustav.dalen@gmail.com>
Version: 1
Note that these effects are defined in Update.esm, so this can be used without survival mode installed
in that case these effects have no effect on the player.
}
unit userscript;
Scriptname _RC_QuestScript extends Quest
Keyword Property ActorTypeNPC Auto
Actor Property PlayerRef Auto
GlobalVariable Property _RC_GlobalToggleMessages Auto
GlobalVariable Property _RC_GlobalCapacityBase Auto
GlobalVariable Property _RC_GlobalCuirassBase Auto
GlobalVariable Property _RC_GlobalCuirassPerc Auto
@dalen
dalen / Set City Flora Owned.pas
Last active September 17, 2018 18:50
Set skyrim flora in cities to owned
{
Purpose: Set flora in cities to owned
Game: The Elder Scrolls V: Skyrim
Author: dalen <erik.gustav.dalen@gmail.com>
Version: 2
It is just odd that you can plunder the gardens without consequence.
}
unit userscript;

Keybase proof

I hereby claim:

  • I am dalen on github.
  • I am dalen (https://keybase.io/dalen) on keybase.
  • I have a public key whose fingerprint is 7898 8C4F 42F0 81C3 0C29 D974 412B 992E 84F6 BA52

To claim this, I am signing this object:

stat("/spotify/puppetmaster/checked_out/production/modules/mysql/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/apollo/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/inifile/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/hostbase/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/zabbix/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/shibboleth/lib/puppet/type/ldapquery::user.rb", 0x7fff5f0a5360) = -1 ENOENT (No such file or directory)
stat("/spotify/puppetmaster/checked_out/production/modules/kafka
@dalen
dalen / gist:8419913
Last active January 3, 2016 05:59
Optimize puppet CA using apache
in puppet.conf add (not needed in recent puppet versions, 3.5+ or something):
cadir = $ssldir/ca { mode = 775 }
cacert = $cadir/ca_crt.pem { mode = 664 }
csrdir = $cadir/requests { mode = 775 }
signeddir = $cadir/signed { mode = 775 }
in apache site add (change /etc/puppet/ssl to your ssldir path):
An error occurred while collecting items to be installed
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.google.gson,2.1.0.v201303041604.
MD5 hash is not as expected. Expected: 76afc958bfd4ba9a8c797ec66a7ef425 and found 22e7b66b0dbbbca9e940d445ee513d00.
Problems downloading artifact: osgi.bundle,com.google.guava,12.0.0.v201212092141.
MD5 hash is not as expected. Expected: 6d8e42dc0c6d3e71da8da801c4b20b9f and found 22e7b66b0dbbbca9e940d445ee513d00.
Problems downloading artifact: osgi.bundle,com.google.inject,3.0.0.v201203062045.
MD5 hash is not as expected. Expected: 40af32c6cf87b26fb3fd30ed925af898 and found 22e7b66b0dbbbca9e940d445ee513d00.
Problems downloading artifact: osgi.bundle,com.google.inject.multibindings,3.0.0.v20130529-1354.
MD5 hash is not as expected. Expected: 8894e8c151520bcd7d2e223e1bbe3839 and found 22e7b66b0dbbbca9e940d445ee513d00.
@dalen
dalen / gist:6886532
Created October 8, 2013 15:30
duplicate indices in puppetdb
puppetdb=# SELECT pg_size_pretty(sum(pg_relation_size(idx))::bigint) AS size,
(array_agg(idx))[1] AS idx1, (array_agg(idx))[2] AS idx2,
(array_agg(idx))[3] AS idx3, (array_agg(idx))[4] AS idx4
FROM (
SELECT indexrelid::regclass AS idx, (indrelid::text ||E'\n'|| indclass::text ||E'\n'|| indkey::text ||E'\n'||
coalesce(indexprs::text,'')||E'\n' || coalesce(indpred::text,'')) AS KEY
FROM pg_index) sub
GROUP BY KEY HAVING count(*)>1
ORDER BY sum(pg_relation_size(idx)) DESC;
size | idx1 | idx2 | idx3 | idx4