Skip to content

Instantly share code, notes, and snippets.

Raphaël sundowndev

Block or report user

Report or block sundowndev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sundowndev
sundowndev / readme.md
Last active Dec 13, 2019
How to push to a public Github repo and trigger a deploy event
View readme.md

How to push to a public Github repo and trigger a deploy event

  1. Create a SSH deploy key
ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-pages -N ""
# You will get 2 files:
#   gh-pages.pub (public key)
#   gh-pages     (private key)
@sundowndev
sundowndev / wifipass.py
Created Oct 12, 2019
Create a password that can be found/calculated without a computer, using binary to ascii conversion.
View wifipass.py
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
"""
Create a password that can be found/calculated
without a computer, using binary to ascii conversion.
Example:
Consider the following binary code:
00101011 01011100
@sundowndev
sundowndev / GoogleDorking.md
Last active Feb 19, 2020
Google dork cheatsheet
View GoogleDorking.md

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@sundowndev
sundowndev / setup
Created Dec 14, 2018
Share your git flow configuration
View setup
#!/usr/bin/env bash
# Override git flow config
git flow init -f -d
git config gitflow.branch.master "master"
git config gitflow.branch.develop "develop"
git config gitflow.prefix.feature "feature/"
git config gitflow.prefix.release "release/"
git config gitflow.prefix.hotfix "hotfix/"
@sundowndev
sundowndev / safeURI.php
Created Jun 1, 2018
Convert string into a safe URI
View safeURI.php
<?php
function safe_uri($str)
{
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
$clean = preg_replace("/[^a-zA-Z0-9\_\|+ -]/", '', $str);
$clean = strtolower(trim($clean, '-'));
$clean = preg_replace("/[\_|+ -]+/", '-', $clean);
/* Remove the last "-" in the final string (if exist) */
@sundowndev
sundowndev / node.vhost
Created Nov 11, 2017
VirtualHost for nodejs using apache
View node.vhost
<VirtualHost *:80>
ServerName example.com
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
@sundowndev
sundowndev / PDO classes.md
Created Oct 31, 2017 — forked from danferth/PDO classes.md
PHP classes for PDO
View PDO classes.md

PDO Classes for db connect and manipulation

Below is a description on how to use the classes in the below script

###Include script and set up db variables

include 'zdb.php';
You can’t perform that action at this time.