Skip to content

Instantly share code, notes, and snippets.

View ernestohs's full-sized avatar
🐙
coding in progress

/dev/10x ernestohs

🐙
coding in progress
View GitHub Profile
@ernestohs
ernestohs / gist:7623639
Created November 24, 2013 05:17
Basic CSS reset
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
outline: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@ernestohs
ernestohs / gist:7630290
Last active December 29, 2015 06:39
Background image (Fullscreen)
html {
background: url('images/bg.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@ernestohs
ernestohs / verticalCentered.css
Created January 3, 2014 02:17
Vertical Centered Content
.container {
min-height: 6.5em;
display: table-cell;
vertical-align: middle;
}
@ernestohs
ernestohs / NewComputer.ps1
Last active March 14, 2021 23:30
My computer setup
Update-ExecutionPolicy Unrestricted -Force
# Base
cinst BoxStarter.Chocolatey
cinst BoxStarter.WinConfig
# Chocolatey
cinst ChocolateyPackageUpdater
# Windows 8.1 Settings and Options
@ernestohs
ernestohs / QuitSkype.cmd
Last active January 13, 2017 12:33
Quit Skype for real
TaskKill /im skype.exe /f
@ernestohs
ernestohs / CleanBin.ps1
Last active August 29, 2015 14:02
I hate when the cached dlls are messing up with my debugging or build process
# Delete all the bin and obj directories from this path
(ls -include bin,obj -Recurse) | foreach ($_) { rm $_.fullname -Force -Recurse }
svn merge -r UPREV:LOWREV .
@ernestohs
ernestohs / gist:cf6f54f4ebe167e4bef0
Created June 17, 2014 19:57
undo single resivision
svn merge -c -REV .
Diff Viewer:
"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly
Merge 3 ways:
"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %mine %theirs %base %merged /title1=%yname /title2=%tname /title3=%bname /title4=%mname
Merge Tool:
"C:\Program Files (x86)\Beyond Compare 3\BComp.exe" %mine %theirs %base %merged /title1=%yname /title2=%tname /title3=%bname /title4=%mname
@ernestohs
ernestohs / FindStr
Created June 18, 2014 01:13
Find String inside a file, then show the full name of this file
Get-ChildItem -recurse | Select-String -pattern "**Wally**" | group path | select name