Skip to content

Instantly share code, notes, and snippets.

View myfreeer's full-sized avatar
💭
I may be slow to respond.

myfreeer

💭
I may be slow to respond.
View GitHub Profile
version: 1.0.{build}
install:
- ps: >-
$gitData = ConvertFrom-StringData (git log -1 --format=format:"commitId=%H%nmessage=%s%ncommitted=%aD" | out-string)
if ($gitData['message'] -eq "") { $gitData['message'] = "No commit message available for $($gitData['commitid'])" }
# View the data with Write-Output @gitData
Update-AppveyorBuild @gitData
git config --global http.proxy http://127.0.0.1:8087
git config --global https.proxy http://127.0.0.1:8087
git config --global --unset http.proxy
git config --global --unset https.proxy
set_proxy() {
git config http.proxy 127.0.0.1:8087
git config https.proxy 127.0.0.1:8087
git config http.sslVerify false
@myfreeer
myfreeer / hex2string.js
Last active July 3, 2016 11:52 — forked from taterbase/bin2string.js
Convert bytes to string Javascript
function str2arr(str){
var array_=new Array();
for(var i = 0; i < str.length; ++i){
array_[i]=str.charCodeAt(i);};
return array_;
}
function hex2arr(str){
var b_=new Uint8Array();
eval("b_=["+str+"]");