Skip to content

Instantly share code, notes, and snippets.

View dolby360's full-sized avatar
👾
Contact me and let's collaborate

Dolev Ben Aharon dolby360

👾
Contact me and let's collaborate
  • Israel
View GitHub Profile
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
@dolby360
dolby360 / rpi_setup.md
Last active February 21, 2024 08:02
Cheet shit for setting up a rasberry pi.

Before inserting the card: Add a file called ssh Add another file called wpa_supplicant.conf with:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
 ssid="NETWORK NAME"
@dolby360
dolby360 / .md
Last active December 3, 2023 17:29 — forked from pwnedDesal/.md
PHP Session Data Injection Vulnerability

#PHP Session Data Injection Vulnerability

Taoguang Chen <@chtg57> - Write Date: 2016.7.27 - Release Date: 2016.8.18

PHP's session php/php_binary handlers wrongly handles the session name cause arbitrarily session data injection.

Affected Versions

Affected is PHP 5 < 5.6.25
Affected is PHP 7 < 7.0.10

@dolby360
dolby360 / README.md
Created January 5, 2023 14:27
Readme instructions for python project

Installation

Prerequisits.
python 3 virtualenv
pip

  • Create a virtual env and activate
    python3 -m venv venv

On windows.

import React from 'react';
import * as d3 from 'd3'
class App extends React.Component {
constructor(props){
super(props);
this.myRef = React.createRef();
}
componentDidMount(){
var svg = d3.select(this.myRef.current)
@dolby360
dolby360 / Insert.py
Created April 25, 2020 20:58
Insert<br> at the end of line
import re
import argparse
path_to_file = "/home/dolby/Desktop/idps_main/argusCore/qac_waivers.h"
appendText=' <br>'
pattern = re.compile("(#ifndef QAC_WAIVERS_H)|(#define QAC_WAIVERS_H)|(.*PRQA S.*)|(.*-------------------------.*)|(.*\*\/.*)")
def write_br():
names=open(path_to_file,'r')
@dolby360
dolby360 / Question.py
Created November 21, 2019 14:08
Interview question.
# for the array ["abc","def","123"]
# print
# ad1 ad2 ad3 ae1 ae2 ae3 af1 af2 af3
# bd1 bd2 bd3 be1 be2 be3 bf1 bf2 bf3
# cd1 cd2 cd3 ce1 ce2 ce3 cf1 cf2 cf3
# for the array ["123","45"]
# print
# 14 15 24 25 34 35