Skip to content

Instantly share code, notes, and snippets.

View sixtusagbo's full-sized avatar
🏡
Working from home

Sixtus Miracle Agbo sixtusagbo

🏡
Working from home
View GitHub Profile
@sixtusagbo
sixtusagbo / release.sh
Created February 26, 2024 10:16 — forked from rodydavis/release.sh
Flutter Release Script with Fastlane
#!/bin/bash
echo "App Release Automator by @rodydavis"
action="$1"
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
if [ ${action} = "build" ]; then
@sixtusagbo
sixtusagbo / example.dart
Created December 7, 2023 14:07 — forked from lukepighetti/example.dart
Another logger
class MyService {
final _log = Logger('MyService');
void init() {
try {
// operation
_log("initialized");
} catch(e, stackTrace){
_log.e("init() error", e, stackTrace);
}
extension on WidgetTester {
Future<void> launchApp() async {
await app.main();
await pumpAndSettle();
}
Future<void> clearState() async {
await SharedPreferences.getInstance().then((it) => it.clear());
}
@sixtusagbo
sixtusagbo / SignedApkGenrator.sh
Created September 5, 2023 09:19 — forked from prajapatiravi257/SignedApkGenrator.sh
Small bash script for generating keystore file and generate signed apk for ionic apps
#!/bin/bash
echo "-----------Release apk builder for Ionic-------------"
echo "---------------By rio257-------------------"
read -p "Do you want to generate keystore file? <Y/N> " prompt
read -p "Enter the name of app? " appname
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
@sixtusagbo
sixtusagbo / README.md
Created July 6, 2023 09:56 — forked from twolfson/README.md
Python unittest `setUp` inheritance

In some cases for Python unit tests, we want to automatically perform setUp methods in as declared in a base class. However, we still want setUp to work as per normal in the subclass. The following code will proxy the new setUp function to run it's base class' and the new one.

# Define a common test base for starting servers
class MyBaseTestCase(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        """On inherited classes, run our `setUp` method"""
        # Inspired via http://stackoverflow.com/questions/1323455/python-unit-test-with-base-and-sub-class/17696807#17696807
        if cls is not MyBaseTestCase and cls.setUp is not MyBaseTestCase.setUp:
@sixtusagbo
sixtusagbo / tmux-cheatsheet.markdown
Created June 9, 2023 05:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname