Skip to content

Instantly share code, notes, and snippets.

View shiblisec's full-sized avatar
🎯
Focusing

Mohammed Shibli shiblisec

🎯
Focusing
View GitHub Profile
@shiblisec
shiblisec / gist:d0e9d00c0be22764bc32dd02797be9ad
Last active January 6, 2024 12:08
Sample Password and Keys
this is a test gist, it do not contain any sensitive information
sample password=xoxb-738473847384738-9384938493483948-834928abs38948394-8734873483iuwieuwe
@shiblisec
shiblisec / list.html
Last active November 5, 2023 07:29
Simple JS code to demonstrate list addition/deletion features
<html>
<body>
<style>
.itembox{
margin-bottom: 10px;
}
</style>
<div class="wrapperBox">
<div class="itembox"><input type="text" class="item" /></div>
<div class="itembox"><input type="text" class="item" /></div>
@shiblisec
shiblisec / xxe.rss
Last active October 27, 2019 05:08
XXE RSS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE replace [<!ENTITY example "Doe"> ]>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>TEST BLOG</title>
<link>javascript:alert(document.domain)</link>
<description>A blog about things</description>
<lastBuildDate>Mon, 03 Feb 2014 00:00:00 -0000</lastBuildDate>
<item>
<title>First post</title>
@shiblisec
shiblisec / mutation.js
Created February 7, 2019 11:24
Mutation
class Posts{
constructor(){
this.json_string = '{"records":[{"b_id":"1","t_id":"1","fullname":"Husain Amreliwala","telephone":"8169164372","email":"husain.amreliwala52@gmail.com","arr_time":"5:15 AM","pickup_time":"0","airline":"British Airways","flight_no":"BA741","adult":"1","infant":"0","children":"0","elderly":"0","trip_type":"Drop Off","source":"","destination":"Wayne Mansion, Kampala","amount":"1266","status":"not started"},{"b_id":"19","t_id":"3","fullname":"Micheal Pena","telephone":"8523697411","email":"mikey@gmail.com","arr_time":"","pickup_time":"2019-01-25, 02:14 AM","airline":"KLM Airways","flight_no":"KLM35","adult":"2","infant":"0","children":"0","elderly":"0","trip_type":"Drop off","source":"Pena Estate, Kampala","destination":"","amount":"1266","status":"not started"},{"b_id":"20","t_id":"3","fullname":"Joshua Price","telephone":"987456321","email":"joshua@live.com","arr_time":"2019-01-30 08:08 PM","pickup_time":"","airline":"Jet Airways","flight_no":"J12349","adult":"3","infant":"1","c
@shiblisec
shiblisec / ll.c
Created October 31, 2018 12:10
C program to reverse a Linked List
#include<stdio.h>
#include<stdlib.h>
struct node{
int value;
struct node *next;
};
struct node *HEAD = NULL;
struct node *temp, *y;
@shiblisec
shiblisec / reverse_words.c
Last active October 31, 2018 12:16
C program to reverse the order of words in a String.
#include<stdio.h>
#include<string.h>
char *reverse(char str[]){
static char result[100];
int start, end, i, j=0;
int len = strlen(str) - 1;
start = end = i = len; //starting from the end of the string.
while(i >= 0){
if(str[i] == ' '){
@shiblisec
shiblisec / keras_cnn.py
Created September 22, 2018 13:32
MNIST DATASET CNN KERAS
import tensorflow as tf
batch_size = 128
no_classes = 10
epochs = 2
image_height, image_width = 28, 28
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
x_train = x_train.reshape(x_train.shape[0], image_height, image_width, 1)
@shiblisec
shiblisec / LIRegressor.py
Last active May 2, 2018 09:33
Python Linear Regression Class
"""
author : Mohammed Shibli
Date: 14-04-2018
"""
import numpy as np
class LIRegressor:
sum_dependent = []