Skip to content

Instantly share code, notes, and snippets.

View z7pz's full-sized avatar
🔥
It's person that would never waver

Ahmed Falih Al-kraidi z7pz

🔥
It's person that would never waver
View GitHub Profile
#![allow(non_snake_case)]
mod Caesar {
pub fn encrypt(string: String, n: i32) -> String {
let n = n % 26;
let mut res = String::new();
for char in string.as_bytes() {
if !char.is_ascii_alphabetic() || char.is_ascii_whitespace() {
res.push(char::from_u32(*char as u32).unwrap());
continue;
@z7pz
z7pz / wiki-100k.txt
Created October 17, 2022 13:09 — forked from h3xx/wiki-100k.txt
Wictionary top 100,000 most frequently-used English words [for john the ripper]
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources:
@z7pz
z7pz / 1-1000.txt
Created October 17, 2022 13:08 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
@z7pz
z7pz / 🎵 My Spotify Top Tracks
Last active August 1, 2022 10:02
🎵 My Spotify Top Tracks
Love Is a Drug Papithbk
Kaancepts 2 K.A.A.N.
I Don't Feel Anymore Gremlin
Lonely Akon
i don't really understa Kid T & Lul Patch
Journey Akon
Insecurities Damien
She Wonders Why (I Don' Danny G
Tired Nick Vig
Why Am I Waiting Papithbk
@z7pz
z7pz / 📊 Weekly development breakdown
Last active March 28, 2023 06:08
📊 Weekly development breakdown
TypeScript 187 hrs 4 mins ████████████▓░░░░░░░ 49.9%
Rust 87 hrs 1 min ███████▒░░░░░░░░░░░░ 23.2%
SCSS 26 hrs 48 mins ████▒░░░░░░░░░░░░░░░ 7.2%
JavaScript 13 hrs 42 mins ███▓░░░░░░░░░░░░░░░░ 3.7%
JSON 11 hrs 35 mins ███▒░░░░░░░░░░░░░░░░ 3.1%
CSS 10 hrs 13 mins ███▒░░░░░░░░░░░░░░░░ 2.7%
Bash 6 hrs 47 mins ███▒░░░░░░░░░░░░░░░░ 1.8%
Python 5 hrs 33 mins ███░░░░░░░░░░░░░░░░░ 1.5%
Other 5 hrs 3 mins ███░░░░░░░░░░░░░░░░░ 1.4%
Markdown 4 hrs 41 mins ███░░░░░░░░░░░░░░░░░ 1.3%
@z7pz
z7pz / LICENSE.md
Created October 27, 2021 17:31
Open Source license templates

Apache License, Version 2.0

Copyright <YEAR> <OWNER>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0
@z7pz
z7pz / discord-token-logger.js
Created October 23, 2021 11:07 — forked from m-Phoenix852/discord-token-logger.js
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
const { execSync } = require('child_process');
const version = process.versions.node.split('.')[0];
console.log(process.env.NODE_VERSION);
(async () => {
console.info('[LOG]: CHECKING NODE VERSION...')
if (version == '16') {
console.info(`[LOG]: NODE VERSION IS ${version}`)
} else {
@z7pz
z7pz / first non repeating char.js
Created August 3, 2021 23:00
first non repeating char
// default: 5.187ms (nevermind)
function f(s) {
let arr = Array.apply(0, { length: 26 }).map((c) => 0)
for (let c of s.split('')) arr[c.charCodeAt(0) - 'a'.charCodeAt(0)]++;
for (let c of s.split('')) {
if (arr[c.charCodeAt(0) - 'a'.charCodeAt(0)] == 1) return c;
}
console.log(arr)
return '_'
}
// NEED "src" FILE IN SAME DIR.
{
"compilerOptions": {
"target": "ES3",
"module": "commonjs",
"declaration": true,
"allowSyntheticDefaultImports": true,
"allowJs": false,
"experimentalDecorators": true,