Skip to content

Instantly share code, notes, and snippets.

@xpac1985
xpac1985 / sendemail_from.py
Created July 29, 2021 17:06
Splunk sendemail.py modified to allow sender/from to be a variable/token
### actual position in file may vary depending on your Splunk version, but you get the idea
*** 574,593 ****
--- 574,596 ----
if ssContent.get('action.email.cc'):
stringsForPost['action.email.cc'] = ssContent['action.email.cc']
if ssContent.get('action.email.bcc'):
stringsForPost['action.email.bcc'] = ssContent['action.email.bcc']
@xpac1985
xpac1985 / bla.mpd
Created October 21, 2020 09:05
bla.mpd
<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT1H45M20.9S" minBufferTime="PT4.0S">
<ProgramInformation></ProgramInformation>
<Period id="0" start="PT0.0S">
<AdaptationSet id="0" contentType="audio" segmentAlignment="true" bitstreamSwitching="true">
<Representation id="0" mimeType="audio/mp4" codecs="mp4a.40.2" bandwidth="128000" audioSamplingRate="44100">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
<SegmentTemplate timescale="1000000" duration="2000000" initialization="init$RepresentationID$.mp4" media="seg$RepresentationID$-$Number%05d$.mp4" startNumber="
@xpac1985
xpac1985 / nftables.xml
Created April 5, 2018 18:08
nftables Syntax Highlighting for Notepad++
<NotepadPlus>
<UserLang name="nftables" ext="" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03&quot; 04&quot;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>

Keybase proof

I hereby claim:

  • I am xpac1985 on github.
  • I am xpac (https://keybase.io/xpac) on keybase.
  • I have a public key whose fingerprint is D04E C0C4 A45E F26B 528B 41AE 9D32 A45E D11A 07DF

To claim this, I am signing this object: