Skip to content

Instantly share code, notes, and snippets.

View cyb3rsalih's full-sized avatar

mehmet salih bindak cyb3rsalih

View GitHub Profile
@cyb3rsalih
cyb3rsalih / xss.py
Created September 14, 2020 07:07
Basic XSS Scanner
#!/usr/bin/python3
import certifi
import urllib3
import time
import requests
import os
import sys
from sty import fg, rs
http = urllib3.PoolManager()
@cyb3rsalih
cyb3rsalih / KeyboardAvoidingView.js
Last active August 8, 2020 17:29
KeyboardAvoidingView optimum settings works both iOS and Android
import React from 'react'
export const KeyboardAvoidingView = props => {
const lib = require('react-native-keyboard-aware-scroll-view')
const defaultProps = {
style: {flex: 1},
contentContainerStyle: {flexGrow: 1},
bounces: false,
bouncesZoom: false,
alwaysBounceVertical: false,
function asd(){
alert(document.location);
}
@cyb3rsalih
cyb3rsalih / learn.awk
Last active August 1, 2020 16:15
AWK Cheatsheet
file.txt is something like this. ls with size of files
"""
asd 12213
asd 1231231
sdas 4534
sdas 4534
sdas 4534
sdas 4534
sdas 4534
"""
@cyb3rsalih
cyb3rsalih / index.js
Created April 20, 2020 12:50
React Native Async Storage | Uygulamada birşeyler yaptım, uygulamaya geri döndüm. Kaldığım yerden devam etsin....
_storeData = async (last) => {
console.log("store data:"+last)
AsyncStorage.setItem("LAST",last,(err) =>
{
if(err == null ){
console.log("Set edildi: "+last)
}else{
console.log("Error:"+err)
}
}
@cyb3rsalih
cyb3rsalih / Social.js
Last active April 18, 2020 12:58
React Native Nice Look Social Media Screen
import React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
Linking,
StatusBar,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
@cyb3rsalih
cyb3rsalih / iTerm.json
Created February 11, 2020 10:25
iTerm Configuration
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.81066548824310303,
"Blue Component" : 0.99898606538772583,
"Red Component" : 0.43880558013916016
},
@cyb3rsalih
cyb3rsalih / index.js
Last active November 26, 2019 00:47
mysql connection with nodejs. Use url path as parameter.
//REF: https://dev.to/saulojoab/how-to-get-data-from-an-mysql-database-in-react-native-53a4
const express = require("express");
const bodyParser = require("body-parser");
const mysql = require("mysql");
const connection = mysql.createPool({
host: "localhost", // Your connection adress (localhost).
port: 8889, // 3309 , 8888, 8080 ....
user: "user", // Your database's username.
password: "password", // Your database's password.
import subprocess
import sys
import json
import requests, json
"""
Unoffical cert.sh API from https://github.com/PaulSec/crt.sh
"""
class crtshAPI(object):
@cyb3rsalih
cyb3rsalih / renk.js
Last active July 10, 2019 13:33
Hex Color Generator
export const renk = () => {
let hex = [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",