Skip to content

Instantly share code, notes, and snippets.

View doevelopper's full-sized avatar

Adrien H doevelopper

  • Versailles
View GitHub Profile
curl -I -L -k https://identity.devsecops.acme
curl -Ik https://www.identity.devsecops.acme
curl -I -H "Accept-Encoding: gzip, deflate" -L -k https://identity.devsecops.acme
http://regexlib.com/Search.aspx?k=password
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$
Description
Password matching expression. Password must be at least 4 characters, no more than 8 characters,
and must include at least one upper case letter, one lower case letter, and one numeric digit
@doevelopper
doevelopper / ssh tunelling
Last active August 27, 2017 16:01
ssh tunelling
ssh -N -L 8888:127.0.0.1:80 usezrOnremotehost@remoteIP
@doevelopper
doevelopper / update
Created August 27, 2017 17:02
Update Ubuntu to latest git and nginx
sudo apt-get purge nginx nginx-common
sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.bak
sudo echo "deb http://nginx.org/packages/mainline/ubuntu/ zesty nginx" | sudo tee -a /etc/apt/sources.list
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install nginx
sudo apt-get install git
@doevelopper
doevelopper / fdiskraspbiansh
Created September 7, 2017 22:41
mount raspian for local dev intead of rsyn rpi
> fdisk -l raspbian.img
Disk raspbian.img: 1,7 GiB, 1854418944 bytes, 3621912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xee397c53
./configure --prefix=/opt/qemu-2.10/qemu --interp-prefix=/opt/qemu-2.10/gnemul/qemu-%Mls \
--target-list=aarch64-softmmu,arm-softmmu,x86_64-softmmu,aarch64-linux-user,arm-linux-user, i386-linux-user,x86_64-linux-user
-- from the command-line:
createdb -E UNICODE -l C -T template0 jiradb
-- CREATE DATABASE jiradb WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
--
-- https://www.postgresql.org/docs/9.6/static/app-createuser.html
-- $> sudo su - postgres
-- $> createuser --interactive --pwprompt crowd
-- >n
Application Addons Purpose IP:Ports on same host IP:Ports Nginx server
JIRA Core 38080 192.168.1.1:8080 192.168.1.200
JIRA Software Gliffy Git Integration GitLab Listener Commit Policy Jenkins 38091 192.168.1.2:8080
JIRA Servicedesk 38092 192.168.1.3:8080
Bitbucket Serve Sonar JFrog 37990 192.168.1.4:7990
Gitlab-CE
@doevelopper
doevelopper / buildrootRPI3b.sh
Last active November 24, 2017 22:43
sets of command for building RTOS for raspberry PI 3b
export PATH=/opt/aarch64-linux-gnu/bin/:/opt/armv8l-linux-gnueabihf/bin/:$PATH
export TRIPLET=armv8l-linux-gnueabihf
export CPU_NUMBERS=`nproc`
CC=${TRIPLET}-gcc
CXX=${TRIPLET}-g++
NM=${TRIPLET}-nm
AR=${TRIPLET}-ar
AS=${TRIPLET}-as
LD=${TRIPLET}-ld
CPP=${TRIPLET}-cpp
#!/bin/bash
#./qemu-x86_64.sh ~/linux/arch/x86/boot/bzImage ~/buildroot/output/images/rootfs.cpio.
kernel=$1
initrd=$2
if [ -z $kernel ]; then
echo "pass the kernel argument"
exit 1