Skip to content

Instantly share code, notes, and snippets.

View mattConn's full-sized avatar
👾
UX engineer @ Harbour

Matt mattConn

👾
UX engineer @ Harbour
View GitHub Profile
@mattConn
mattConn / ubuntu-server-setup.txt
Created June 28, 2017 20:36
Ubuntu server setup notes.
Basic ubuntu home server set up
For shell login greeting
/etc/issue.net
or change line “Banner” in /etc/ssh/sshd_config
BUT
This will display banner before authentication; may be best in bashrc
Enable SSH
@mattConn
mattConn / include_file_with_directive.sh
Created July 21, 2017 02:27
Uses sed to insert a file's contents at a specific string (directive), then remove the string (leaves behind a space).
sed -i '/##INSERT HERE/r file_to_insert.txt' file_inserted_to.txt
# now remove directive
sed -i 's/##INSERT HERE//g' file_inserted_to.txt
This file has been truncated, but you can view the full file.
Last login: Mon Aug 13 15:28:51 on ttys001
gMatthews-MBP:mathematics-programming matthew$ gd
Matthews-MBP:development matthew$ cd repo/mathematics-programming/
Matthews-MBP:mathematics-programming matthew$
@mattConn
mattConn / timeline.css
Last active January 7, 2023 23:28
Vertical timeline component. Example: https://mattconn.github.io/timeline/
/* timeline event styles */
.timeline-event {
display: flex;
}
.timeline-event .timeline-event_copy {
padding: 0 1em;
}
.timeline-event .timeline-event_copy.current {