Skip to content

Instantly share code, notes, and snippets.

Avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
@fedir
fedir / .gitignore
Last active Feb 7, 2021 — forked from Avinashachu007/.gitignore
.gitignore for Java, Maven, Spring Boot - Eclipse, Netbeans, IntelliJ IDEA, Visual Studio Code
View .gitignore
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
@fedir
fedir / clair.jenkinsfile
Last active Jan 15, 2021
Jenkinsfile Clair Step
View clair.jenkinsfile
stage("docker_scan avec clair"){
sh '''
docker rm db
docker rm clair
docker run -p 5432:5432 -d --name db arminc/clair-db:2021-01-08
docker run -p 6060:6060 -d --name clair arminc/clair-local-scan:arminc/clair-local-scan:v2.1.6_3bfb31ea61aa42eeb836354976065ccea308707e
clair-scanner --clair="http://clair:6060" vulnerables/web-dvwa
'''
@fedir
fedir / main.tf
Created Jan 3, 2021
Playing locally with TF and Nexus
View main.tf
## Providers declaration
terraform {
required_providers {
nexus = {
source = "datadrivers/nexus"
version = "1.10.5"
}
}
}
@fedir
fedir / main.tf
Created Dec 23, 2020
Local Docker provisioning with Terraform sample
View main.tf
# Local Docker provisionning
terraform {
required_providers {
docker = {
source = "terraform-providers/docker"
}
}
}
provider "docker" {}
@fedir
fedir / GopherCon_EU_Online_2020.md
Last active Nov 18, 2020
GopherCon Europe: Online 2020 videos - Ordered by "positive interest" metric with yrank
View GopherCon_EU_Online_2020.md
TITLE URL PUBLISHED AT POSITIVE INTERESTINGNESS TOTAL INTERESTINGNESS VIEWS LIKES DISLIKES COMMENTS TOTAL REACTION GLOBAL BUZZ INDEX
GopherCon Europe 2020: Kofo Okosela - Writing Open Source Tooling Using AST https://www.youtube.com/watch?v=0DE_7Nff6yg 2020-07-11 13:14:27 0.0323 0.0361 527 18 1 0 19 10013
GopherCon Europe 2020 LT: Ron Evans - A Small Update On TinyGo https://www.youtube.co
@fedir
fedir / Dockerfile
Last active Jul 8, 2020
Simple API server for SupInfo devops specialization
View Dockerfile
FROM golang:latest
RUN mkdir /app
ADD . /app/
WORKDIR /app
RUN go build -o main .
CMD ["/app/main"]
@fedir
fedir / .bashrc
Last active Mar 10, 2020
Kubernetes Linux Mint
View .bashrc
source <(kubectl completion bash) # active l'auto-complétion pour bash dans le shell courant, le paquet bash-completion devant être installé au préalable
echo "source <(kubectl completion bash)" >> ~/.bashrc # ajoute l'auto-complétion de manière permanente à votre shell bash
alias k=kubectl
complete -F __start_kubectl k
@fedir
fedir / tellmeyoursecrets.js
Last active Jan 20, 2020 — forked from rzrbld/tellmeyoursecrets.js
Google Apps Script that lists a lot of info about the files in a particular folder/sub folder structure including viewers, editors, and sharing access type
View tellmeyoursecrets.js
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Folder Name" ,"Name","Sharing Access", "Get Editors", "Get Viewers", "Date", "URL"]);
folderID = "ID"
listFolder(sheet, folderID)
}
function listFolder(sheet, folderID) {
var folder = DriveApp.getFolderById(folderID);
addRootFilesToSheet(sheet, folder)
@fedir
fedir / ResolvingGitConflictsInProduction.md
Created Jan 7, 2020
Resolving Git conflicts in production
View ResolvingGitConflictsInProduction.md

Checking for possible conflicts

git fetch origin branch
git diff --name-only HEAD..origin/branch
git diff HEAD..origin/branch directory_foo/file_bar.ext

Using git vimdiff

git config merge.tool vimdiff
git config merge.conflictstyle diff3
@fedir
fedir / goUpgrade.sh
Last active Dec 23, 2019
Go update script for Linux Mint / Ubuntu / Debian (and some other distributions)
View goUpgrade.sh
#!/bin/bash
# Golang upgrade script
# (C) 2019, Fedir RYKHTIK
# Usage: define the version constants and use it under the account
# Define target constants
VERSION="1.13.5"
OS="linux"