Skip to content

Instantly share code, notes, and snippets.

View hardikmdev's full-sized avatar

Hardik hardikmdev

View GitHub Profile
@ParticleG
ParticleG / RedisHelper.cpp
Last active December 12, 2022 11:41
Redis helper for drogon framework
//
// Created by ParticleG on 2022/2/9.
//
#include <helpers/RedisHelper.h>
#include <ranges>
#include <structures/Exceptions.h>
#include <utils/crypto.h>
#include <utils/datetime.h>
@oaustegard
oaustegard / gpt3_javielsker.txt
Last active December 12, 2022 09:12
GPT-3 chatbot: what are the lyrics of the second verse of the Norwegian national anthem?
The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.
Human: Hello, who are you?
AI: I am an AI created by OpenAI. How can I help you today?
Human: What factual information are you able to recall?
AI: I remember everything I am told.
Human: Right, but what types of facts have you already learned?
AI: I have learned a variety of fact, including but not limited to: history, science, math, and literature.
Human: Do you know song lyrics?
AI: I do know song lyrics.
@SofijaErkin
SofijaErkin / ctags_and_taglist_for_vim_on_mac_or_linux.md
Last active July 3, 2023 10:41
ctags and taglist for vim on mac/debian

MacOS/Linux install Ctags and Taglist for VIM

(Debian 11)Debian's default ctags is that ctags (GNU Emacs 27.1).

(MacOS10.12.6->upgrade_to->MacOS12.3.1)macOS's default ctags is the Unix ctags utility that is under

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags.

The taglist plugin will not work with the GNU ctags or the Unix ctags utility.

@grizz
grizz / stream2alma.sh
Last active November 23, 2023 15:14
Convert CentOS Stream to AlmaLinux
# swap back to stream repos
# dnf swap centos-{stream,linux}-repos -- only works if the centos-linux-repos package is cached
dnf install --allowerasing https://mirror.rackspace.com/centos-vault/8.5.2111/BaseOS/x86_64/os/Packages/centos-linux-repos-8-3.el8.noarch.rpm
# doesn't work, need to manually flip after update
# dnf swap centos-{stream,linux}-release
# update to centos-vault repos
sudo sed -i -e '/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/' -e '/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/' -e '/^\[baseos\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/BaseOS/$basearch/os' /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
sudo sed -i -e '/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/' -e '/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/' -e '/^\[appstream\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/AppStream/$basearch/os' /e
@Aaronontheweb
Aaronontheweb / spec.md
Last active September 14, 2025 14:34
Technical Spec Template

Engineering Spec

💡 Use this template to help structure new engineering projects into specifications. Make sure you attach this spec to the right project - if it’s not a flagship technology then it goes under "Other Projects"

Abstract

Problem statement - what is the nature of the issue we’re going to try to solve with this specification?

@lambda-mike
lambda-mike / tmux_cheatsheet.md
Last active August 11, 2022 13:37
My Tmux cheatsheet

CI & CD

This document exposes the steps to correctly configure the CD/CI environment integrated in gitlab server. The pipeline is runned in a dedicated computation server (not in the same machine where gitlab is installed). The run environment is embedded in a Docker image, where all the dependencies must be installed or should be installed on each test bench.

0. Pre-requisites

Before start, be sure that you have all what you need:

  1. Gitlab server.
  2. A testing server (called runner) to run the CD/CI pipelines.
  3. Docker installed in the testing server.
@XingLiangLondon
XingLiangLondon / Object Detection.md
Last active November 24, 2022 15:42
Object Detection

Object Detection

Why do we need object detection?

  • Labelling Scenes
  • Robot Navigation
  • Self-Driving Cars
  • Body Recognition (Microsoft Kinect)
  • Disease and Cancer Detection
  • Facial Recognition