Skip to content

Instantly share code, notes, and snippets.

View glasgowm148's full-sized avatar
🎯
Focusing

Mark Glasgow glasgowm148

🎯
Focusing
View GitHub Profile
#!/bin/bash
## Rosen Bridge Watcher with Ergo configuration
## Steps to use
### Download this file as rosen_install.sh
### chmod +x rosen_install.sh
### ./rosen_install.sh
import org.ergoplatform.compiler.ErgoScalaCompiler._
import org.ergoplatform.playgroundenv.utils.ErgoScriptCompiler
import org.ergoplatform.playground._
val blockchainSim = newBlockChainSimulationScenario("FundLock Scenario")
val nanoergsInErg = 1000000000L
val alice = blockchainSim.newParty("Alice")
val aliceFunds = 200*nanoergsInErg

Double-click on the run.command file to open the app.

This might tell you that it could not be opened, or that it is damaged.

Since Apple requires cryptocurrency accounts to have a bank account to get listed on the app store, you will need to explictly allow your mac to run Satergo.

Here is a step-by-step guide on how to disable the security setting on your Mac that restricts installations from unidentified developers.

Before you proceed, please ensure you have an admin account or the necessary credentials, as they'll be needed to make this change.

#!/bin/bash
# Shell script for installing Ergo Node under Unix.
# markglasgow@gmail.com - 29 November
# -------------------------------------------------------------------------
#
#kill -9 $(lsof -t -i:9053)
#rm -rf .ergo/wallet
#rm -rf .ergo/state
@glasgowm148
glasgowm148 / packages.yaml
Last active December 4, 2020 11:12
Haskell Cairo-Chart OSX Instructions
dependencies:
- base >= 4.7 && < 5
- diagrams
- gtk2hs-buildtools
- Chart
- Chart-cairo
- cairo
## Default command provided - permission error when trying to install extension, but can create files
sudo docker run -it -p 127.0.0.1:9999:9999 -v "${HOME}/.local/share/code-server:/home/coder/.local/share/code-server" -v "$PWD:/home/coder/project" codercom/code-server:v2 --port 9999 --verbose
## Removed part of the command - extensions now install, cannot create files.
sudo docker run -it -p 127.0.0.1:9999:9999 -v "$PWD:/home/coder/project" codercom/code-server:v2 --port 9999 --verbose
"""
WSGI config for foodle project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
error: Your local changes to the following files would be overwritten by checkout:
db.sqlite3
rango/__pycache__/tests_chapter8.cpython-37.pyc
rango/__pycache__/views.cpython-37.pyc
Please commit your changes or stash them before you switch branches.
Aborting
Traceback (most recent call last):
File "run_tests.py", line 236, in <module>
main(args.url, args.student, args.deadline)
File "run_tests.py", line 151, in main
======================================================================
ERROR: test_titles_displayed (rango.tests_chapter8.Chapter8ViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/markglasgow/Documents/GitHub/semtwo/WAD/2018/Workspace/tango_with_django_project/rango/tests_chapter8.py", line 76, in test_titles_displayed
self.assertIn('Add Category'.lower(), response.content.decode('ascii').lower())
File "/Users/markglasgow/anaconda3/envs/rango/lib/python3.7/unittest/case.py", line 1105, in assertIn
safe_repr(container))
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
<!DOCTYPE html>
{% load staticfiles %}
<html>
<head>
<title> Rango -
{% block title_block %}
How to Tango with Django!
{% endblock %}
</title>