-
Install base-devel
pacman -Syu # CAUTION: this updates the whole system pacman -S base-devel
-
Run the installer script
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
export const WebsocketContext = createContext(false, null, () => {}); | |
// ready, value, send | |
// Make sure to put WebsocketProvider higher up in | |
// the component tree than any consumers. | |
export const WebsocketProvider = ({ children }) => { | |
const [isReady, setIsReady] = useState(false); | |
const [val, setVal] = useState(null); | |
const ws = useRef(null); |
It is handy to be able to quickly create a git repo server with anonymous clone and push access rights.
Note: Anyone!! with access to the server will be able to clone and push to the repo
Is super handy for personal use, in-house networks, or networks behind a firewall where security
is less of an issue.
Create the server git directory
Create a test repo
Bring up the git server daemon
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
// | |
// Simple example of using net.Socket but here we capture the | |
// right events and attempt to re-establish the connection when | |
// is is closed either because of an error establishing a | |
// connection or when the server closes the connection. | |
// | |
// Requires | |
var net = require('net'); |