Skip to content

Instantly share code, notes, and snippets.

Avatar

Bart Verkoeijen bgever

  • Hong Kong
View GitHub Profile
@daredude
daredude / docker-clear.bat
Created Jun 5, 2016
delete all docker container and images on windows
View docker-clear.bat
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
@stvvt
stvvt / manage-etc-hosts.sh
Last active Sep 26, 2018 — forked from irazasyed/manage-etc-hosts.sh
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
View manage-etc-hosts.sh
#!/usr/bin/env bash
set -eu
# PATH TO YOUR HOSTS FILE
: ${ETC_HOSTS="/etc/hosts"}
# DEFAULT IP FOR HOSTNAME
DEFAULT_IP="127.0.0.1"
@davidfowl
davidfowl / Example1.cs
Last active Apr 7, 2021
How .NET Standard relates to .NET Platforms
View Example1.cs
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@ImJasonH
ImJasonH / markdown.css
Last active Mar 26, 2021
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
View markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@irazasyed
irazasyed / manage-etc-hosts.sh
Created Mar 7, 2015
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
View manage-etc-hosts.sh
#!/bin/sh
# PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
# DEFAULT IP FOR HOSTNAME
IP="127.0.0.1"
# Hostname to add/remove.
HOSTNAME=$1
View essential-javascript-links.md
@siacomuzzi
siacomuzzi / gist:1832edeb905a9582a7dd
Last active Sep 19, 2017
[AUTH0] Using Microsoft.Owin.Security.Jwt authentication middleware with ASP.NET 5.0 (ASP.NET MVC 6)
View gist:1832edeb905a9582a7dd

project.json

{
  // ...
  "dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta1",
    "Microsoft.AspNet.Mvc": "6.0.0-beta1",
    "Microsoft.AspNet.Owin": "1.0.0-beta1",
    "Microsoft.Owin": "3.0.0",
@flipjs
flipjs / app.js
Last active Aug 29, 2015
Angular: bindToController
View app.js
/*=================================================
= Angular: bindToController =
=================================================*/
void (function(app) {
'use strict';
app.controller('ParentController', ParentCtrl)
@lttlrck
lttlrck / gist:9628955
Created Mar 18, 2014
rename git branch locally and remotely
View gist:9628955
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@jtsternberg
jtsternberg / README.md
Last active Mar 25, 2018
Create a theme options page with CMB2
View README.md