Skip to content

Instantly share code, notes, and snippets.

View mammon69bot's full-sized avatar

Mammon mammon69bot

View GitHub Profile
@mattdesl
mattdesl / NFT.js
Last active December 29, 2022 05:24
// Global Token ID counter
Counter = 0
// Mapping from Token ID to user wallet address
Database = Map<int, address>{}
// Mapping from Token ID to its associated metadata
TokenMetadatas = Map<int, string>{}
// Mint/create a NFT and assign it to a new wallet address
@xfbs
xfbs / dedyn.sh
Created December 25, 2020 19:12
Dedyn.io Update Script
#!/bin/bash
# Script by Patrick M. Elsen <[email protected]>
# Updates your dedyn.io dynamic DNS, only if your IP address has changed.
# Licensed under MIT license.
# Uses openDNS IP lookup. Ideally, put this script into a cron job and run hourly.
set -euo pipefail
# dns credentials
dnsuser=yourdedyniousername
dnstoken=yourdedyniotoken
<?xml version="1.0" encoding="UTF-8"?>
<!-- websockets.xml -->
<mule
xmlns:java="http://www.mulesoft.org/schema/mule/java"
xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting"
xmlns:websocket="http://www.mulesoft.org/schema/mule/websocket"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@xproxima
xproxima / gitbook-pages.sh
Last active February 1, 2023 09:06
gitbook
# gitbook-cli
npm install -g gitbook-cli
gitbook-cli -V
# add SUMMARY.md
gitbook init
# check
gitbook serve
@kinsidar
kinsidar / gitbook-to-github-pages.md
Created October 23, 2017 18:41
Setting up gitbook and hosting on github pages

Setting up Gitbook for a project and hosting on Github Pages

npm version

Credits to this guide

This is a documentation of setting up the basic requirements for your gitbook and hosting onto github pages, refer to gitbook toolchain documentation for details on how to structure and write your gitbook

IMPORTANT I am using node LTS (node version 6.11.4 and npm version 3.10.10), you may run into erros using current version of node.

  1. Create project's README.md if you haven't, which will be the introduction/front page of your gitbook
@baskaufs
baskaufs / foaf.ttl
Created February 26, 2016 17:54
FOAF vocabulary in Turtle (from the RDF/XML, not the RDFa)
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix xml: <http://www.w3.org/XML/1998/namespace>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix wot: <http://xmlns.com/wot/0.1/>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@jbryer
jbryer / gitbook.R
Last active February 1, 2023 09:07
Functions to work with Gitbook.io and R Markdown
require(knitr)
#' Initializes a new Gitbook.
#'
#' This will initalize a new Gitbook in the given directory. When done, it will
#' also change the working directory.
#'
#' @author Jason Bryer <[email protected]>
newGitbook <- function(dir) {
.Deprecated('This function has been moved to the gitbook R package. See http://jason.bryer.org/Rgitbook for more information')
@nalsi
nalsi / foaf.rdf
Created December 9, 2012 16:58
## My FOAF file
## Creator: Kai Li
## Time: 12/9/2012
## Description: My FOAF file
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rrdf="http://rdfs.org/resume-rdf/"