Skip to content

Instantly share code, notes, and snippets.

View culb's full-sized avatar
💭
Existing

culb culb

💭
Existing
  • N/A
  • USA
View GitHub Profile
@culb
culb / eui64.lua
Last active October 26, 2024 20:01
MAC address into an IPv6 link-local address( EUI-64 )
#!/usr/bin/env lua53
--| File: eui64.lua
--| Language: Lua
--| Version: 1
--|
--| Author: culb( nightfrog )
--| Contact: the01culb[at]protonmail[dot]com
--| Purpose: MAC address into an IPv6 link-local address( EUI-64 )
--| License: If this code is used in any way
--| then be courteous and include
@culb
culb / eui64.pl
Last active October 19, 2024 00:43
MAC address into an IPv6 link-local address( EUI-64 )
#!/usr/bin/env perl
#| File: eui64.pl
#| Language: Perl
#| Version: 1
#|
#| Author: culb( nightfrog )
#| Contact: the01culb[at]protonmail[dot]com
#| Purpose: MAC address into an IPv6 link-local address( EUI-64 )
#| License: If this code is used in any way
#| then be courteous and include
@culb
culb / hide_events.cpp
Last active December 25, 2023 18:34
Eat HexChat text events
/*\
* File: hide_events.cpp
* Language: C++
* Version: 0
*
* Author: culb( nightfrog )
* Contact: the01culb[at]protonmail[dot]com
*
* License:
* If this code is used in any way then
@culb
culb / nameserver.pl
Last active September 12, 2017 12:39
List the nameserver in /etc/resolv.conf
#!/usr/bin/env perl
###########################################################
# File: nameservers.pl
# Language: Perl
# Version: 0
# Author: culb( nightfrog )
# Contact: the01culb[at]protonmail[dot]com
#
# Usage: perl nameservers.pl
@culb
culb / factor.cpp
Last active September 12, 2017 12:40
Find the factors of a number
/*\
* File: factor.cpp
* Language: C++
* Version: 0
*
* Author: culb ( nightfrog )
* Contact: the01culb[at]protonmail[dot]com
*
* Find the factors of a number
*
@culb
culb / primefactor.cpp
Last active September 12, 2017 12:40
Find the prime factors of a number
/*\
* File: primefactor.cpp
* Language: C++
* Version: 0
*
* Author: culb ( nightfrog )
* Contact: the01culb[at]protonmail[dot]com
*
* Find the prime factors of a number
*
@culb
culb / linuxuptime.cpp
Last active September 12, 2017 12:41
Display a Linux system's uptime
/*\
* File: linuxuptime.cpp
* Language: C++
* Version: 5
*
* Author: culb (nightfrog)
* Contact: the01culb[at]protonmail[dot]com
*
* Compile:
* System uptime:
@culb
culb / check-restart.pl
Last active September 12, 2017 12:41
Check if a restart is needed for a Raspbian kernel update
#!/usr/bin/env perl
#############################################################################
# File: check-restart.pl
# Language: Perl
# Version: 1
# Author: culb (nightfrog)
# Contact: the01culb[at]protonmail[dot]com
#
# Usage: perl check-restart.pl
@culb
culb / windownalter.lua
Last active June 2, 2025 23:54
Interacting with HexChat's GUI from the Lua scripting interface
-- File: windownalter.lua
-- Language: Lua
-- Author: culb( nightfrog )
-- Contact: the01culb[at]protonmail[dot]com
--
-- Reference: https://developer.gnome.org/gtk2/stable/GtkWindow.html
--
-- Known issues: When using <move down|up>, there are issues positioning when the window isn't maximized
-- I didn't spend time figuring out how to solve it.
-- All commands where designed to work from a maximized window state
@culb
culb / xbps-cleanup
Last active September 12, 2017 12:42
Perl script to execute "xbps-remove -o" and "xbps-remove -O"
#!/usr/bin/env perl
#####################################
# File: xbps-cleanup.pl
# Language: Perl
# Version: 1
# Author: culb (nightfrog)
# Contact: the01culb[at]protonmail[dot]com
# Usage: sudo xbps-cleanup
# Purpose:Run xbps-remove (-o && -O)