Skip to content

Instantly share code, notes, and snippets.

Bronley Plumb TwitchBronBron

Block or report user

Report or block TwitchBronBron

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
@TwitchBronBron
TwitchBronBron / execute_stored_procedure.sql
Created Dec 17, 2019
How to execute a stored procedure in sqldeveloper
View execute_stored_procedure.sql
exec dbms_output.enable(10000);
SET SERVEROUTPUT ON;
var myCursor REFCURSOR;
begin
--Schema.Package.Procedure(Parameters);
SCHEMA_NAME.PACKAGE_NAME.PROCEDURE_NAME(10,'',:myCursor );
END;
/
@TwitchBronBron
TwitchBronBron / AppConfig.cs
Created Oct 3, 2019
dotnet framework base url
View AppConfig.cs
public class AppConfig
{
public string GetBaseUrl()
{
var req = HttpContext.Current.Request;
return $"{req.Url.Scheme}://{req.Url.Authority}{req.ApplicationPath.TrimEnd('/')}/";
}
}
@TwitchBronBron
TwitchBronBron / usersettings.json
Created May 10, 2019
Example of how to customize specific textmate rutes
View usersettings.json
//https://stackoverflow.com/questions/46034188/add-an-operator-to-visual-studio-code-theme-in-settings-json
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.operator.word",
"settings": {
"foreground": "#569BD2"
}
}
@TwitchBronBron
TwitchBronBron / clearCredentials.bat
Created Feb 27, 2019
A windows script to clear all windows credentials (uses powershell internally)
View clearCredentials.bat
powershell -Command "cmdkey /list | ForEach-Object{if($_ -like '*Target:*' -and $_ -like '*'){cmdkey /del:($_ -replace ' ','' -replace 'Target:','')}}"
@TwitchBronBron
TwitchBronBron / Timer.cs
Created Mar 23, 2018
A simple timer for .net
View Timer.cs
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public class Timer
{
public static List<Action> Callbacks = new List<Action>();
private static bool IsRunning = false;
public static void Register(Action callback)
@TwitchBronBron
TwitchBronBron / virtuawin.cfg
Last active Sep 27, 2018
virtuawin config file
View virtuawin.cfg
ver# 2
hotkeyCount# 16
hotkey1# 49 1 7 1
hotkey2# 50 1 7 2
hotkey3# 51 1 7 3
hotkey4# 52 1 7 4
hotkey5# 81 1 7 5
hotkey6# 87 1 7 6
hotkey7# 69 1 7 7
hotkey8# 82 1 7 8
You can’t perform that action at this time.