Skip to content

Instantly share code, notes, and snippets.

View AliAmazone's full-sized avatar

Shan Khan AliAmazone

View GitHub Profile
@AliAmazone
AliAmazone / README.md
Created February 4, 2022 13:16 — forked from luizomf/README.md
VSCode settings.json - keybindings.json - recomendations - extensions.json. Just to backup (visual studio code)
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.js" defer></script>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<script>
function imageData() {
return {
previewUrl: '',
updatePreview() {
var reader, files = document.getElementById('thumbnail').files;
@AliAmazone
AliAmazone / index.html
Created August 30, 2021 05:54 — forked from neisdev/index.html
Navbar with Tailwind CSS
<!--js xor no-js -->
<main class="js">
<section class="aw-header bg-white border-b border-gray-200 shadow-md">
<header class="container mx-auto flex items-center justify-between flex-wrap px-2 py-4 lg:p-6 ">
<div id="mobile-menu__toggler" class="block lg:hidden">
<button id="mobile-menu__open" class="px-3 py-1 w-20 border rounded text-white bg-purple-700 border-transparent hover:bg-purple-900 transition">
Menu
</button>
<button id="mobile-menu__close" class="hidden px-3 py-1 w-20 border rounded text-white bg-purple-700 border-transparent hover:bg-purple-900 transition">
@AliAmazone
AliAmazone / index.html
Created August 30, 2021 05:50 — forked from neisdev/index.html
Tailwind Form
<body class="bg-cream text-charcoal min-h-screen font-sans leading-normal overflow-x-hidden lg:overflow-auto">
<main class="flex-1 md:p-0 lg:pt-8 lg:px-8 md:ml-24 flex flex-col">
<section class="bg-cream-lighter p-4 shadow">
<div class="md:flex">
<h2 class="md:w-1/3 uppercase tracking-wide text-sm sm:text-lg mb-6">Create New Location</h2>
</div>
<form>
<div class="md:flex mb-8">
<div class="md:w-1/3">
<legend class="uppercase tracking-wide text-sm">Location</legend>
@AliAmazone
AliAmazone / web.php
Created August 30, 2021 05:38 — forked from JeffreyWay/web.php
Array Filtering + Casting Demo
<?php
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::get('/names', function () {
@AliAmazone
AliAmazone / otp_html_input.html
Created August 30, 2021 05:24
OTP HTML Input
<html>
<head>
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body>
<div class="min-h-screen flex flex-col justify-center text-center">
<!-- Make sure the following div id (OTPInput) is the same in the Javascipt -->
<form action="#" method="post">
<!-- This is the div where the otp fields are generated by Javascript -->
<div class="flex justify-center " id="OTPInput">
@AliAmazone
AliAmazone / Tailwind setup for Django.md
Created August 30, 2021 04:59 — forked from Iftakharpy/Tailwind setup for Django.md
How to add Tailwind CSS to your Django project

Requirements

  • Install Node.js and npm
  • Install Django with pip

Steps

  1. Start Django project
    django-admin startproject mysite
    
  2. Change working directory to the project directory
@AliAmazone
AliAmazone / genetic.py
Created August 30, 2021 04:37 — forked from bellbind/genetic.py
[python]Genetic Algorithm example
"""Genetic Algorithmn Implementation
see:
http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php
"""
import random
class GeneticAlgorithm(object):
def __init__(self, genetics):
self.genetics = genetics
pass
@AliAmazone
AliAmazone / linuxprivchecker.py
Created August 30, 2021 04:36 — forked from sh1n0b1/linuxprivchecker.py
linuxprivchecker.py -- a Linux Privilege Escalation Check Script
#!/usr/env python
###############################################################################################################
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
##-------------------------------------------------------------------------------------------------------------
## [Details]:
## This script is intended to be executed locally on a Linux box to enumerate basic system info and
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text
## passwords and applicable exploits.
@AliAmazone
AliAmazone / urldecode.sh
Created August 30, 2021 04:30 — forked from sh1n0b1/urldecode.sh
URL decode one-liner command
alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'