Skip to content

Instantly share code, notes, and snippets.

View PhilMurwin's full-sized avatar

Phil Murwin PhilMurwin

View GitHub Profile
@PhilMurwin
PhilMurwin / RasPiNamecheapDNS.md
Last active April 20, 2024 16:45
How to setup DDclient on Raspberry Pi for use with Namecheap DynDNS

How to use Namecheap DynDNS service with ddclient on the Raspberry Pi

Log into your Raspberry Pi (by ssh for example) or open a terminal window if you are working directly on Pi. In the first step we have to install ddclient, a DynDNS software, on the Pi. For this purpose, the following two commands are necessary.

sudo apt-get update
sudo apt-get install ddclient

Note: During installation an installation wizard opens and wants to know some things from you. Here you can safely enter what you want, because we have to adjust the configuration file manually either way, because the wizard does not support the Namecheap.com interface.

@PhilMurwin
PhilMurwin / git-ssh-auth-win-setup.md
Created October 12, 2018 20:19 — forked from bsara/git-ssh-auth-win-setup.md
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@PhilMurwin
PhilMurwin / SchemaSearch.sql
Last active February 1, 2019 19:29
Search SQL Server Schema for keywords, helpful in finding tables, views, procs that reference a particular field etc.. ( psearchproc )
declare
@KeyWord varchar(128),
@KeyWord2 varchar(128) = null
set nocount on
set @KeyWord = ''
--=========================================================
-- Temp Tables
--=========================================================
@PhilMurwin
PhilMurwin / SSMS_Configs.md
Last active February 9, 2022 17:51
SQL Mgmt Studio Configs

Environment > Keyboard > Query Shortcuts

  • Create a Dev database to contain some server level procedures
  • Create a stored proc SPWHO with the sp_who2 script in it.
    • This is used for Ctrl + 3 below
Shortcut Stored Procedure
Alt + F1 sp_help
Ctrl + F1
@PhilMurwin
PhilMurwin / Synology-Diskstation-Git.md
Last active October 17, 2019 15:17 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS218+ with DSM 6+.

Set Up User group and Folder

  • Create group gitusers via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called Git (located at /volume1/Git) with read/write access for group gitusers. This folder will hold all the repos.
@PhilMurwin
PhilMurwin / .gitconfig
Last active December 7, 2016 19:40
Custom Git config (minus user section)
[core]
editor = \"C:/Program Files (x86)/Programmer's Notepad/pn.exe\"
autocrlf = true
[merge]
tool = winmerge
[mergetool "winmerge"]
cmd = wMerge.sh \"$MERGED\" \"$REMOTE\"
path = c:/Program Files (x86)/winmerge/winmergeu.exe
[diff]
guitool = winmerge
@PhilMurwin
PhilMurwin / sp_who2temp.sql
Last active September 7, 2018 20:09
SQL Server sp_who2
Declare @sp_who2 Table
(
SPID INT
,Status VARCHAR(255)
,Login VARCHAR(255)
,HostName VARCHAR(255)
,BlkBy VARCHAR(255)
,DBName VARCHAR(255)
,Command VARCHAR(255)
,CPUTime INT
@PhilMurwin
PhilMurwin / JIRA Issue Template
Created October 14, 2015 14:24
A basic template for creating JIRA issues with appropriate details for a developer.
h2. Summary of Request:
Brief description of request that all stakeholders can agree to.
h2. Details of Request:
Customer list of the things necessary to accomplish the end result.
h2. Affected Components:
What existing components are impacted by this request?
h2. Work Involved:
/* ################################################################################
# AUTHOR : Markus Kofler - http://www.kofler-it.com
# NAME : countries-for-mssql.sql
# DATE : 2015-06-21
# Version : 1.0
# COMMENT : This script creates a table within your MS-SQL-Server with all
# the ISO-codes for countries, phonecodes, etc.
# The script is based on the following github-resources:
# + https://gist.github.com/adhipg/1600028
# + https://gist.github.com/paulochf/9616f85f3f3904f1c36f
@PhilMurwin
PhilMurwin / README.md
Last active August 29, 2015 14:19 — forked from hofmannsven/README.md