Skip to content

Instantly share code, notes, and snippets.

View smrchy's full-sized avatar

Patrick Liess smrchy

View GitHub Profile
@erdii
erdii / install_vcenter_vcsa.md
Last active July 11, 2024 11:39
Install vCenter Server Appliance 6.5 without hash mismatch error!

Install VCSA 6.5 without hash mismatch error!

requirements

  • esxi host
  • dns or ip for both - esx and vcenter
  • correct time settings (ntp automates this, can be enabled on the esx-host)
  • use vcsa-cli installer (the iso contains vcsa-cli for win/lin/mac os)
  • "skipManifestCheck": "true" because of reasons (the installer repeatedly failed to verify integrity hashes of the created vm)
  • "os.password" and "sso.password" HAVE to pass vmware's pw rules PLUS their dictionary! (verification will pass with a pw in their dictionary but setup will not be able to complete! - we stumbled across this by pure chance after trying for 2 whole days!)
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
@mpneuried
mpneuried / crypto.coffee
Last active December 26, 2015 21:29
Simplify the data en/decryption in node.js
### USEAGE
crypto = require( "./crypto" )()
_crypted = crypto.crypt( "myPassowrd", "data123" )
crypto.decrypt( "myPassowrd", _crypted ) # data123
###
crypto = require( "crypto" )
@markselby
markselby / nginx-openresty-ubuntu-build-dependencies.sh
Last active July 26, 2018 08:35
Build Nginx OpenResty version on Ubuntu.This is part of the high performance caching blog on writebox.co.uk
# Build dependencies for OpenResty.
sudo apt-get install build-essential libpcre3-dev libssl-dev libgeoip-dev
# Install standard Nginx first so that you get the relevant service scripts installed too
sudo apt-get install nginx
# If you want to access Postgres via Nginx
sudo apt-get install libpq-dev
@mpneuried
mpneuried / timeCountBy.coffee
Last active December 18, 2015 21:39
Get the count of timestamps based on a given timeframe.
###
**IMPORTANT** Make shure moment.js is available.
**ARGUMENTS**
* `timestamps` *( Array )*:An arry of timestamps.
* `type` *( String )*: A moment time type like `minute`, `hour`, `day`
* `pastCursor` *( Number )*: A number to define the maximum time to the past. If lower than `0` all given timestamps will be returned.
###
@mattpodwysocki
mattpodwysocki / jsconf-eu-2011.md
Created October 1, 2011 13:40
JSConf.EU Slides
@michiel
michiel / cors-nginx.conf
Created July 5, 2011 10:41
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#