Skip to content

Instantly share code, notes, and snippets.

View 0x4248's full-sized avatar
:octocat:

0x4248 (Blix) 0x4248

:octocat:
View GitHub Profile
@0x4248
0x4248 / proactive_installer.py
Created April 25, 2022 18:33
This will install all the proavtive developmet repos
import urllib.request
import json
import os
def get_repositories(org):
url = 'https://api.github.com/orgs/' + org + '/repos'
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
data = json.loads(response.read().decode())
return [repo['name'] for repo in data]
@0x4248
0x4248 / opacity.js
Created April 25, 2022 18:42
JS opacity animator
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function opacity_to_100(id){
var opacity = 0
for (let i = 0; i < 25; i++) {
document.getElementById(id).style.opacity = opacity+"%"
opacity = opacity + 4
await sleep(10)
}
@0x4248
0x4248 / index.html
Last active April 25, 2022 18:47
opacity animator in J (minifiled)
<script src="https://gist.github.com/awesomelewis2007/4ac3ea55bfae27f68adfadf6c6d1969d" async defer></script>
PS1="┌──[Bash \v]──[\@]──[\e[0;32m\u\e[0m@\e[0;32m\H\e[0;34m \w\e[0m]\n└─>"
@0x4248
0x4248 / Tiktok.py
Created July 13, 2022 15:52
A simulation to show how many videos someone watches on TikTok in one hour
import random
import time
class Values:
video_types = [15,60,180]
hour = 3600
def demo():
input("This is a algorithm to show how many TikTok videos a person can consume (Press enter)")
print("Videos watches if all videos are 15s that are 100% watched:"+str(Values.hour/15))
@0x4248
0x4248 / quick setup.sh
Created February 18, 2023 17:37
A quick setup script for awesomelewis2007's ideal development environment
echo "Quick setup script for awesomelewis2007's ideal development environment"
sudo apt update
sudo apt install gcc build-essential python3-dev python3-pip nodejs npm fish git micro mc -y
echo "Now changing shell to fish for current user"
sudo chsh -s /usr/bin/fish
cd ~
mkdir code
cd code
@0x4248
0x4248 / lottery.cpp
Created March 25, 2023 09:11
This is a simple lottery simulator that will simulate a lottery game.
/**
* Lottery Simulator
* This is a simple lottery simulator that will simulate a lottery game.
*/
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <vector>
@0x4248
0x4248 / quick_clone.py
Created June 27, 2023 07:17
Download all non-forked repositories of a user
# Quick Github downloader
# Download all non-forked repositories of a user
# By: Lewis Evans
import os
import requests
username = input("Enter your GitHub username: ")
clone_directory = "./repositories"
{
"name": "App/Project Name",
"version": "0.0.1",
"licence": "www.example.com/licence.txt",
"author": "Author Name",
"git_url": "www.example.com"
}
@0x4248
0x4248 / tutorial.md
Last active July 20, 2023 14:02
How to test Linux in qemu using busybox

Download linux

Download busybox

cd into linux

run:

make defconfig
make -j 24