Skip to content

Instantly share code, notes, and snippets.

View GiscardBiamby's full-sized avatar

Giscard Biamby GiscardBiamby

  • Berkeley
View GitHub Profile
@GiscardBiamby
GiscardBiamby / Install NVIDIA Driver and CUDA.md
Created September 8, 2021 15:57 — forked from wangg12/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@GiscardBiamby
GiscardBiamby / gist:6396203
Created August 31, 2013 04:19
Do what VS clean solution should do...
gci -recurse -Directory -include bin,obj | foreach ($_) {remove-item $_.FullName -recurse -force}
@GiscardBiamby
GiscardBiamby / gist:6392580
Last active December 22, 2015 00:58
setting up git to use p4merge for merge and diff
git config --global merge.tool p4merge
git config --global mergetool.p4merge.cmd 'p4merge.exe $BASE $LOCAL $REMOTE $MERGED'
git config --global mergetool.keepBackup false
git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd 'p4merge.exe $LOCAL $REMOTE'
git config --global difftool.prompt false
@GiscardBiamby
GiscardBiamby / configure-iis-httpCompression.ps1
Last active November 14, 2017 11:45
PowerShell snippet for configuring <system.webServer><httpCompression>. Using this in the startup script for an Azure Cloud Service.
[xml]$config = (& "$env:WINDIR\system32\inetsrv\appcmd.exe" list config /section:httpCompression)
if ($config -ne $null -and ($config.GetElementsByTagName("httpCompression") -ne $null)) {
$compression = $config.GetElementsByTagName("httpCompression")[0]
$dynamic = $compression.dynamicTypes
EnableCompression $dynamic "dynamicTypes" "application/x-javascript"
EnableCompression $dynamic "dynamicTypes" "application/atom+xml"
}
@GiscardBiamby
GiscardBiamby / bootstrap.css passed into ExCSS
Created October 20, 2012 00:46
bootstrap.css passed into ExCSS
/*!
* Bootstrap v2.0.2
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{height:auto;border:0;-ms-interpolation-mode:bicubic;vertical-align:middle}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,input[type="button
@GiscardBiamby
GiscardBiamby / mvc4AzureWebRole
Created October 10, 2012 14:39
Configuring web.config for Azure web role to work with mvc4
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<remove name="host" />
<remove name="pages" />
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
use tprschools
go
set transaction isolation level read uncommitted
go
declare @ascii_chars varchar(150)
declare @extended_ascii varchar(500)
declare @ascii_code int
set @ascii_code = 0
set @ascii_chars = ''
set @extended_ascii = ''