Skip to content

Instantly share code, notes, and snippets.

@petevb
petevb / index.html
Created December 3, 2015 22:53 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/lajuri
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
console.clear();
// Write code to test your extensions here. Press F5 to compile and run.
void Main()
{
Fetch();
Create();
}
void Fetch()
{
var src = new TtcDBRepository(BaseRepository.LocalEmulator);
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[spinner] #css
/**
* spinner
*/
@keyframes spinner {
to { background-position: -625px 0; }
}
.spinner:before {
position: absolute;
content:'';
top:0;
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[selectors for dummies] #css
/**
* selectors for dummies
*/
/* UNCOMMENT THE .a.a AND IT "TRUMPS" THE .a BELOW IT */
/* I'm first, but have higher specificity (so not overridden)*/
/*.a.a {
color: gold;
}*/
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[specificity for dummies] #css
/*
specificity for dummies
*/
.itemsTable td p.tallRow {
color: red;
}
.tallRow.tallRow.tallRow {
color: gold;
}
@petevb
petevb / Storing-git-Credentials.md
Last active May 13, 2019 09:08 — forked from RichardBronosky/Storing-git-Credentials.md
[Storing git Credentials] #git #dev
@petevb
petevb / Run Visual Studio Code for Linux from WSL.md
Last active May 13, 2019 09:09 — forked from fedme/Run Visual Studio Code for Linux from WSL.md
[Run Visual Studio Code for Linux from WSL on Windows 10] #vscode #dev #wsl

Run Visual Studio Code for Linux from WSL

Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.

This process was tested on WSL Ubuntu 18.04.

Install VcXsrv on Windows

  1. Dowload the VcXsrv installer from https://sourceforge.net/projects/vcxsrv/
  2. Install the software on Windows

Add VS Code repositories

@petevb
petevb / git-faq.md
Last active July 3, 2019 08:04
[git FAQ] #windows #git #branch

delete branches no longer on remote (Windows console)

for /f "tokens=1,2,3*" %i in ('git branch -v') do @if "%k"=="[gone]" git branch -d %i

@petevb
petevb / 2019-04-24.md
Last active July 3, 2019 08:16
CivComm minutes #CivComm

Minutes of CivComm meeting, 24 April 2019

  • Present: Robert Cottrell, Peter Barnes, Val King, Rachel Woollett, Dan Cecil
  • Apologies: Pete van Blerk

Actions

  • Dan to initiate BPSS for Peter Barnes and Val King, and ask Pete van Blerk if he wants to do it.
  • Val to try to book RBL for AGM (26th June)
  • Val to ask Suzanne Brown for venue contacts for summer party
@petevb
petevb / sqlserver-windows-firewall.md
Last active July 19, 2019 13:59
Connect to SQL Server through Windows firewall

try this

netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN

NB I tried this first