Skip to content

Instantly share code, notes, and snippets.

View bvp's full-sized avatar
🏠
Working from home

Vasiliy Bukharev bvp

🏠
Working from home
View GitHub Profile
@ihatecsv
ihatecsv / README.md
Last active March 1, 2023 14:14
RGB VSCode
  1. Follow the instructions to install Custom CSS and JS Loader for VSCode

  2. Make a file with the rgbcode.css content, and follow the instructions in the above link to add the file path to the settings.json. For example, mine is:

"vscode_custom_css.imports": ["file:///C:/Users/drake/Documents/rgbcode/rgbcode.css"]
@onegreyonewhite
onegreyonewhite / readme.md
Last active April 6, 2024 17:52
Example of script inventory

Example of script inventory

This is an example script for implementing dynamic inventory in Ansible. It could have been written in bash, but python is much easier to read.

How to use

  1. Copy inventory script to any path like $HOME/test_inventroy.py
  2. Make file executable: chmod +x $HOME/test_inventroy.py
  3. Change store to your needs.
@stillya
stillya / jooq-conventions.gradle.kts
Created November 19, 2022 20:43
It's example of configuration convention plugin for jOOQ+TC+Gradle+Flyway. V2
import nu.studer.gradle.jooq.JooqEdition
import org.jooq.meta.jaxb.ForcedType
import nu.studer.gradle.jooq.JooqGenerate
import org.flywaydb.gradle.task.FlywayMigrateTask
import org.testcontainers.containers.PostgreSQLContainer
plugins {
id("java")
id("org.flywaydb.flyway")
id("nu.studer.jooq")
@TheAndrey
TheAndrey / yandex.user.css
Last active April 30, 2024 19:32
Блокировка самой назойливой рекламы в мире
/* ==UserStyle==
@name Yandex ADBlock
@namespace TheAndrey
@version 1.1.9
@license WTFPL
@preprocessor default
@updateURL https://gist.github.com/TheAndrey/11eacc8ea931f33e846ec8edeb4b247a/raw/yandex.user.css
==/UserStyle== */
@-moz-document domain("yandex.ru"), domain("ya.ru"), domain("dzen.ru") {

So it's been a while since I set up a #FreeBSD desktop from scratch, and things have gotten easier? :rising-intonation: :confused-dog-face: Curious? Read on!

Maybe I overcomplicated things last time (you can see the script here https://bit.ly/freebsd-bootstrap), it seems some steps are now redundant. Anyway, here's the simplest way I know to get a capable desktop system set up.

I'm doing this on an M1 Mac with VMware Fusion Tech Preview and FreeBSD 13.1-RELEASE. After (or during) install create a user and add it to the groups video, wheel and operator with

% pw usermod $USER -G wheel,operator,video
@mateuszkwiatkowski
mateuszkwiatkowski / vscode-remote-ssh-freebsd.md
Last active May 11, 2024 10:58
Configure FreeBSD to work with VScode's remote ssh extension

This procedure was tested on FreeBSD-CURRENT build from d8819d88af52.

  1. Enable linuxulator and install linux userland:
    # sysrc linux_enable="YES"
    # service linux start
    # pkg install linux_base-c7
    
@Mostly-BSD
Mostly-BSD / FreeBSD-Nvidia-510.md
Last active May 14, 2024 02:02
Step-by-step instructions on installing the latest NVIDIA drivers on FreeBSD 13.0 and above.

How to get the Latest NVIDIA drivers on FreeBSD

Step-by-step instructions on installing the latest NVIDIA drivers on FreeBSD 13.0 and above.

1.0 Clean Up Existing Drivers

IMPORTANT: Log out of X session. Make sure you Desktop Manager (sddm|slim) is off. You need to be on the console.

# Create a boot env incase we need to rollback
sudo bectl create `date +%Y%m%d`-BeforeNvidia-Upgrade
@jul
jul / freebsd_inst.sh
Last active May 20, 2024 20:14
qemu freeBSD on linux
#!/bin/bash
set -e
# specs for virtual machine
declare -A VMACHINE=( [RAM]=4g [CPU]=2 )
# you can override them by redifining them in this file
[ -e specs.sh ] && source ./specs.sh
function require () { which $1 &> /dev/null && echo "$1 OK" || ( echo "ARG: You SHOULD install $1 $@"; exit 1; ) }
echo CHECKING
@sma
sma / terminal-flutter.md
Last active December 12, 2021 16:31
For fun, I wrote a Flutter-like framework for command line applications

Terminal Flutter

For fun, I recreated a subset of Flutter that is enough to build a tiny Minesweeper application for the terminal.

Here is how it looks:

+----------------------+
|Minesweeper       3/12|
| |
@b01
b01 / download-vs-code-server.sh
Last active May 16, 2024 18:49
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions: