Skip to content

Instantly share code, notes, and snippets.

View jaraddowning's full-sized avatar

Jarad Downing jaraddowning

  • A lonely trail in the US south east.
View GitHub Profile
#!/bin/bash
# PURPOSE:
# TO BACK UP ALL FILES AND FOLDERS FROM A GIVEN DIRECTORY
# Directory to back up is set with the constant BACK_UP_LOCATION
# Directory to save the back up to is /IT/backup/ and is set with the constant BACK_UP_DIR
# Directory to save the log files to is /IT/backup/log/ and is set by changing the tail end of the constant BACK_UP_LOG_DIR
# Obviously additional directories can be added to the back up by adding additional constants and incorporating that tar command(s) to go with them
# Based on a script by Rowland Holden https://codereview.stackexchange.com/questions/262837/linux-backup-script-written-in-bash-for-tar
In order for this to work on Ubuntu the renderer must be networkd.
This will cause gnome to think your network is disconnected, I guess I need to do a pill request to fix that. :)
Some configurations depend on previous settings so be careful if you remove the bond from the config, just swap the adaptor name in for the bridge.
All networks have vlan1 so this will work even if all you have is a dumb switch.
@jaraddowning
jaraddowning / ghost_run_01.log
Created May 5, 2021 19:15
Ghost upgrade woes....
The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this to debug something, you should run `ghost start` instead.
+ sudo node current/index.js
[2021-05-05 19:09:16] INFO Ghost is running in production...
[2021-05-05 19:09:16] INFO Your site is now available on https://whatsgnu.today/
[2021-05-05 19:09:16] INFO Ctrl+C to shut down
[2021-05-05 19:09:16] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED.
[2021-05-05 19:09:16] WARN Tries: 0
[2021-05-05 19:09:16] WARN Retrying...
[2021-05-05 19:09:16] WARN Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED.
[2021-05-05 19:09:16] WARN Tries: 1
# Some servers require this option to be enabled, negotiation module should be installed
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# Uncomment line below if 500 error
# RewriteBase /install
@jaraddowning
jaraddowning / cswitch.conf
Created May 17, 2019 15:08
Switch configuration
version 15.2
no service pad
no service timestamps debug uptime
service timestamps log datetime msec
service password-encryption
service sequence-numbers
!
hostname cswitch
!
boot-start-marker
Starting with plugins: Array(6)
plugins.ts:151 Loading community-color-schemes: /Applications/Terminus.app/Contents/Resources/builtin-plugins/terminus-community-color-schemes/dist/index.js
plugins.ts:151 Loading core: /Applications/Terminus.app/Contents/Resources/builtin-plugins/terminus-core/dist/index.js
plugins.ts:151 Loading plugin-manager: /Applications/Terminus.app/Contents/Resources/builtin-plugins/terminus-plugin-manager/dist/index.js
plugins.ts:151 Loading settings: /Applications/Terminus.app/Contents/Resources/builtin-plugins/terminus-settings/dist/index.js
plugins.ts:151 Loading ssh: /Applications/Terminus.app/Contents/Resources/builtin-plugins/terminus-ssh/dist/index.js
internal/process/warning.js:18 (node:804) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
writeOut @ internal/process/warning.js:18
plugins.ts:151 Loading terminal: /Applications/Terminus.app/Contents/Re
d-i partman-partitioning/no_bootable_gpt_biosgrub boolean false
d-i partman-partitioning/no_bootable_gpt_efi boolean false
# enforce usage of GPT - a must have to use EFI!
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt
@jaraddowning
jaraddowning / children help
Created January 6, 2012 20:18
User model with added roles
class User < ActiveRecord::Base
hobo_user_model # Don't put anything above this
fields do
name :string, :required
email_address :email_address, :login => true
agency :string
job_title :string
administrator :boolean, :default => false