Skip to content

Instantly share code, notes, and snippets.

View bmcculley's full-sized avatar

bmcculley

View GitHub Profile
@bmcculley
bmcculley / psprojectitem.objecttype.kv.txt
Created June 8, 2021 12:06
PeopleSoft PSPROJECTITEM table OBJECTTYPE column to name value
{ '0': 'Record',
'1': 'Index',
'2': 'Field',
'3': 'Field Format',
'4': 'Translate Values',
'5': 'Page',
'6': 'Menu',
'7': 'Component',
'8': 'Record PC',
'9': 'Menu PC'
@bmcculley
bmcculley / fileServer.go
Created March 1, 2021 22:52
Golang HTTP/3 fileserver example
package main
import (
"flag"
"fmt"
"log"
"net/http"
"path"
"github.com/lucas-clemente/quic-go/http3"
@bmcculley
bmcculley / README.md
Last active March 26, 2024 10:51
A Go embed example of serving static files at the root URL path.
CREATE TABLE Persons (
PersonID int,
FirstName varchar(255),
LastName varchar(255),
Address varchar(255),
City varchar(255),
PostalCode varchar(255),
Country varchar(255)
);
This file has been truncated, but you can view the full file.
address=/01mspmd5yalky8.com/0.0.0.0
address=/01mspmd5yalky8.com/::1
address=/0byv9mgbn0.com/0.0.0.0
address=/0byv9mgbn0.com/::1
address=/analytics.247sports.com/0.0.0.0
address=/analytics.247sports.com/::1
address=/www.analytics.247sports.com/0.0.0.0
address=/www.analytics.247sports.com/::1
address=/2no.co/0.0.0.0
address=/2no.co/::1
@bmcculley
bmcculley / server.c
Created June 12, 2020 04:30
example c server
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <err.h>
SELECT DISTINCT d.roleuser,
a.rolename,
b.classid AS PERMISSION_LIST,
b.menuname,
b.baritemname AS "COMPONENT NAME",
b.pnlitemname,
c.descr AS "PAGE DESCRIPTION",
Decode(b.displayonly, 1, 'Y',
'N') AS "DISPLAY ONLY?",
e.navigation
#include <iostream>
#include <thread>
#include <chrono>
using namespace std;
int main(int argc, char const *argv[])
{
cout << "Hello, world";
this_thread::sleep_for (chrono::seconds(5));
cerr << "this is an error";
@bmcculley
bmcculley / index.html
Created October 11, 2019 04:45
Narrow Jumbotron Template for Bootstrap 4
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="bmcculley">
<meta name="generator" content="e42.xyz">
<title>Narrow Jumbotron Template for Bootstrap 4</title>
@bmcculley
bmcculley / example.py
Created September 28, 2019 02:38
An example of running a shell command from python and capturing its output.
import subprocess
MyOut = subprocess.Popen(['ls', '-l', '.'],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
stdout,stderr = MyOut.communicate()
if stdout:
print(stdout.decode('utf-8'))