https://www.mkyong.com/hibernate/how-to-configure-logging-in-hibernate-logback/
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
import okhttp3.*; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Pattern; | |
/** |
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
FROM centos:latest | |
RUN yum install -y gcc make flex patch bzip2 libxml2-devel perl httpd-devel | |
RUN yum -y install httpd | |
COPY php-5.1.6.tar.bz2 /root | |
WORKDIR /root | |
RUN tar xvf php-5.1.6.tar.bz2 | |
WORKDIR /root/php-5.1.6 |
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
FROM centos:centos6 | |
RUN yum install -y gcc make flex patch bzip2 libxml2-devel | |
RUN yum -y install httpd httpd-devel | |
COPY php-5.1.6.tar.bz2 /root | |
WORKDIR /root | |
RUN tar xvf php-5.1.6.tar.bz2 | |
WORKDIR /root/php-5.1.6 |
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
all: smallpt | |
smallpt: | |
g++-6 -O3 -fopenmp smallpt.cc -o smallpt | |
clean: | |
$(RM) smallpt |
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
""" | |
setup: | |
pip3 install PyMySQL | |
""" | |
import sys | |
import pymysql.cursors | |
def printPrompt(): |
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
# docker build . -t pandas_jupyter -f Dockerfile.jupyter | |
FROM jupyter/notebook:latest | |
RUN pip install --upgrade pip | |
RUN pip install pandas-datareader matplotlib scipy | |
# RUN apt update | |
# RUN apt install python3-tk -y |
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
CC=gcc | |
CFLAGS=-O3 | |
all: prime pi | |
pi: | |
$(CC) $(CFLAGS) -o $@ pi.c | |
prime: | |
$(CC) $(CFLAGS) -o $@ prime.c -lm |
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
FROM ubuntu:17.10 | |
RUN apt update | |
RUN apt install curl git python3 python3-pip -y | |
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
RUN export NVM_DIR="$HOME/.nvm" | |
RUN [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
RUN [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" |
- is new?
- use DB?
- read File?
- send mail?
- LOC