Skip to content

Instantly share code, notes, and snippets.

View six519's full-sized avatar

Ferdinand E. Silva six519

View GitHub Profile
@six519
six519 / ntfs.md
Last active May 12, 2024 03:10
Read/write NTFS drive on macOS Ventura with Apple silicon processor

Configuring your Mac!

Change security settings

  • Shut down your Mac, then press and hold the power button until "Loading startup options" appear.
  • Select "Options"
  • In the menu on top of the screen, choose "Utilities" -> "Startup Security Utility".
  • Click "Security Policy"
  • Select "Reduced Security" and check "Allow user management of kernel extensions from identified developers".
  • Reboot
@six519
six519 / test.asm
Created March 18, 2023 10:48
Linux x86-64 Assembly Language termios Sample Code
%define STDIN_FILENO 0
%define TCSAFLUSH 2
%define VMIN 6
%define VTIME 5
%define BRKINT 0x2
%define ICRNL 0x100
%define INPCK 0x10
%define ISTRIP 0x20
%define IXON 0x400
%define OPOST 0x1
@six519
six519 / test.asm
Created March 15, 2023 04:38
Floating Point Operation Sample Code In Assembly Linux x64
;floating point operation sample code
;just practicing programming in assembly language (Ferdinand Silva)
global main
extern printf
section .text
main:
call float_operation
mov rdi, str
sub rsp, 8 ;align stack (double is 8 bytes)
@six519
six519 / test.ttk
Created November 14, 2022 10:27
Titik Programming Language/Interpreter SDL2 Play Sounds
if(!(s_i(S_E))) # init sdl
abt('Unable to initialize SDL...')
fi
if(!(s_mi(SM_MP))) # init mix
abt('Unable to initialize SDL Mix...')
fi
if(!(s_moa(SM_D_FR, SM_D_FO, SM_D_CHA, SM_D_CHU))) # open audio
@six519
six519 / test.ttk
Created November 13, 2022 08:52
Titik Programming Language/Interpreter SDL2 Draw Text
if(!(s_it())) # init ttf
abt('Unable to init ttf...')
fi
if(!(s_i(S_E))) # init sdl
abt('Unable to initialize SDL...')
fi
win = s_cw("Test", S_WP_U, S_WP_U, 800, 600, S_W_S) #create window
if(win == Nil)
@six519
six519 / test.ttk
Created November 10, 2022 02:53
Titik Programming Language / Interpreter SDL2 Sample Code
^
SDL2 Sample Code
================
^
#init sdl
if(!(s_i(S_E)))
abt('Unable to initialize SDL...')
fi
#create window
@six519
six519 / bot.ttk
Created May 28, 2022 09:58
Socket Programming Sample Code In Titik PL (IRC Echo Bot)
irc_port = 6667
socket = ""
irc_server = r("Please Enter IRC Server Address: ")
irc_nick = r("Please Enter IRC Nick: ")
irc_channel = r("Please Enter IRC Channel: ")
socket = netc("tcp", irc_server + ":" + tos(irc_port))
socket_msg = ""
wl (T)
@six519
six519 / drone.ttk
Last active January 20, 2022 06:25
Controlling DJI Tello Drone With Titik
sc(5)
p("Drone Commander 1.1\n")
p("By: Ferdinand Silva\n")
p("-------------------\n")
command_connection = netc("udp", "192.168.10.1:8889")
netw(command_connection, "command")
fl (0, 0)
sc(3)
@six519
six519 / img2css.py
Created September 23, 2021 12:05
A Python script that converts an image file to a pure CSS image
"""
A Python script that converts an image file to a pure CSS image.
This code was based on a PHP script https://github.com/jaysalvat/image2css.
Sample: https://codepen.io/six519/pen/YzQOKrX
"""
import os
import sys
from PIL import Image
@six519
six519 / uname.asm
Created July 25, 2020 10:13
Get Information About Current Linux Kernel In Assembly Language
;macro, struct and syscall uname
;just practicing programming in assembly language (Ferdinand Silva)
%macro print_info 3
mov r13, %1
mov r14, %2
call print
mov r13, utsname + %3
mov r14, 24
call print
mov r13, NEW_LINE