Skip to content

Instantly share code, notes, and snippets.

View bluecmd's full-sized avatar

Christian Svensson bluecmd

  • Stockholm, Sweden
View GitHub Profile
function Verify(login_information) {
ldap := newLdapConnection()
userdn := fmt.Sprintf("uid=%s,ou=people,dc=tech,dc=dreamhack,dc=se", a.Username())
err := ldap.Bind(userdn, login_information)
if err != nil {
raise Error("Login failed")
}
// Login succeeded, get groups.
@bluecmd
bluecmd / gist:b606ac951ea2d9d901d60fc541847a55
Created October 1, 2019 12:40
Quanta Leopard DDR3 3A21
Node GUID/Name Type Size
Image 0x1000000
IFD 0x1000
GbE 0x2000
PD 0x10000
DevExp1 0x10000
ME 0x7dd000
BIOS 0x800000
FV 8C8CE578-8A3D-4F1C-9935-896185C32DD3 0x80000
File CEF5B9A3-476D-497F-9FDC-E98143E0422C EFI_FV_FILETYPE_RAW 0x7ffb8
@bluecmd
bluecmd / keybase.md
Created August 13, 2019 18:25
keybase.md

Keybase proof

I hereby claim:

  • I am bluecmd on github.
  • I am bluecmd (https://keybase.io/bluecmd) on keybase.
  • I have a public key ASD4mBXwQj6cLwEeHlcMu0zrI3hdssC-96Bcdk2m1thCbgo

To claim this, I am signing this object:

@bluecmd
bluecmd / Shell.efi
Created July 13, 2019 12:34
iPXE basic menu for home usage
From latest ShellBinPkg at https://github.com/tianocore/edk2/releases
@bluecmd
bluecmd / u16550.rs
Last active June 28, 2019 11:45
u16550.rs
use crate::model::*;
use register::mmio::{ReadOnly, ReadWrite, WriteOnly};
use register::{register_bitfields, Field};
#[allow(non_snake_case)]
#[repr(C)]
union UartRegister0 {
// Activate when DLAB = 0
UARTRBR: ReadOnly<u32, UARTRBR::Register>,
@bluecmd
bluecmd / run.sh
Last active June 28, 2019 10:03
AST2500 UART minimal demo
cat << _EOF_ > boot.lds
SECTIONS
{
. = 0x0;
.text : { *(.text) }
}
_EOF_
cat << _EOF_ > boot.S
.globl reset
reset:
diff -u /home/bluecmd/cert-manager/third_party/crypto/acme/acme.go ./acme.go
--- /home/bluecmd/cert-manager/third_party/crypto/acme/acme.go 2019-04-02 22:57:39.204730727 -0700
+++ ./acme.go 2019-04-05 21:23:52.370866928 -0700
@@ -255,7 +255,7 @@
// If a caller needs to poll an order until its status is final,
// see the WaitOrder method.
func (c *Client) GetOrder(ctx context.Context, url string) (*Order, error) {
- res, err := c.get(ctx, url)
+ res, err := c.postWithJWSAccount(ctx, url, nil)
if err != nil {
SERVC WRITE_EVENT, event is c
SERVC HWL FOUND
SERVC PTT passed
sclp_hwl_request:
- length: 0x3800
- flag: 0x0
- resv1: 0x0 0x0
- type: 0x0
- reas: 0x0
- resp: 0x0
@bluecmd
bluecmd / ubuntu.conf
Created February 11, 2019 21:44
Ubuntu S390X Hyperion configuration
ARCHLVL z/Arch
FACILITY ENABLE BIT44
OSTAILOR LINUX
LPARNAME UBUNTU
CPUSERIAL 08A89F
CPUMODEL 1090
MODEL HERCULES
PLANT ZZ
diff --git a/msgenu.h b/msgenu.h
index f61fe77a..aa18cbf0 100644
--- a/msgenu.h
+++ b/msgenu.h
@@ -2186,7 +2186,8 @@ LOGM_DLL_IMPORT int panel_command_capture( char* cmd, char** resp );
#define HHC03808 "%1d:%04X %s: %s: Cannot unregister guest IP address %s"
#define HHC03809 "%1d:%04X %s: %s: Requested MTU %s too large; decreasing to %s bytes"
#define HHC03810 "%1d:%04X %s: %s: Input dropped: %s"
-//efine HHC03811 - HHC03849 (available)
+#define HHC03811 "%1d:%04X %s: %s: Output dropped: %s"