This file contains 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
#!/usr/bin/env bash | |
# consider if the server is passing a file like | |
while true; do nc -l 10000 <<<"hi"; done | |
# on our client side, we can consume this using nc | |
nc 10.0.0.1 10000 |
This file contains 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
-- | |
-- Hello-World of the cordova/phonegap application using Haskell. | |
-- | |
-- here is the screenshoot | |
-- | |
-- https://twitter.com/AGoCorona/status/532948528621178880 | |
-- | |
-- So that Haste-Haskell can be used to create hybrid smartphone applications | |
-- | |
-- The original cordova JavaScript hello world is installed following the instructions of this page |
This file contains 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
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.http.client.SimpleClientHttpRequestFactory; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.client.RestTemplate; | |
import javax.annotation.PostConstruct; |
This file contains 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
#!/bin/sh | |
######################################################################## | |
# | |
# Usage: via-ssh.sh [-v] [-d] [USER@]SERVER[:PORT] | |
# | |
# -v Provide verbose output. | |
# -d Send all UDP on the DNS port 53 to 127.0.0.1. | |
# USER User name to use for SSH; default is current user. | |
# SERVER Server to use for SSH. |
This file contains 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
;; Copyright (c) James Reeves. All rights reserved. | |
;; The use and distribution terms for this software are covered by the Eclipse | |
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which | |
;; can be found in the file epl-v10.html at the root of this distribution. By | |
;; using this software in any fashion, you are agreeing to be bound by the | |
;; terms of this license. You must not remove this notice, or any other, from | |
;; this software. | |
(ns compojure.server.jetty | |
"Clojure interface to start an embedded Jetty server." |