Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♂️

Jason Gerfen jas-

🏃‍♂️
View GitHub Profile
@jas-
jas- / recovery
Created Sep 27, 2014
Recovery tool for deleted files
View recovery
#!/bin/bash
#######################################################################################################
#######################################################################################################
#######################################################################################################
###### #######
###### #######
###### This script will help you to recover the accidentally #######
###### deleted data from crashed linux file systems #######
###### Version-2 #######
###### Script created by (Srijan Kishore) #######
@jas-
jas- / class.stream.php
Last active Oct 21, 2020
PHP stream handler w/ support for multiple files over PUT
View class.stream.php
<?php
/**
* stream - Handle raw input stream
*
* LICENSE: This source file is subject to version 3.01 of the GPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/licenses/gpl.html. If you did not receive a copy of
* the GPL License and are unable to obtain it through the web, please
*
@jas-
jas- / readme.md
Last active Aug 29, 2015
LAMP stack w/ DHCPD 802.1Q Configuration
View readme.md

802.1Q networking, LAMP stack, TFPT & MySQL user permissions

Details on the current configuration of tyr.example.com can be found below. 10/11/2012

Kernel

Raid

Details for the raid1 configuration are as follows:

fdisk

@jas-
jas- / readme.md
Last active Jul 1, 2019
Samba FS Active Directory Implementation
View readme.md

Samba Configuration for Active Directory

Kerberos realm authentication using LDAP authorization via MS Windows Active Directory

Some details on the SAMBA configuration. Original Samba, ADS, Winbind documention was found http://gentoo-wiki.com/HOWTO_Adding_a_Samba_Server_into_an_existing_AD_Domain.

Pre-Installation for Gentoo using emerge

This particular installation of Samba requires a few additional packages and features to ensure that Active Directory authentication works properly. In this first step we add the necessary use flags to the Gentoo Portage package system.

@jas-
jas- / readme.md
Last active Feb 7, 2021
Ulteo-OVD implementation guide
View readme.md

Ulteo Remote Application Server

Installation, configuration, patching & troubleshooting guide to the Ulteo-OVD services. Additional details of this software can be found on their website. Here are some useful resources.

  1. Ulteo home - http://www.ulteo.com/home/
  2. Ulteo Downloads - http://ulteo.com/home/en/ovdi/openvirtualdesktop/3.0
  3. Ulteo OVD source code - http://www.ulteo.com/home/en/download/sourcecode
  4. Additional OVD source code access - http://archive.ulteo.com/mirror/ovd/releases/sources/
  5. Community forums - https://groups.google.com/forum/?fromgroups#!forum/ulteo-ovd-community-support
@jas-
jas- / readme.md
Last active Jan 25, 2019
FreeBSD jail w/ services
View readme.md

myprint.scl.utah.edu

The myprint service handles wireless printing for the MLIB PC labs. FreeBSD is the operating system that was chosen for this service primarily for its security features.

Details on the current configuration of myprint.scl.utah.edu can be found below. 07/12/2013

Host OS configuration

This first section details the various configuration options applied to the kernel, NAT & traffic passing to jailed (non routable net) env, usage of IPFW service to filter incoming & outgoing traffic to specific subnets & or targets, OS, Jail & TCP stack hardening options

@jas-
jas- / JSON-data.json
Last active Jul 11, 2017
HTML5 Template population w/ JSON object example
View JSON-data.json
{
"id": 1,
"callID": "N6494 .M35",
"author": "Scott, Michael",
"title": "Arte correo",
"date": "1981",
"description": "At head of cover: ENAP, UNAM.",
"language": [
"Spanish",
"Portuguese"
@jas-
jas- / laag-one2many.sql
Last active Aug 29, 2015
SQLite Structure & Contents for small collection
View laag-one2many.sql
-- Handles dates
-- |_ id referenced by dates2objects as foreign key
DROP TABLE IF EXISTS `dates`;
CREATE TABLE `dates` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`date` INT(4) UNIQUE DEFAULT NULL
);
-- Handles origin
-- |_ id referenced by origin2objects as foreign key
@jas-
jas- / .gdbinit
Last active May 13, 2020
Memory scraping
View .gdbinit
python
sys.path.insert(0, '/path/to/module/dir')
import hexdump
end
@jas-
jas- / example.js
Last active Oct 4, 2017
crypto.createSign() using DH private key use case
View example.js
/* Bob's environment */
var crypto = require('crypto');
var rsa = require('ursa');
crypto.DEFAULT_ENCODING = 'hex'
var dhBob = crypto.getDiffieHellman('modp18')
, kBob = dhBob.generateKeys()
, keysBob = {
pubKey: dhBob.getPublicKey(),