-
Prepare remote server
# yum -y install git # useradd -c "GIT User" -s /usr/bin/git-shell git # mkdir ~git/.ssh
This file contains hidden or 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
04fee87dde12e9980ebd84f2827ba18cc5dc4d1a8b127f6937c2707f0f7f7faa742fb5da9c9fa9a59927f60962fb689769afaa836ce6d73634b8fca4c44c4211b9 |
This file contains hidden or 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
<script> | |
// import | |
import { onMount } from "svelte"; | |
// util | |
import { metadata } from "~util"; | |
// redirect | |
onMount(() => { | |
// `location.replace` forces a hard refresh in the browser, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
overflow: hidden; | |
} |
This file contains hidden or 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
declare module '*.graphql' { | |
import { DocumentNode } from 'graphql' | |
const Schema: DocumentNode | |
export = Schema | |
} |
This file contains hidden or 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
# conf.d file for git-daemon | |
# | |
# Please check man 1 git-daemon for more information about the options | |
# git-daemon accepts. You MUST edit this to include your repositories you wish | |
# to serve. | |
# | |
# Some of the meaningful options are: | |
# --syslog --- Enables syslog logging | |
# --verbose --- Enables verbose logging | |
# --export-all --- Exports all repositories |
This file contains hidden or 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
<div> | |
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password."> | |
<button type="button" id="cloneButton">Clone</button> | |
</div> | |
<output id="log" style="white-space: pre; font-family: monospace;"></output> | |
<script src="https://unpkg.com/magic-portal"></script> | |
<script> | |
let worker = new Worker("./worker.js") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
const sortByKeysLegibly = maybeObject => { | |
// presumably we want the array to stay ordered. Possibly not, but if there is | |
// anything that should preserve order, it's an array | |
if (maybeObject instanceof Array) { | |
return maybeObject; | |
} | |
// don't sort strings etc | |
if (typeof maybeObject !== 'object') { | |
return maybeObject; |
Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone [email protected]:AKSW/OntoWiki.git