Skip to content

Instantly share code, notes, and snippets.

View michaelachmann's full-sized avatar

Michael Achmann-Denkler michaelachmann

View GitHub Profile
#!/usr/local/bin/perl
# password_change.cgi
# Actually update a user's password by directly modifying /etc/shadow
BEGIN { push(@INC, "."); };
use WebminCore;
$ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl";
&init_config();
&ReadParse();
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<body>
<center><h2>
<xsl:value-of select="teiCorpus/teiHeader/fileDesc/titleStmt/title"/>

Keybase proof

I hereby claim:

  • I am michaelachmann on github.
  • I am chaichy (https://keybase.io/chaichy) on keybase.
  • I have a public key ASBO12pDa0CAptYnVyn9rsos8eKaeKGXbIht6U92aqK8BAo

To claim this, I am signing this object:

@michaelachmann
michaelachmann / numbers.py
Created March 18, 2018 13:04
Quick Converter for Decimal / Binary / Hexedecimal numbers.
import math
def convert(inp):
if math.isnan(inp) == False:
print "Bin:" + bin(inp)
print "Dec:" + str(inp)
print "Hex:" + hex(inp)
else:
print "Not a number!"