This file contains 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
# General instructions | |
- log every change you make with a summary and files you have changed in a log file named cline_history.md. If it doesn't exist, then create it as well. make sure to include the datetime of your changes and make proper use of the markdown feateres (i.e. headings) to make it readable. Be consistent across the document, meaning, when there is also a certain style and formatting, stick to it. Make sure that your changes are documented sorted by date descending (meaning that latest changes are on top). | |
- when making commits to this repository, stick to the karma commitlint type of messages. use smaller commits and avoid big, clunky commits that are hard to revert or comprehend. amke also use of the .gitignore file, to avoid commiting sensitive or unneccessary content to repositoriy. If the .gitignore file does not exist, create it | |
- if you are somewhere stuck, use the brave search in order to find a solution. | |
# Coding | |
## Progamming language |
This file contains 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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/nginx/README.dynamic. |
This file contains 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
{"lastUpload":"2020-06-12T08:01:32.038Z","extensionVersion":"v3.4.3"} |
This file contains 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
# iptables | |
# http://gr8idea.info/os/tutorials/security/iptables1.html | |
# change policy to drop (if no rule applies, connection will be dropped) | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP | |
# list all rules | |
iptables -L |
This file contains 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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
end_of_line = lf | |
# editorconfig-tools is unable to ignore longs strings or urls |
This file contains 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
# npm set init.author.name "Your name" | |
# npm set init.author.email "your@email.com" | |
# npm set init.author.url "https://your-url.com" | |
# npm set init.license "MIT" | |
# npm set init.version "1.0.0" | |
npx license $(npm get init.license) -o "$(npm get init.author.name)" > LICENSE | |
npx gitignore node | |
npx covgen "$(npm get init.author.email)" | |
npm init -y |
This file contains 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
/* | |
Formats toString Method output as actual JSON. This way the output can be put into | |
any JSON prettifier to make it more readable. | |
You can add a new template using Menu > Code > Generate... > toString() > Settings > Templates | |
See https://www.jetbrains.com/help/idea/generate-tostring-settings-dialog.html for more information | |
*/ | |
public java.lang.String toString() { | |
#if ( $members.size() > 0 ) |
This file contains 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
/** | |
* Created by s.neidig on 03/05/17. | |
*/ | |
const Hemera = require('nats-hemera'); | |
const nats = require('nats'); | |
const HemeraJoi = require('hemera-joi'); | |
const config = { | |
nats: { |
This file contains 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
/** | |
* Created by s.neidig on 15/03/17. | |
*/ | |
const Hemera = require('nats-hemera'); | |
const nats = require('nats'); | |
const HemeraJoi = require('hemera-joi'); | |
const connection = nats.connect('nats://0.0.0.0:4222'); | |
const hemera = new Hemera(connection, { |
This file contains 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
#!/bin/sh | |
set -e | |
if [ -z "$1" ]; then | |
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4 | |
else | |
shot_path="$*" | |
fi |