Skip to content

Instantly share code, notes, and snippets.

Alexander Zeitler AlexZeitler

Block or report user

Report or block AlexZeitler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AlexZeitler
AlexZeitler / angularscope
Created May 27, 2014
Inspecting AngularJS $scope
View angularscope
angular.element($0).scope()
View gist:8ec79af984b8a1024ab1
  1. Wget ftp://ftp.gnu.org/pub/gnu/gettext/gettext...t-0.12.1.tar.gz
  2. Untar file as tar -zxvf gettext-0.12.1.tar.gz
  3. cd to the directory containing the package's source code and type ./configure to configure the package for your system. If you're using csh on an old version of System V, you might need to type sh ./configure instead to prevent csh from trying to execute configure itself.

Running configure takes awhile. While running, it prints some messages telling which features it is checking for.

  1. Type make to compile the package.
  2. Optionally, type make check to run any self-tests that come with the package.
  3. Type make install to install the programs and any data files and documentation.
View cltools.sh
#!/bin/sh
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
#
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html
#
export build=~/devtools # or wherever you'd like to build
@AlexZeitler
AlexZeitler / WebApiOwinSelfHostInFSharp.fs
Created Sep 29, 2014
ASP.NET Web API Owin SelfHost
View WebApiOwinSelfHostInFSharp.fs
open Microsoft.Owin.Hosting
open Owin
open System
open System.Net
open System.Net.Http
open System.Web.Http
type HttpRouteDefaults = { Controller : string; Id : obj }
type HomeController() =
@AlexZeitler
AlexZeitler / gist:4537383d83b8a5115c01
Created Nov 2, 2014
Windows remote shutdown / restart with login
View gist:4537383d83b8a5115c01
NET USE \\<RemotePC>\IPC$ <password> /USER:<remoteuser>
shutdown /i
@AlexZeitler
AlexZeitler / gist:8647f420c83847be43c4
Created Dec 6, 2014
Some different git log aliases
View gist:8647f420c83847be43c4
alias l='git log --graph --date-order -C -M --pretty=format:"<%h> %ad [%an] %Cgreen%d%Creset %s" --all --date=short --max-count=15'
alias l1='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %b %Cgreen(%cd) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias l2='git log --pretty=oneline --abbrev-commit --max-count=15 --decorate'
alias lx='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %Cgreen(%cd) %C(bold blue) %an [%ae]:%Creset %n %s %n %b %n" --abbrev-commit'
alias ll='git log --graph --date-order -C -M --pretty=format:"<%h> %ad [%an] %Cgreen%d%Creset %s" --date=short'
alias gl='git glog'
alias wdw='git log --pretty="format:%an - %s"'
View gist:055c5d31fc33916df14e
.sidebar {background: rgba(255,255,255,0.6) !important}
.aside.widget * { color: #333 !important;}
header.site-header * {color: #333 !important; }
View gist:fdbadc795bcf0e9acafe
### Keybase proof
I hereby claim:
* I am alexzeitler on github.
* I am alexzeitler (https://keybase.io/alexzeitler) on keybase.
* I have a public key whose fingerprint is 01A5 7471 EAD1 DB22 3216 D6F0 A98F CC5A 2F2C 2849
To claim this, I am signing this object:
@AlexZeitler
AlexZeitler / xmlstuff.cs
Last active Aug 29, 2015
XML (de)serialization
View xmlstuff.cs
class Program
{
static void Main(string[] args)
{
// serialize
using (var stream = new FileStream(".\\test.xml", FileMode.Create))
new XmlSerializer(typeof(Customer)).Serialize(
stream,
new Customer() {
Name = "PDMLab",
@AlexZeitler
AlexZeitler / NuGet.config
Last active Aug 29, 2015
ASP.NET vNext beta4 NuGet config
View NuGet.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetmaster/api/v2" />
<add key="NuGet" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration>
You can’t perform that action at this time.