Skip to content

Instantly share code, notes, and snippets.

View olegslavkin's full-sized avatar

Slavkin Oleg olegslavkin

  • Russia, Moscow
View GitHub Profile
@olegslavkin
olegslavkin / bootstrap.sh
Last active April 4, 2024 10:20 — forked from kukrimate/bootstrap.sh
Create a cross gcc toolchain for any target! And it only builds everything once!
#!/bin/bash
# This script builds a (hopefully) working gcc based cross compiler
# Update to latest stable release
BINUTILS_VERSION=2.28
GMP_VERSION=6.1.2
MPFR_VERSION=3.1.5
MPC_VERSION=1.0.3
ISL_VERSION=0.16.1
GCC_VERSION=6.3.0
@olegslavkin
olegslavkin / klish.sh
Last active February 20, 2024 14:11
Install klish util
#!/bin/bash
# Check Ubuntu 14.04.3 (amd86)
# Install klish (The klish is a framework for implementing a CISCO-like CLI on a UNIX systems. It is configurable by XML files. The KLISH stands for Kommand Line Interface Shell)
# http://libcode.org/projects/klish/
# Author: oleg@slavkin.info
echo "Step 0. Update apt-get"
sudo apt-get update
echo "Step 1. Install tools"
@olegslavkin
olegslavkin / LFE5UM5G-45F-VERSA-EVN.md
Last active June 2, 2023 03:44
Lattice ECP5-5G Versa Development Kit

Первое включение.

Поведение индикаторов devboard

  • При первом включение горят постоянно светодиоды: D20, D9, D11, D12, D31 (green), D13 (blue)
  • Светодиоды D21 - D29 включаются по-переменно.
  • 14-ти сегментный дисплей по-переменно включаются все сегменты, включая точку справа.

Сообщения в Linux

$ dmesg
...
package types
import (
"database/sql/driver"
"github.com/google/uuid"
)
type ChatID uuid.UUID
func NewChatID() ChatID {
XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: January 8 1999
If the server is older than 6-12 months, or if your card is newer
than the above date, look for a newer version before reporting
problems. (see http://www.XFree86.Org/FAQ)
Operating System: Linux 2.2.13 i686 [ELF]
Configured drivers:
S3: accelerated server for S3 graphics adaptors (Patchlevel 0)
newmmio, mmio_928, s3_generic
@olegslavkin
olegslavkin / ovs.sh
Last active June 20, 2022 12:08
Install Openvswitch from source (Ubuntu 14.04.3 Server)
!#/bin/bash
# Install openvswitch Ubuntu 14.04.3
# Author: Oleg Slavkin (oleg@slavkin.info)
echo "-------------------------------"
echo "Step 1. Install git package"
echo "-------------------------------"
sudo apt-get update
sudo apt-get -y install git
@olegslavkin
olegslavkin / ryu.sh
Created February 13, 2016 12:46
Install Ryu Controller (Ubuntu 14.04.3 Server)
#!/bin/bash
# Install RYU (Ubuntu 14.04.3)
# Author: Oleg Slavkin
echo "Step 1. Install tools"
sudo apt-get -y install git python-pip python-dev
echo "Step 2. Install python packages"
sudo apt-get -y install python-eventlet python-routes python-webob python-paramiko
@olegslavkin
olegslavkin / gist:0204f084197cc16d692b83015d749df9
Created March 4, 2021 10:28
virtualbox ubuntu and guest X11
sudo apt install virtualbox-guest-x11
sudo usermod -G vboxsf -a ${USER}
sudo reboot

Clone and compile

unset PRJ
export PRJ=${HOME}/Projects/pce
git clone git://git.hampa.ch/pce.git ${PRJ} && cd ${PRJ}
CFLAGS="-g3 -pg -fno-omit-frame-pointer " LDFLAGS="-g3" ./configure --prefix=$HOME/.local --disable-atari-st --disable-cpm80 --disable-macplus --disable-rc759 --disable-sim405 --disable-sims32 --disable-simarm --disable-vic20 --with-x
make -j $(nproc) && make install

help for pce-ibmpc