1 and 2 is equivalent.
- 1
sharo@kirima:~$ date "+%Y-%m-%dT%H:%M:%S%:z"
2020-05-24T14:38:26+09:00
- 2
sharo@kirima:~$ date --iso-8601='seconds'
| hdparm --user-master u --security-set-pass PasSWorD /dev/sdX | |
| hdparm --user-master u --security-erase PasSWorD /dev/sdX |
| def gen_redis_proto(*args): | |
| proto = '' | |
| proto += '*' + str(len(args)) + '\r\n' | |
| for arg in args: | |
| proto += '$' + str(len(arg)) + '\r\n' | |
| proto += str(arg) + '\r\n' | |
| return proto |
| def power(base, exp): | |
| """ Fast power calculation using repeated squaring """ | |
| if exp < 0: | |
| return 1 / power(base, -exp) | |
| ans = 1 | |
| while exp: | |
| if exp & 1: | |
| ans *= base | |
| exp >>= 1 | |
| base *= base |
| import logging | |
| import logging.handlers | |
| log = logging.getLogger(__name__) | |
| log.setLevel(logging.DEBUG) | |
| handler = logging.handlers.SysLogHandler(address = '/dev/log') | |
| formatter = logging.Formatter('%(module)s.%(funcName)s: %(message)s') |
| package main | |
| // https://github.com/dps/go-xml-parse/blob/master/go-xml-parse.go | |
| import ( | |
| "fmt" | |
| "os" | |
| "encoding/xml" | |
| ) |
| server { | |
| listen 80; | |
| server_name backend; | |
| root /usr/share/nginx/www; | |
| index index.html index.html; | |
| location / { | |
| header_filter_by_lua ' |
| #!/bin/sh | |
| fricas -nosman <<EOF | |
| E := [_ | |
| -- Standard Illumination Model for Computers_ | |
| --_ | |
| -- Is defined as a system of linear equations, where negative_ | |
| -- colors don't exist and is solved by computing the point at_ | |
| -- which they all intersect the one which needs to be defined_ | |
| -- as the Planckian locus of the illuminant._ |
| image: docker:latest | |
| services: | |
| - docker:dind | |
| stages: | |
| - build | |
| variables: | |
| IMAGE: registry.gitlab.com/bamnet/njtdata | |
| DOCKER_CLI_EXPERIMENTAL: enabled |
| #define _GNU_SOURCE | |
| // compile: | |
| // gcc -m64 -shared -I../Capture_Linux_v7.1.9/NvFBC/inc -fPIC dl_prog3.c -o nvfbc_preload.64.so -ldl | |
| // gcc -m64 -shared -I../Capture_Linux_v7.1.9/NvFBC/inc -fPIC dl_prog3.c -o nvfbc_preload.32.so -ldl | |
| // Run: | |
| // LD_PRELOAD="$PWD/nvfbc_preload.32.so $PWD/nvfbc_preload.64.so" DISPLAY=:0 ../Capture_Linux_v7.1.9/NvFBC/samples/NvFBCToGLEnc/NvFBCToGLEnc -f 10 | |
| #include "NvFBC.h" |
1 and 2 is equivalent.
sharo@kirima:~$ date "+%Y-%m-%dT%H:%M:%S%:z"
2020-05-24T14:38:26+09:00
sharo@kirima:~$ date --iso-8601='seconds'