Skip to content

Instantly share code, notes, and snippets.

@morgajel
morgajel / .bashrc
Created March 24, 2023 04:36
.bashrc prompt colorization
if [[ "$TERM" == "xterm-256color" ]] ; then
# This snippet can replace the existing block in your .bashrc and provides the following benefits:
# 1. It checksums your host's FQDN, then assigns a color so your prompt for it. This means every host has a (semi) unique color
# 2. it checksums your username, then does the same thing.
# This means your username is always the same color, and your hostname is consistent-yet-different.
# colors range between 21 and 231 on this page: https://robotmoon.com/256-colors/#shell-prompt
# enjoy! - morgajel
num=$((0x$(echo `hostname -f` | md5sum | cut -f 1 -d " " | cut -c 1-4)))
color=$((num%210+21))
@morgajel
morgajel / foo.sh
Created May 20, 2015 15:21
fpm error
[root@myhost /]# cat /tmp/derp
/etc/hosts
/root/.bash_profile
/tmp/unique.list
[root@myhost /]# fpm --edit -s dir -a noarch --rpm-user root --rpm-group root -t rpm -n mypkg -v '6.0.0' --iteration=1 -C / --inputs=/tmp/derp
/usr/local/share/gems/gems/fpm-1.3.3/lib/fpm/util.rb:165:in `copy_entry': Invalid argument - mknod error (Errno::EINVAL)
from /usr/local/share/gems/gems/fpm-1.3.3/lib/fpm/package/dir.rb:187:in `rescue in copy'
from /usr/local/share/gems/gems/fpm-1.3.3/lib/fpm/package/dir.rb:181:in `copy'
from /usr/local/share/gems/gems/fpm-1.3.3/lib/fpm/package/dir.rb:148:in `block in clone'
from /usr/share/ruby/find.rb:43:in `block in find'
@morgajel
morgajel / check.conf
Created May 11, 2015 16:59
password not showing up in debug log (correct behavior, I think?)
object CheckCommand "check_mssql_health" {
import "plugin-check-command"
#command = "$USER1$/check_mssql_health --server $host.name$ --username Monitoring --password $mssqlCredential$ --offlineok --mode $ARG1$"
command =[ PluginMorgNagPlugDir + "/check_mssql_health"]
arguments = {
"--server" = "$address$"
"--password" = "$mssql_password$"
"--username" = "$mssql_username$"
"--mode" = "$mssql_mode$"
[global]
blah blah blah
more stuff
[serverA]
host = 192.168.2.59
port = 1433
dump file = /tmp/freetds.log
[serverB]
The Issue:
Submitting a form fails when the action of the form does not have a protocol.
Note that this exact same script works in 0.9.1, but fails in 1.8
Created in a simple file with a single layer.
Misc. details: It's in RGB mode and has an alpha layer, but no layer mask.
Error while executing script-fu-layer-effects-bevel-and-emboss:
Error: ( : 1) Procedure execution of gimp-selection-layer-alpha failed on invalid input arguments: Item 'rext copy' (111) cannot be used because it has not been added to an image
@morgajel
morgajel / gist:d291d4c2871f6c51e147
Created January 25, 2015 21:08
Campaign Cartographer 3 wine error
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:WINNLSEnableIME hwnd 0x10262 enable -1: stub!
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:sfc:SFC_3 0
err:ole:create_server class {000c101c-0000-0000-c000-000000000046} not registered
err:ole:CoGetClassObject no class object {000c101c-0000-0000-c000-000000000046} could be created for context 0x4
fixme:advapi:RegisterEventSourceA ((null),"MsiInstaller"): stub
fixme:advapi:RegisterEventSourceW (L"",L"MsiInstaller"): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0002,0x0000,0x000003f7,(nil),0x0006,0x00000000,0x9c9c698,(nil)): stub
@morgajel
morgajel / gist:066839cc158d056ea505
Last active August 29, 2015 14:13
Slow Response from check_vmware_api
Credentials have the read-only role on vcenter server 5.5. This was using check_vmware_api.pl v7.1.0-beta2.
jesse.morgan @ det1r6ut001 $ time ./check_vmware_api.pl -vvv -D vcenter.localdomain.com -f .vmware -l cpu -s usage
[extra-opts] check_vmware_api.pl -vvv -D vcenter.localdomain.com -f .vmware -l cpu -s usage
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                 from            from           from
 to             Host 1          Host 2         Host 3
Octet         .10.x .11.x     .10.x .11.x    .10.x .11.x
  2            OK    OK        OK    OK       OK    OK
  3            OK    OK        --    --       --    --
  
  4            OK    OK        OK    OK       OK    OK
  5            --    --        OK    OK       --    --
 

Ardos, The Lightbringer (light, war, air, evil, sun, law)

Ardos is the sun. A vain god who believes his word is law. He is the husband of Broda.

Broda, The Earth Mother (life, knowledge, earth, good, protection, animal)

Broda is the ground below, savior from the heat and source of life. She is the mother of Silnae and Elden, and wife of Ardos.