Removes older versions
sudo rm -rf /usr/local/go* && sudo rm -rf /usr/local/go
#Generate coverage report | |
forge coverage --report lcov | |
#Remove unwanted files | |
lcov --remove lcov.info -o lcov.info 'node_modules/*' 'script/*' | |
#Generate html file | |
genhtml lcov.info -o ./coverage | |
#Remove lcov file |
########### | |
# Imports # | |
########### | |
# the RPCs file should include RPC URLs and Etherscan API Keys for relevant networks | |
# (in a separate file so they don't get committed) | |
source "$(dirname "$0")/rpcs.sh" | |
# any useful addresses for various networks for easy reference | |
source "$(dirname "$0")/addresses.sh" | |
# any useful functions and definitions for interacting with Seaport |
git branch -m main master | |
git push -u origin master | |
git remote set-head origin master | |
# Now go to github in a browser, | |
# open the repo, click settings, branch and change the default branch to master | |
git push origin --delete main |
const nodegit = require('nodegit'); | |
const path = require('path'); | |
const fs = require('fs-extra'); | |
const openpgp = require('openpgp'); | |
const fileName = 'newfile.txt'; | |
const fileContent = 'hello world'; | |
const directoryName = 'salad/toast/strangerinastrangeland/theresnowaythisexists'; | |
/** | |
* This example creates a certain file `newfile.txt`, adds it to the git |
/* | |
NOTE: This code assumes a bare git repo in ./bare-git/, | |
which should have at least one text file in its root, | |
named "greetings.txt". | |
This code updates the contents of a "greetings.txt" | |
file, and creates a new file called "greetings-XXX.txt" | |
(with XXX being a random number). It then creates a new | |
commit for these changes. Finally, it reads and dumps | |
the new current contents of the repo, file by file. |
package router | |
import ( | |
"context" | |
"net/http" | |
gpath "path" | |
"github.com/julienschmidt/httprouter" | |
) |
#!/bin/bash | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
The Visual Studio Tools for Unity are able to convert .NET debug symbol files (namely pdb files) to debug symbols files that are understood by Unity's scripting engine (namely .dll.mdb files) when importing both the .dll and the .pdb in the Assets folder.
If you prefer to handle the conversion yourself you need to call a tool named pdb2mdb on the .dll associated with the .pdb:
pdb2mdb MyLibrary.dll
Will produce a MyLibrary.dll.mdb usable on Unity if MyLibrary.pdb is present.