Skip to content

Instantly share code, notes, and snippets.

View danylkaaa's full-sized avatar

Danylo Kazymyrov danylkaaa

View GitHub Profile
git config remote.origin.url https://{USERNAME}:{PASSWORD}@github.com/{USERNAME}/{REPONAME}.git
@danylkaaa
danylkaaa / .tarvis.yml
Created March 30, 2018 14:27
.travis.yml java maven
language: java
sudo: false # faster builds
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=false -B -V
script:
- mvn cobertura:cobertura
after_success:
- mvn clean cobertura:cobertura coveralls:cobertura
- bash <(curl -s https://codecov.io/bash)
# - mvn site -X
@danylkaaa
danylkaaa / pom.xml
Last active April 13, 2018 19:49
maven junit5, javadoc support
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>zulus</groupId>
<artifactId>OOPLabs2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>OOPLabs2</name>
{
"rules": {
"import/no-unresolved":false,
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
@danylkaaa
danylkaaa / config.json
Created February 6, 2019 21:02
vscode debug mocha
{
"version": "0.2.0",
"configurations": [
{
"name": "debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "yarn",
"runtimeArgs": ["debug"],
@danylkaaa
danylkaaa / install.bash
Created March 11, 2019 13:24
postman install Ubuntu x64
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
rm postman.tar.gz
sudo ln -s /opt/Postman/Postman /usr/bin/postman
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
@danylkaaa
danylkaaa / bassel_n_stirling.py
Last active June 16, 2019 19:37
Stirling and Basel interpolation methods
import numpy as np
def get_q(x, cp_x):
x0 = x[len(x) // 2]
h = x[1] - x[0]
return (cp_x - x0) / h
def get_x0_idx(x, cp_x):
@danylkaaa
danylkaaa / iterm2.md
Created January 3, 2020 11:34 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@danylkaaa
danylkaaa / .zshrc
Last active November 12, 2020 12:12
.zshrc macos
export ZSH=~/.oh-my-zsh
export UPDATE_ZSH_DAYS=5
plugins=(
git
docker-compose
gitignore
zsh-z
docker
npm
@danylkaaa
danylkaaa / .gitignore
Created March 2, 2020 12:52
Run cmd if checksum changed
#...
.lets-checksums