Download linux
Download busybox
cd into linux
run:
make defconfig
make -j 24
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] |
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) | |
} |
<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└─>" |
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)) |
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 |
/** | |
* Lottery Simulator | |
* This is a simple lottery simulator that will simulate a lottery game. | |
*/ | |
#include <iostream> | |
#include <cstdlib> | |
#include <ctime> | |
#include <vector> |
# 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" | |
} |
Download linux
Download busybox
cd into linux
run:
make defconfig
make -j 24