create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
| 'DESCRIPTION: This script will clean up any files that have a last modified | |
| ' date greater than or equal to the number specified. | |
| 'CREATED BY: Brian Plexico - microISV.com | |
| 'MODIFIED BY: Gina Trapani ([email protected]) | |
| 'CREATE DATE: 07/19/2005 | |
| 'UPDATED: 08/10/2007 | |
| ' | |
| 'INSTRUCTIONS: 1. Enter the path to the directory you'd like to clean on line 28. | |
| ' Make sure to only change the text that currently reads: |
| // See comments below. | |
| // This code sample and justification brought to you by | |
| // Isaac Z. Schlueter, aka isaacs | |
| // standard style | |
| var a = "ape", | |
| b = "bat", | |
| c = "cat", | |
| d = "dog", |
| def upsert(db_cur, table, pk_fields, schema=None, **kwargs): | |
| """Updates the specified relation with the key-value pairs in kwargs if a | |
| row matching the primary key value(s) already exists. Otherwise, a new row | |
| is inserted. Returns True if a new row was inserted. | |
| schema the schema to use, if any (not sanitized) | |
| table the table to use (not sanitized) | |
| pk_fields tuple of field names which are part of the primary key | |
| kwargs all key-value pairs which should be set in the row | |
| """ |
| @echo off | |
| SET DIR=%~dp0% | |
| @PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%setup.ps1' %*" | |
| pause |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| if [ "$1" == "" ]; then | |
| echo Usage: $0 pngfile | |
| exit 0; | |
| fi | |
| FILE=`basename $1 .png` | |
| if [ ! -e $FILE.png ]; then |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| # PowerShell script to find all of the Nuget packages being used in the source code | |
| # get all packages.config files | |
| $files = ls -Filter packages.config -Recurse | |
| # create an empty array in powershell | |
| $packages = @() | |
| # get the name of the packages in each file | |
| foreach($file in $files) |