Skip to content

Instantly share code, notes, and snippets.

View VonC's full-sized avatar

VonC VonC

View GitHub Profile
test
@VonC
VonC / gist:1103955
Created July 25, 2011 11:35
Peazip 7z in command line: alias on Windows
Wrapper:
C:\Prog\Toolbox\bin>more peazip.bat
@echo off
set t=%~dp0
set adp0=%t::\=:\"%"
call "%~dp0checkupdate.bat"
start /B %adp0%..\apps\peazip-3.6\res\7z\7z.exe %*
=> aliases:
@VonC
VonC / diffRepSO
Created February 25, 2012 17:30
Reputation Diff on SO
C:\Users\VonC\prog\so>
diff -y --suppress-common-lines -I ".*=" -I "\*\*" reputation20120219.txt reputation20120225.txt | grep -Fv ">"
Using gnu diff (available on Windows through gow for diff, grep and other gnu commands: https://github.com/bmatzelle/gow/downloads
See http://stackoverflow.com/questions/7646266/grep-command-being-reversed-by-special-character
@VonC
VonC / senv.bat
Last active October 7, 2015 11:47
Settings for a good development environment for Go on Windows or for programs in general Include chocolatey for easy software installation
@echo off
REM if corporate environment, set your proxy
REM set HTTP_PROXY=http://username:password@proxy.corp:port
REM set HTTPS_PROXY=http://username:password@proxy.corp:port
REM set NO_PROXY=.corp,localhost,127.0.0.1,%USERDOMAIN%
set HOME=%HOMEDRIVE%%HOMEPATH%
REM if corporate environment, set your HOME to an *external* backed-up drive
REM set HOME=Z:\
Verifying that +vonc__ is my blockchain ID. https://onename.com/vonc__
@VonC
VonC / vendor.bat
Last active May 16, 2016 16:12
Windows bat script to vendorize a github repo in a vendor subfolder of a go project
@echo off
setlocal enabledelayedexpansion
rem set pkg=github.com/jroimartin/gocui
set pkg=%1
if "%pkg%"=="" (
echo expect package name github.com/user/project
exit /b 1
)
if exist "vendor/%pkg%" (
echo '%pkg%' already vendorized
@VonC
VonC / jdkpkg.bat
Created August 3, 2016 19:00
Windows bat script packaging a jdk exe intaller into a simple zip archive
@echo off
SETLOCAL EnableDelayedExpansion
REM src: http://stackoverflow.com/questions/1619662/how-can-i-get-the-latest-jre-jdk-as-a-zip-file-rather-than-exe-or-msi-installe
REM src: http://stackoverflow.com/questions/10891405/installing-jdk-without-administrator-privileges/38511724#38511724
REM JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
set v=%1
if "%v%" equ "" (
1. foo
````python
print 'bar'
````
1. sub-foo
````python
print 'sub-bar'
@VonC
VonC / testwrap.md
Created January 18, 2018 21:37
Test wrap md
return (
  <div className="App">
    <h1>Quantum Pilot</h1>
      <div className="content">
        <div className="box"><About/></div>
        <div className="box">HnnYoutube</div>
        <div className="box">{buy}</div>
        <div className="box">{mykeys}</div>
 
@VonC
VonC / .gitconfig
Last active May 19, 2018 08:51
My global git config
[user]
name = VonC
email = vonc@laposte.net
[core]
; just making sure those eol's stay as they are
autocrlf = false
; see http://stackoverflow.com/a/22208863/6309 (Git/Bash is extremely slow in Windows 7 x64, until fix in msysgit 1.9.4)
fscache = true
[alias]
; from http://www.jukie.net/bart/blog/pimping-out-git-log, with author displayed