We need to generate secret key for development environment.
mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf
Let's generate User model and controller.
# .github/workflows/app.yaml | |
name: My Python Project | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
services: |
# Install go | |
$ sudo apt-get install golang-go | |
# Download goofys package | |
$ go get github.com/kahing/goofys | |
# Install goofys | |
$ go install github.com/kahing/goofys | |
# Copy the goofys binary to somewhere in your path |
The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.
#!/usr/bin/env python | |
# coding: utf8 | |
from gluon import * | |
from jsonrpc import ServiceProxy | |
import re | |
#access is a Server Proxy object between web2py and the command | |
#line program bitcoind using the session variables you supplied | |
#in the index page |
This example uses curl. You can use any other means of making http requests. Responses are in JSON format.
% curl https://demo.frappecloud.com/api/method/login -XPOST \-d "usr=demo%40frappecloud.com&pwd=demo" -c frappe.cookie
{"message":"Logged In","full_name":"Demo User"}
#!/bin/bash | |
# Author: Haukur Kristinsson / Erik Kristensen | |
# Email: haukur@hauxi.is / erik@erikkristensen.com | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# The script checks if a container is running. | |
# OK - running |