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 { createHook } from 'async_hooks' | |
export interface HookInfo<T = any> { | |
id: number | |
triggerId: number | |
activated: boolean | |
parent?: HookInfo<T> | |
contextData?: T | |
} |
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 zcong/echo as external | |
FROM envoyproxy/envoy-alpine:latest | |
COPY --from=external /usr/bin/echo /usr/bin/ | |
ADD ./start.sh /usr/local/bin/start.sh | |
RUN chmod +x /usr/local/bin/start.sh | |
ENTRYPOINT /usr/local/bin/start.sh |
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
version: '2' | |
services: | |
proxy: | |
image: envoyproxy/envoy:latest | |
volumes: | |
- ./simple-proxy.yaml:/etc/front-envoy.yaml | |
networks: | |
- envoymesh2 | |
expose: |
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
// maybe should run at C:\Users\USERNAME\AppData\Local | |
attrib -s -h lxss |
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
user www www; | |
worker_processes auto; | |
error_log /home/wwwlogs/nginx_error.log crit; | |
pid /usr/local/nginx/logs/nginx.pid; | |
#Specifies the value for maximum file descriptors that can be opened by this process. | |
worker_rlimit_nofile 51200; |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme", | |
"create_window_at_startup": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 19, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |
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
html, body, #root, .container { | |
height: 100%; | |
} | |
.container { | |
margin-right: auto; | |
margin-left: auto; | |
/*background-color: #eee;*/ | |
} |
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
.container { | |
margin-left: auto; | |
margin-right: auto; | |
max-width: 768px; | |
background-color: #FCFAF2; | |
} | |
html, body, #app, .container, .content { | |
min-height: 100%; | |
} |
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
<?php | |
class DB { | |
private $db; | |
private $tableName; | |
public function __construct($tableName = 'data', $fileName = 'data') | |
{ | |
$this->db = new PDO("sqlite:". $fileName .".sqlite3"); | |
$this->tableName = $tableName; | |
$this->createTable($tableName); |
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
var ctx = document.querySelector("canvas").getContext("2d"), | |
// dash-length for off-range | |
dashLen = 220, | |
// we'll update this, initialize | |
dashOffset = dashLen, | |
// some arbitrary speed | |
speed = 5, |
NewerOlder