Skip to content

Instantly share code, notes, and snippets.

View doevelopper's full-sized avatar

Adrien H doevelopper

  • Versailles
View GitHub Profile
@doevelopper
doevelopper / gitlab-ci.yml
Last active October 30, 2021 10:04
Gitlab ci template config for my c++ project
variables:
GIT_SSL_NO_VERIFY: "true"
GIT_DEPTH: "3"
GET_SOURCES_ATTEMPTS: "3"
ARTIFACT_DOWNLOAD_ATTEMPTS: "2"
GIT_SUBMODULE_STRATEGY: "recursive"
GIT_STRATEGY: "fetch"
GIT_CHECKOUT: "false"
CMAKE_BUILD_TYPE: "Release"
BUILD_DIRECTORY: "build-$CI_PROJECT_NAME"
@doevelopper
doevelopper / Proxy.md
Last active January 9, 2019 13:24
setting Proxies trought CLI

https proxy regex

    ^https?://([^:]*(:[^@]*)?@)?([^:]+)(:\d+)?/?$|^$

Setting proxy only for command

$> sudo {http,https,ftp}_proxy=http://USERNAME:PW@PROXY-HOST:PROXY-PORT/ apt-get update
@doevelopper
doevelopper / beurk.yml
Created October 18, 2018 15:19
To validate
#Read https://rolln.de/knoppo/xtract/blob/master/.gitlab-ci.yml
stages:
- configure
- compile
- unit-testing
- package
- integration-testing
- verify
- code-review
- install
>$ openssl  s_client -connect crowd.devsecops.acme:80
>$ openssl ciphers -v 'TLSv1.2' | head -4

Check ssl option available

>$ openssl  s_client -connect devsecops.acme:80
>$ openssl ciphers -v 'TLSv1.2' | head -4

See if running, uptime, view latest logs

>$ systemctl status

See all systemd logs

$> python -c "import sys, urllib as enc; print enc.quote_plus(sys.argv[1])" "p@s#w:E"
# sudo usermod -a -G sudo gitlab-runner
# sudo visudo or sudo vi /etc/sudoers
# %gitlab-runner ALL=(ALL) NOPASSWD: ALL # All members of gitlab-runner to run sudo w/o pwd
# gitlab-runner ALL=(ALL) NOPASSWD: ALL # run sudo w/o password
# gitlab-runner ALL=(ALL) NOPASSWD: /usr/bin/apt
stages:
- sw-quality-tools
- dev-tools
- dependencies
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Output the log message to system console.
-->
<appender name="MyConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
</appender>
Gitlab-CI Travis CI Jenkins CI Circle CI BitBucket CI
Buid CT/CI/CD status
Test CT/CI/CD status
Integration CT/CI/CD status
Code Coverage coverage report
Code Analysis [![coverage report](https://git
#Read https://rolln.de/knoppo/xtract/blob/master/.gitlab-ci.yml
stages:
- configure
- compile
- unit-testing
- package
- integration-testing
- verify
- code-review
- install