Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vitorbritto
vitorbritto / rm_mysql.md
Last active April 23, 2024 14:21
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@qoomon
qoomon / conventional_commit_messages.md
Last active April 23, 2024 14:18
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@Glavak
Glavak / mechanics.txt
Created December 7, 2020 13:52
Список игровых механик из видео https://youtu.be/hq5fofOLI6w
Здоровье в качестве валюты как в некоторых комнатах Isaac'а или пули за здоровье в Bloodborne
Туман войны, он есть во многих стратегиях
Отсутствие меню, или меню вписанное в игровой мир, например в Antichamber
Красные бочки - наверное одна из самых шаблонных механик - но зато это делает её понятной всем игрокам
Такая широкая идея как редактирование мира, как в терарии и майнкрафте, или в astroneer, в котором она выглядит красивее засчёт отсутствия блоков
Гибкое создание кастомных заклинаний или оружия, как было в тех же Worms
Сохранение в кровати или в доме игрового персонажа
Bullet hell, и не обязательно как жанр, можно создать такого босса или уровень во многих 2D играх со стрельбой
Сложные взаимоотношения между нпс, когда мутанты сражаются с рейдерами, или система нпс в Streets Of Rouge
Изменение цвета уровня как в shift
@ChenSheng233
ChenSheng233 / XSSF 单元格有效性-下拉框
Last active April 23, 2024 14:14
POL Excel 单元格有效性
InputStream input = Thread.currentThread().getContextClassLoader().getResourceAsStream("excel/合同模板.xlsx");
Workbook workbook = new XSSFWorkbook(input);
//获取页面
Sheet sheet = workbook.getSheet("sheet1");
// 获取第一行最后一列
Row row = sheet.getRow(0);
short lastNum = row.getLastCellNum();
// 单元格居中对齐
@maxspero
maxspero / wordle_variants.md
Last active April 23, 2024 14:12
Comprehensive list of Wordle variants

Original

  • Wordle - Guess a five-letter word in six guesses. Each guess must be real words.

Clones

Multiplayer

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@disler
disler / ADA_v2_README.md
Created April 17, 2024 18:01
Personal AI Assistant: 'Ada' - v0.2

This is not working complete code.

This is strictly a v0.2, scrapy, proof of concept version of a personal AI Assistant working end to end in just ~726 LOC.

This is the second iteration showcasing the two-way prompt aka multi-step human in the loop. The initial, v0, assistant version is here.

It's only a frame of reference for you to consume the core ideas of how to build a POC of a personal AI Assistant.

To see the high level of how this works check out the explanation video. To follow our agentic journey check out the @IndyDevDan channel.

@samuelkchris
samuelkchris / gist:cfe89362e073e13591c02bc8999ff729
Created April 23, 2024 14:09
combination of StreamBuilder and StreamController. Here's a step-by-step plan: Create a StreamController that will broadcast the current DateTime every second. Use StreamBuilder in your widgets to listen to this stream and rebuild every time a new DateTime is emitted. In each widget, extract the relevant information (second, day, or day of week)…
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
class TimeController {
final _timeController = StreamController<DateTime>.broadcast();
TimeController() {
Timer.periodic(const Duration(seconds: 1), (Timer t) {
_timeController.add(DateTime.now());
@Chester-Gillon
Chester-Gillon / ConnectX_encryption_support.md
Last active April 23, 2024 14:07
Notes about encryption support in Mellanox ConnectX adapters

0. Introduction

Contains notes about encryption support in Mellanox ConnectX adapters.

With a ConnectX-4 Lx or ConnectX-5 noticed that the ethtool statistics had some counters with tls in their names, so wasn't sure if that meant the adapters has hardware offload support for encryption.

1. Mellanox product highlights

Starting at ConnectX SmartNICs and looking at the product features:

  1. ConnectX-4 Lx says ENCRYPTION N/A
@paulund
paulund / AuthTestsServiceProvider.php
Last active April 23, 2024 14:05
Laravel Make Auth Tests
<?php
namespace Dappa\AuthTests;
use Illuminate\Support\ServiceProvider;
/**
* Auth test service provider
*/
class AuthTestsServiceProvider extends ServiceProvider