Skip to content

Instantly share code, notes, and snippets.

View mojo35's full-sized avatar

Francois Majola mojo35

View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / Completely Uninstall LAMP Ubuntu
Last active September 24, 2024 10:31
Completely Uninstall LAMP Ubuntu 20.04 LTS
HIRE Me For Your Project Support :)
Telegram: https://t.me/LinuxGun
#!/bin/bash
# Completely Remove Apache Ubuntu
service apache2 stop
apt purge apache2 apache2-utils apache2.2-bin
apt remove apache2.*
apt autoremove
whereis apache2
@pamelafox
pamelafox / solar_system_objects.sql
Last active August 1, 2024 16:42
solar_system_objects.sql
/*
Solar system objects
Adapted from: http://en.wikipedia.org/wiki/List_of_Solar_System_objects_by_size
Collected by: https://www.khanacademy.org/profile/patrick809/programs
*/
CREATE TABLE solar_system_objects(
body TEXT
, mean_radius NUMERIC /* km */
, mean_radius_rel NUMERIC /* relative to earth */
, volume NUMERIC /* 10^9 km^3 */
@pamelafox
pamelafox / top_movies.sql
Last active September 10, 2024 21:50
Top 100 Movies
/* Source: http://www.boxofficemojo.com/alltime/world/ */
CREATE TABLE topmovies(
Rank INTEGER,
Title TEXT,
Studio TEXT,
Worldwide REAL,
Domestic REAL,
DomesticPct REAL,
Overseas REAL,
OverseasPct REAL,
@FiloSottile
FiloSottile / 32.asm
Last active October 18, 2024 14:45
NASM Hello World for x86 and x86_64 Intel Mac OS X (get yourself an updated nasm with brew)
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
start:
push dword msg.len
push dword msg
push dword 1
mov eax, 4