FROM debian:stretch-slim
RUN apt update
RUN apt install strace
version: '3'
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { |
| rebol [] | |
| decode: func [ | |
| { | |
| Decode a UTF-8 encoded string into latin1. | |
| Adapted from http://www.rebol.org/view-script.r?script=utf-8.r | |
| } | |
| xs [string!] | |
| /local m x c result [string!] | |
| ][ |
| #!/bin/sh | |
| a1="◐" | |
| a2="◒" | |
| a3="◑" | |
| a4="◓" | |
| i=1 | |
| while true | |
| do |
| { | |
| "go.formatOnSave": true, | |
| "go.formatTool": "goimports" | |
| } |
| # Example with a mysql container running at 10% cpu | |
| docker run --cpu-quota=10000 --name esc-db -d --volumes-from dbdata -p 127.0.0.1:3306:3306 -v $(pwd)/data:/data softinnov/esc-db |
| import java.util.Date; | |
| public class printDate { | |
| public static void main(String[] args) { | |
| Date d = new Date(); | |
| System.out.println(d); | |
| } | |
| } |
| apk update | |
| apk add udev xorg-server xf86-input-evdev xf86-video-vesa setxkbmap | |
| apk add build-base git libcurl libxft-dev libx11-dev libxinerama-dev lxterminal | |
| apk add ca-certificates wget | |
| update-ca-certificates | |
| rc-update add udev sysinit | |
| rc-update add udev-postmount default | |
| git clone https://github.com/hamdouni/myDwm | |
| cd myDwm/programs/dwm-6.0 | |
| make && make install |
| workspace: | |
| base: /go | |
| pipeline: | |
| backend: | |
| image: golang | |
| commands: | |
| - go get -t ./... | |
| - go test | |
| - go build |
| #!/bin/sh | |
| # get the other connected monitor (not the internal) | |
| other=`xrandr |grep " connected" | awk '{print $1}' | grep -v 'eDP-1\|^$i'` | |
| xrandr --output eDP-1 --auto --below $other --output $other --auto |