View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"log" | |
) |
View minishift.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minishift start --vm-driver=virtualbox --show-libmachine-logs -v5 | |
-- minishift version: v1.33.0+ba29431 | |
-- Starting profile 'minishift' | |
Found binary path at /usr/local/bin/minishift | |
Launching plugin server for driver virtualbox | |
Plugin server listening at address 127.0.0.1:52396 | |
() Calling .GetVersion | |
Using API Version 1 | |
() Calling .SetConfigRaw | |
() Calling .GetMachineName |
View github.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config \ | |
--global \ | |
url."https://${user}:${personal_access_token}@github.com".insteadOf \ | |
"https://github.com" |
View sqlite3 for Destiny 2 API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
con = sqlite3.connect('Manifest.content') | |
cur = con.cursor() | |
def getItemName(itemHash): | |
#create id from hash | |
if (itemHash & (1 << (32 - 1))) != 0: | |
itemHash = itemHash - (1 << 32) | |
cur.execute("SELECT json FROM DestinyInventoryItemDefinition WHERE id=?", (itemHash,)) | |
#print(cur.fetchall()) |