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
FROM ubuntu:18.04 | |
ENV DEBIAN_FRONTEND noninterractive | |
COPY ./VMware-Remote-Console-11.1.0-15913118.x86_64.bundle /root/ | |
RUN apt update && \ | |
apt install -y libgtk-3-dev libaio-dev libpcsclite1 libasound2-dev desktop-file-utils less && \ | |
cd /root && \ | |
./VMware-Remote-Console-11.1.0-15913118.x86_64.bundle --required --console --eulas-agreed && \ | |
apt clean && \ | |
rm -rf /var/lib/apt/lists/* | |
ENTRYPOINT ["vmrc"] |
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
(package-initialize) | |
(setq package-archives | |
'(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa". "http://melpa.org/packages/"))) | |
(keyboard-translate ?\C-h ?\C-?) | |
(load-theme 'wheatgrass t) | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) |
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
FROM python:latest | |
RUN pip install flask | |
COPY ./app.py /root/app.py | |
CMD python /root/app.py |
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
version: "3.6" | |
services: | |
web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
hostname: 'gitlab.example.local' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab.example.local' | |
nginx['listen_https'] = false |
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
require 'socket' | |
def main(host, port) | |
Process.setproctitle "ruby_init" | |
s = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0) | |
sockaddr = Socket.sockaddr_in(port, host) | |
s.bind(sockaddr) | |
s.listen(5) | |
Process.fork do | |
Process.setproctitle "ruby_server" |
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
{ | |
"Control-agent": { | |
"http-host": "0.0.0.0", | |
"http-port": 8080, | |
"control-sockets": { | |
"dhcp4": { | |
"socket-type": "unix", | |
"socket-name": "/var/run/socket-dhcp-v4" | |
} |
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
<source> | |
type forward | |
port 24224 | |
bind 0.0.0.0 | |
</source> | |
<match stdout.**> | |
@type stdout | |
</match> | |
<match stderr.**> | |
@type stdout |
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/bash | |
if [ $# -ne 1 ] || [ "${1,,}" != "get" ]; | |
then | |
exit 0 | |
fi | |
echo "protocol=${GIT_PROTOCOL}" | |
echo "host=${GIT_REMOTE_HOST}" | |
echo "username=${GIT_USER}" |
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/local/bin/bash | |
BASE_IMAGE=$1 | |
if [ $# -ne 1 ]; then | |
echo "Please set base png image." | |
exit 1 | |
fi | |
sips -Z 120 $BASE_IMAGE --out [email protected] | |
sips -Z 180 $BASE_IMAGE --out [email protected] | |
sips -Z 76 $BASE_IMAGE --out [email protected] | |
sips -Z 152 $BASE_IMAGE --out [email protected] |
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
# http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%2017 | |
base_one = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"] | |
base_ten = ["ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"] | |
base_hundred = "hundred" | |
base_thousand = "thousand" | |
exceptions = ["eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"] | |
base = base_one + base_ten + exceptions + base_ten.slice(1..-1).product(base_one).map { |set| set[0] ++ set[1] } | |
punctuation = base_one.map{ |b| b + base_hundred } | |
middle = base + punctuation.product(base).map { |set| set[0] + "and"+ set[1] } |
NewerOlder