Skip to content

Instantly share code, notes, and snippets.

View b23prodtm's full-sized avatar
💙
Migrating from X.com (ex-Twitter) to bSky.app (Bluesky)

TiB Rkt Arimana b23prodtm

💙
Migrating from X.com (ex-Twitter) to bSky.app (Bluesky)
View GitHub Profile
@b23prodtm
b23prodtm / LICENSE
Last active June 21, 2026 17:13
Script Bash avec interface Zenity pour configurer Samba sur openSUSE Tumbleweed. Inclut sauvegarde automatique, vérification testparm, et restauration.
MIT License
Copyright (c) 2026 Tina B Rakotoarimanana
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@wolfiediscord
wolfiediscord / FAQ.MD
Last active March 14, 2026 01:00
A guide of how to install unsupported macOS versions on unsupported macs. An FAQ is listed at the end as well.
@b23prodtm
b23prodtm / createWindows10USBinstallerOnMac.sh
Last active October 4, 2025 21:29
Creating a Windows 10 USB Installer using macOS in 2020 - How to Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal
#!/usr/bin/env bash
set -u
WIN_VOLUME=
DRIVE_NAME=
echo "
_.-;;-._
'-..-'| || |
'-..-'|_.-;;-._|
'-..-'| || |
jgs '-..-'|_.-''-._|"
@tstellanova
tstellanova / install-docker-arm64.sh
Last active June 10, 2026 06:01
Install docker CE for arm64
#!/bin/bash
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
@dansuh17
dansuh17 / unsubmodule.md
Created May 29, 2018 06:10 — forked from ryaninvents/unsubmodule.md
Convert git submodule to regular directory

From Stack Overflow.

# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin

# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master
@SpekkoRice
SpekkoRice / checkPHPVersion
Last active July 21, 2020 07:40
Bash: Check the version of PHP
#!/bin/bash
# Function to check if the PHP version is valid
checkPHPVersion() {
# The current PHP Version of the machine
PHPVersion=$(php -v|grep --only-matching --perl-regexp "5\.\\d+\.\\d+");
# Truncate the string abit so we can do a binary comparison
currentVersion=${PHPVersion::0-2};
# The version to validate against
minimumRequiredVersion=$1;
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@leonelquinteros
leonelquinteros / Mysql.php
Created July 17, 2013 00:19
Improved MySQL datasource for CakePHP. Includes support for missing (and needed) field types like LONGTEXT and MEDIUMTEXT
<?php
/**
* MySQL layer for DBO
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
@Mins
Mins / mysql_secure.sh
Last active January 31, 2026 10:10
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@webjay
webjay / gh_hook.php
Last active January 7, 2023 11:54
Php hook script that can git pull, apc_clear_cache() etc
<?php
ignore_user_abort(true);
function syscall ($cmd, $cwd) {
$descriptorspec = array(
1 => array('pipe', 'w'), // stdout is a pipe that the child will write to
2 => array('pipe', 'w') // stderr