#!/bin/bash
yum install ncurses-devel openssl-devel -y
yum groupinstall "Development Tools" -y
cd /tmp
wget "http://erlang.org/download/otp_src_21.3.tar.gz" -O otp21.tar.gz
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
| # References: | |
| # | |
| # https://cinhtau.net/2016/12/09/disable-apt-auto-update-and-upgrade/ | |
| # https://unix.stackexchange.com/questions/315502/how-to-disable-apt-daily-service-on-ubuntu-cloud-vm-image | |
| # https://askubuntu.com/questions/824718/ubuntu-16-04-unattended-upgrades-runs-at-random-times/831206 | |
| apt-get -y purge update-notifier-common ubuntu-release-upgrader-core landscape-common unattended-upgrades | |
| systemctl kill --kill-who=all apt-daily.service | |
| systemctl kill --kill-who=all apt-daily-upgrade.service |
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
| # List the existing targets in the installed engine build | |
| ./Engine/Build/BatchFiles/RunUAT.command BuildGraph -Script=Engine/Build/InstalledEngineBuild.xml -ListOnly | |
| # Build Editor | |
| ./Engine/Build/BatchFiles/RunUAT.command BuildGraph -Script=Engine/Build/InstalledEngineBuild.xml -Target="Editor Mac" | |
| # Build the editor but remove the Android and other options | |
| ./Engine/Build/BatchFiles/RunUAT.command BuildGraph \ | |
| -Script=Engine/Build/InstalledEngineBuild.xml \ | |
| -Target="Make Installed Build Mac" \ | |
| -set:WithMac=true \ |
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
| defmodule Languafy.Web.Context do | |
| @behaviour Plug | |
| import Plug.Conn | |
| alias Languafy.User | |
| def init(opts), do: opts | |
| def call(conn, _) do | |
| case build_context(conn) do | |
| {:ok, context} -> |
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
| openssl pkcs8 -in mykey.pem -nocrypt -topk8 -outform DER | openssl sha1 -c |
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
| #!/usr/bin/env python3 | |
| """ | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./http_server_debug.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| import logging | |
| class S(BaseHTTPRequestHandler): |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| This console application description | |
| EXAMPLE: | |
| python3 {} | |
| """.format(__file__) |
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
| mkdir build_protobuf | |
| cd build_protobuf | |
| git clone git@github.com:leetal/ios-cmake.git | |
| git clone --recurse-submodules -j8 -b v3.15.6 https://github.com/protocolbuffers/protobuf.git | |
| cd protobuf | |
| mkdir -p cmake/build/release | |
| cd cmake/build/release | |
| cmake -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_PROTOC_BINARIES=OFF -DCMAKE_TOOLCHAIN_FILE=../../../../ios-cmake/ios.toolchain.cmake -DPLATFORM=TVOS ../.. | |
| mkdir install | |
| make -j18 |
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
| protobuf | |
| protobuf-2.6.0 | |
| protobuf-2.6.1 | |
| protobuf-master |
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
| defmodule MyApp do | |
| use Application | |
| def start(_type, _args) do | |
| import Supervisor.Spec, warn: false | |
| children = [ | |
| Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
| dispatch: dispatch | |
| ]) |
NewerOlder