Skip to content

Instantly share code, notes, and snippets.

View snikulov's full-sized avatar
💭
I may be slow to respond.

Sergei Nikulov snikulov

💭
I may be slow to respond.
View GitHub Profile

Bitbake Cheatsheet

Verbose as possible

bitbake -vDDD your-recipe

List recipes

bitbake -s
@snikulov
snikulov / renew-gpgkey.md
Created May 18, 2023 20:24 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

Linux - Systemd cheatsheet

systemctl

Activates a service immediately:

systemctl start foo.service

Deactivates a service immediately:

@snikulov
snikulov / tree.md
Created October 11, 2017 14:17 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@snikulov
snikulov / dbm.c
Created September 27, 2017 14:26 — forked from athurg/dbm.c
a example code for gdbm using
/* db_add.c: storing
written by rock <shirock@residence.educities.edu.tw>, 1999.11.29
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gdbm.h>
#define datum_set(um, buf) { um.dptr = buf; um.dsize = strlen(buf); }
@snikulov
snikulov / dbm.c
Created September 27, 2017 14:26 — forked from athurg/dbm.c
a example code for gdbm using
/* db_add.c: storing
written by rock <shirock@residence.educities.edu.tw>, 1999.11.29
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gdbm.h>
#define datum_set(um, buf) { um.dptr = buf; um.dsize = strlen(buf); }
@snikulov
snikulov / SnmpMgr.c
Created August 11, 2016 07:43 — forked from gvanem/SnmpMgr.c
Windows SNMP client with libcurl
/*****************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References