Create a file, like ~/.xmodmap
and paste the following in it:
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
-- author: jond@csgpro.com | |
-- create: 2013-03-08 | |
-- description: this proc will take table name, schema name, and optional action parameters | |
-- and insert an "unknown" record into that dimension table for you. If you don't | |
-- specific the @Action parameter as 'runit', then it will only print the SQL | |
-- output for you. | |
create proc [helper].[UnknownRow] | |
@TableName sysname, | |
@TableSchema sysname = 'dbo', |
-- ============================================= | |
-- Author: Jon - jond@csgpro.com | |
-- Create date: 2013-03-05 | |
-- Description: Helper function for comparing columns between two tables. | |
-- ============================================= | |
CREATE FUNCTION [helper].[fnCompareTableColumns] ( | |
@baseTable varchar(250), | |
@compareTable varchar(250) | |
) | |
RETURNS TABLE |
Write-Host "Loading connection..." -ForegroundColor Yellow -NoNewline | |
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection | |
Write-Host "Done." -ForegroundColor Green | |
#Set the connection string | |
$SqlConnection.ConnectionString = "Server=,<server name>;Database=<database name>;Integrated Security=True" | |
#Declare a SqlCommand object | |
$SqlCommand = New-Object System.Data.SqlClient.SqlCommand | |
/*jslint | |
browser: true, | |
node: true */ | |
/*global $ */ |
USE DatabaseName | |
GO | |
CREATE TABLE #temp_table ( | |
table_name sysname , | |
row_count INT, | |
reserved_size VARCHAR(50), | |
data_size VARCHAR(50), | |
index_size VARCHAR(50), | |
unused_size VARCHAR(50)) |
Create a file, like ~/.xmodmap
and paste the following in it:
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
// Logging levels: | |
// | |
// INFO | |
// WARN | |
// ERROR | |
// FATAL | |
// | |
// Usage: | |
// var log = require('./logger.js'); | |
// |
var Q = require('q'); | |
var assert = require('assert'); | |
// Node style callback | |
function echo(thing, callback) { | |
callback(null, thing + thing); | |
} | |
// | |
// Test code |
- hosts: all | |
gather_facts: false | |
sudo: true | |
tasks: | |
- name: check for shellshock bash vulnerability | |
shell: executable=/bin/bash env x='() { :;}; echo vulnerable' bash -c "echo this is a test" | |
register: test_vuln | |
- name: update bash from yum if vulnerable | |
yum: name=bash |
// `npm install -g mocha` | |
// `npm install chai sinon` | |
// Run with `mocha sinon_example.js` | |
var assert = require('chai').assert; | |
var sinon = require('sinon'); | |
var clock = sinon.useFakeTimers(); | |
// Sample function, this would normally be where you `require` your modules | |
var slow = function(cb) { |