Skip to content

Instantly share code, notes, and snippets.

View datacustodian's full-sized avatar

datacustodian

View GitHub Profile
@datacustodian
datacustodian / Nextcloud_on_Google_Cloud_Platform.md
Last active March 6, 2024 11:28
Nextcloud on Google Cloud Platform

Nextcloud on Google Cloud Platform

This documentation describes configuration and deployment steps for Nextcloud on Google Cloud Platform (GCP).

Adapted for Google Cloud Computing (GCP) based on blog post by Carsten Rieger:

https://www.c-rieger.de/nextcloud-installation-guide/

Carsten Rieger updated new instructions that can be adapted for cloud instances.

@datacustodian
datacustodian / Setting_up_bridge_network_on_Ubuntu.md
Last active April 16, 2017 12:06
Setting up bridge network on Ubuntu

Setting up bridge network on Ubuntu

Edit /etc/network/interfaces in a text editor.

DEFAULT

# The loopback network interface
auto lo
iface lo inet loopback

The primary network interface

@datacustodian
datacustodian / Data_Transfer_Notes.md
Last active April 17, 2017 00:13
Data Transfer Notes

Data Transfer Notes

Lessons learned from transferring roughly 14TB of data onto four 4TB HDs.

  • Avoid direct data transfers across mixed platforms using hardware solutions
  • Use NTFS as the common file system across mixed OS environment
  • Use Windows to format exFAT volumes
  • Don’t let Windows touch a Mac or Linux formatted exFAT volume
  • It takes roughly 3 hours to transfer 1TB over USB 3.0 from HFS+ to exFAT using a HD caddy
  • Create a data transfer plan before you start the process
@datacustodian
datacustodian / Document_Conversion.md
Last active December 7, 2023 15:22
Document Conversion

Document Conversion

This document outlines some ideas for document conversion on Linux and Mac OS X platforms using command line tools. Distribute documents as plain text using UTF-8 encoding whenever possible. Everyone should embrace the mantra "plain text is beautiful".

Document Metadata

Use file command to obtain basic metadata for most file formats. For image files make sure you have ImageMagick installed, then use identify command to extract image metadata.

Encoding Conversion

@datacustodian
datacustodian / File_Stats.md
Last active June 24, 2017 14:42
File Stats

File Stats bash Scripts

Two scripts for compiling file statistics in a directory. The first script lists stats in lexicographic order of file extensions. The second script lists stats in descending order of frequency by extension.

Usage:

To obtain file statistics of the directory path-to-starting-directory:

./filestats.sh [path-to-starting-directory]

@datacustodian
datacustodian / Ubuntu_Desktop_Post-Installation_Steps.md
Last active July 12, 2024 05:12
Ubuntu Desktop Post-Installation Steps

Ubuntu Desktop Post-Installation Steps

Ubuntu Desktop comes pre-loaded with many software packages, so it is pretty usable as is. Every step in this guide is optional; follow only the steps you need.

Note: Use apt-get command instead of apt command if you are running a Ubuntu version older than 16.04 LTS.

Table of Contents

Update to Latest Packages
Remove Outdated Unused Packages

Enable Xcode

sudo dscl . append /Groups/_developer GroupMembership username
@datacustodian
datacustodian / CentOS_7_Firewall_Whitelisting.md
Created June 24, 2017 15:11
CentOS 7 Firewall Whitelisting

CentOS 7 Firewall Whitelisting

List sources for your zone:

firewall-cmd --permanent --zone=public --list-sources

If there are none, you can start to add them, this is your "whitelist"

firewall-cmd --permanent --zone=public --add-source=192.168.100.0/24

firewall-cmd --permanent --zone=public --add-source=192.168.222.123/32

@datacustodian
datacustodian / Reduce_CPU_usage_of_compiz_GNU_visual_effects.md
Created June 24, 2017 15:13
Reduce CPU usage of compiz GNU visual effects

Reduce CPU usage of compiz GNU visual effects

sudo apt install --reinstall gvfs
sudo apt install compizconfig-settings-manager

Adjust settings as appropriate

@datacustodian
datacustodian / Find_Windows_Product_Key.md
Last active June 24, 2017 15:47
Find Windows Product Key

Find Windows Product Key

Method 1

Launch PowerShell and type:

(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

Method 2