Skip to content

Instantly share code, notes, and snippets.

View CraigJPerry's full-sized avatar

Craig Perry CraigJPerry

  • Glasgow, Scotland.
View GitHub Profile
@CraigJPerry
CraigJPerry / GB7GG-Reflector-Notes.md
Last active February 6, 2018 13:14
GB7GG Reflector Notes

GB7GG User Notes

Here are the notes i've built up while learning to use GB7GG, hopefully it's useful to others! Feel free to redistribute this wherever you want.

-- Craig, MM6ZKO

If you do update or make corrections below, please share them with me at craigp84@gmail.com and i'll make sure to re-distribute.

@CraigJPerry
CraigJPerry / gmail.png
Last active August 29, 2015 14:10
How i setup my gmail
gmail.png
#!/bin/bash
#
# TITLE
# .nitrousboxrc
# DESCRIPTION
# Symlink or copy this file to ~/.nitrousboxrc on your http://nitrous.io
# box and reboot it. This will ensure your box is configured for Java
# development (which is still an experimental feature) on this project.
# AUTHOR
# Craig J Perry, <craigp84@gmail.com>
@CraigJPerry
CraigJPerry / server2012r2.rst
Last active August 29, 2015 14:09
Windows Server Lab Setup

Server 2012R2 Install Log

Disks & Partitioning

I had 2 500Gb HDDs. I wanted to mirror the hidden system partition and the C: drive. I wanted the C: drive to only consume 200Gb on each drive and the remaining space was to be striped:

  1. There's no way to achieve this with simple permissions. Due to OpenSSH's sftp-server you won't be able to implement the full requirements list but depending on the filesystem the files are being uploaded to, you can leverage [attributes][1] and ACLs to achieve some of your requirements.

  2. Yes, the sftp-server takes a -u parameter (you can set this in your sshd_config on the Subsystem sftp line) which sets the umask for all uploads.

  3. Yes, you can make use of inotify, one way may be with the incron tool although there are many ways to use inotify. Inotify allows you to have the kernel notify a userspace program on a filesystem event you identify, e.g. adding a file to a directory. You can then run a command on this event.

(3 Part 2)