Skip to content

Instantly share code, notes, and snippets.

View bryaneaton's full-sized avatar
🏖️
Tis the season

Bryan Eaton bryaneaton

🏖️
Tis the season
  • Maryville, TN
View GitHub Profile
@bryaneaton
bryaneaton / sp_whoisactive_param.sql
Last active January 22, 2018 20:25
Who is active - Useful Parameters
exec DW_CTG.dbo.sp_whoisactive @filter = 'dsuser', @filter_type = 'login', @show_sleeping_spids = 0
ogr2ogr -f MSSQLSpatial "MSSQL:server=CTG-XXXX;database=XXX;UID=dsuser;PWD=XXXXXXX" "C:\Users\eatbry\Downloads\political-bnd_tx\txdot-counties\DallasFortWorthMetro_Dissolved.shp"
@bryaneaton
bryaneaton / csv_view.ps1
Created March 1, 2018 18:56
Lightweight CSV viewer using a Powershell function
# .NET GridView
Import-Csv yourfile.csv |Out-GridView
# Console Viewer
Import-Csv yourfile.csv |Format-Table -AutoSize
Import-Csv yourfile.csv |Format-List
@bryaneaton
bryaneaton / README.md
Created August 21, 2018 23:58 — forked from Remiii/README.md
How to delete Vault (AWS Glacier)

How to delete Vault (AWS Glacier)

This Gist give some tips in order to remove AWS Glacier Vault with AWS CLI (ie. https://aws.amazon.com/en/cli/).

Step 1 / Retrive inventory

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION
@bryaneaton
bryaneaton / LinuxMountExample.sh
Created October 23, 2018 18:19
Mounting a windows share on linux
# Mounting a windows share on linux
sudo mount -t cifs //$SERVER/folder $HOME/folder -o username=$USER,domain=$DOMAIN,uid=$USER,vers=2.0
@bryaneaton
bryaneaton / sync_playlists_to_users.py
Created March 2, 2019 02:29 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
import requests
import xmltodict
@bryaneaton
bryaneaton / tmux-cheatsheet.markdown
Created April 3, 2019 18:15 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bryaneaton
bryaneaton / journalctl
Created September 5, 2019 18:21
journalctl commands i can never remember
journalctl --since 09:00 --until "1 hour ago"
journalctl -u geoserver --since 09:00
// See this for important info :
http://docs.geoserver.org/stable/en/user/_sources/rest/examples/curl.txt
// Get all workspaces
curl -v -u admin:geoserver -GET http://localhost:8080/geoserver/rest/workspaces.xml
// Create a new WORKSPACE
curl -u admin:geoserver -v -XPOST -H 'Content-type:text/xml'
@bryaneaton
bryaneaton / geoserver
Created September 13, 2019 13:11 — forked from dancingfrog/geoserver
Sample /etc/init.d script for running GeoServer as a service
#!/bin/sh
### BEGIN INIT INFO
# Provides: GeoServer
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Starts and stops the GeoServer, which should be located at /usr/share/geoserver
### END INIT INFO