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 / 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
-- 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
#!/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
@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
1. Create an empty repo in BitBucket
2. `git clone --bare git@github.com:user/repo.git`
3. `cd repo.git`
4. `git push --mirror git@bitbucket.org:user/repo.git`
   qemu-system-aarch64 -m <memory size> -M <machine name> -drive if=none,file=<hard drive file name>,id=hd0 \
 -device virtio-blk-device,drive=hd0 -netdev type=tap,id=net0 -device virtio-net-device,netdev=net0

Read for RPI3 and qemu 2.12

https://translatedcode.wordpress.com/2018/04/25/debian-on-qemus-raspberry-pi-3-model/

Setup Buildroot environment