Skip to content

Instantly share code, notes, and snippets.

View ApexExpress's full-sized avatar
:atom:
send mail for update

CJ ApexExpress

:atom:
send mail for update
View GitHub Profile
@ApexExpress
ApexExpress / FILE.pl
Created November 21, 2023 17:40
Generally A Perl File
#!/usr/bin/perl
use strict;
use warnings;
# Open the file for reading
my $file_path = "data.txt";
open my $fh, '<', $file_path or die "Could not open file '$file_path' for reading: $!";
# Read and print each line from the file
while (my $line = <$fh>) {
@ApexExpress
ApexExpress / automate.rs
Created November 21, 2023 13:26
a simple explanation via chatgpt 3.5
use std::fs::File;
use std::io::{self, Read};
fn main() {
// Specify the file path to be read
let file_path = "example.txt";
// Attempt to open the file
match File::open(file_path) {
Ok(mut file) => {
@ApexExpress
ApexExpress / create_dirs.sh
Created November 18, 2023 05:54
Create the following directorys
#!/bin/bash
directories=(
"/home/kali/Desktop/SYS/SYSTEM/CODE"
"/home/kali/Desktop/SYS/SYSTEM/CONFIGS"
"/home/kali/Desktop/SYS/SYSTEM/DATA"
"/home/kali/Desktop/SYS/SYSTEM/EXT"
"/home/kali/Desktop/SYS/SYSTEM/INDEX"
"/home/kali/Desktop/SYS/SYSTEM/MAP"
"/home/kali/Desktop/SYS/SYSTEM/META"
@ApexExpress
ApexExpress / oneliners.sh
Created November 10, 2023 05:11
one-liners script
# List all files in the current directory
ls
# Create a new directory
mkdir new_dir
# Change to a new directory
cd new_dir
# Remove a directory
@ApexExpress
ApexExpress / SYSTEM.ext*
Created November 4, 2023 03:13
free formation indepence language
import os
import system from os
A-Z alphabet syntax
qwertyuiopasdfghjklzxcvbnm
META[DATA]
CODE{DATA}
\system_route
| pipeline operator
' literal qoute
" objective qoute
@ApexExpress
ApexExpress / Language_Matrix_Cube
Last active April 16, 2024 22:25
Language_matrix.Cube.pm change
! @ # $ % ^ & * ( !)
!! !@ !# !$ !% !^ !& !* !( @)
@! @@ @# @$ @% @^ @& @* @( #)
#! #@ ## #$ #% #^ #& #* #( $)
$! $@ $# $$ $% $^ $& $* $( %)
%! %@ %# %$ %% %^ %& %* %( ^)
^! ^@ ^# ^$ ^% ^^ ^& ^* ^( &)
&! &@ &# &$ &% &^ && &* &( *)
*! *@ *# *$ *% *^ *& ** *( ()
@ApexExpress
ApexExpress / process_command
Created October 18, 2023 03:44
chat gpt rust translation DATA
use std::process::Command;
fn main() {
// Define a function named 'exfil'
fn exfil(data: &str) {
let path = "/path/route/connection.sh";
if data == "C J" {
let mut command = Command::new(path);
command.arg("AM").arg("/c|b\\").arg("PM");
let status = command.status().expect("Failed to execute command");
@ApexExpress
ApexExpress / file_service.py
Created October 18, 2023 02:28
File creation via python
def main():
test = "path/goto/TEST.sh*"
config = "path/goto/CONFIG.sh*"
src = "path/goto/SRC.sh*"
path = "path/goto/PATH.sh*"
route = "path/goto/ROUTE.sh*"
try:
with open(test, "w") as test_file, \
open(config, "w") as config_file, \
# Step 1: Define the Purpose and Requirements
"""
Purpose: This software system is designed to manage an online bookstore.
Requirements:
1. Users should be able to browse and search for books.
2. Users should be able to add books to their shopping cart.
3. Users should be able to check out and make payments.
4. Admins should be able to add, edit, and remove books from the catalog.
5. Users should have accounts with profiles for personalized recommendations.
@ApexExpress
ApexExpress / universe.py
Created October 10, 2023 02:13
explain the universe
class Universe:
def __init__(self, age, size, galaxies):
self.age = age # Age of the universe in years
self.size = size # Size of the universe in cubic meters
self.galaxies = galaxies # List of galaxies in the universe
def expand(self, expansion_rate):
# Simulate the expansion of the universe
self.size *= (1 + expansion_rate)