Skip to content

Instantly share code, notes, and snippets.

View tomfun's full-sized avatar

Greg tomfun

View GitHub Profile

https://raspberrypi.stackexchange.com/questions/8265/btrfs-root-filesystem-on-raspbian

sudo apt install btrfs-progs initramfs-tools

'btrfs' | sudo tee -a /etc/initramfs-tools/modules

sudo mkdir -p /etc/initramfs-tools/hooks ; sudo mkdir -p /etc/initramfs-tools/scripts/local-premount ; sudo cp /usr/share/initramfs-tools/hooks/btrfs /etc/initramfs-tools/hooks ; sudo cp /usr/share/initramfs-tools/scripts/local-premount/btrfs /etc/initramfs-tools/scripts/local-premount; sudo chmod +x /etc/initramfs-tools/hooks/btrfs /etc/initramfs-tools/scripts/local-premount/btrfs

https://forums.raspberrypi.com/viewtopic.php?t=10532&sid=506b6601ef85b73e2e6cafc95f4636c6&start=50

@tomfun
tomfun / repos_ppas_versions.md
Last active October 26, 2025 08:42
linux versions mint to ubuntu table

Good ppa`s

  • add-apt-repository ppa:nextcloud-devs/client
  • add-apt-repository ppa:phoerious/keepassxc
  • add-apt-repository ppa:git-core/ppa
  • add-apt-repository ppa:andol/curl-http2

Linux mint base ubuntu table

Mint Ubuntu Proof
@tomfun
tomfun / README.md
Created July 25, 2022 13:18
Пример работы с пайтон проектом
@tomfun
tomfun / classFunc.ts
Created February 25, 2020 11:41
Example of async generators with typescript
import { generateSequence } form './simple'
class NumberTransfrormer {
transform = async function*(gen: AsyncGenerator<number>) {
for await (const n of gen) {
yield n * 2;
}
}
}
@tomfun
tomfun / static-web-site-hosting.example.com--cloudformer.template.json
Created October 24, 2019 10:59
Cloudformation template for AWS S3 Bucket, CloudFront, private access for static hosting of angular frontend project (with client side routing). Every 403 request replies with index.html. For some reason it takes a lot of time after end to start work well
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters" : {
"MainDomainName": {
"Description": "public pretty FQDN for cloudfront",
"Type": "String",
"Default": "example.com"
},
"AcmCertificateArn": {
"Description": "AWS certificate ID for cloudfront",
@tomfun
tomfun / docker-compose.test.yml
Created August 6, 2019 13:40
TypeScript HTTP Hello world example with docker compose & Basic Auth
version: '3.7'
services:
test-node:
image: node:10
environment:
NODE_ENV: ${NODE_ENV:-dev}
PORT: 8080
working_dir: /home/node/app
volumes:
@tomfun
tomfun / preloader.sh
Created April 18, 2019 07:32
Simple bash status updater - preloader
#!/usr/bin/env bash
i=0
sp='/-\|'
n=${#sp}
STATUS='Created'
while [[ $STATUS == 'InProgress' || $STATUS == 'Created' ]]
do
sleep 1
@tomfun
tomfun / .gitlab-ci.yml
Created April 17, 2019 06:51
Gitlab CI docker registry cleaner
stages:
- clean
- build
- check
variables:
## docker image names inside the YML file to use
CI_REGISTRY_IMAGE_c: $CI_REGISTRY_IMAGE/dev:${CI_COMMIT_SHORT_SHA}
CI_REGISTRY_IMAGE_l: $CI_REGISTRY_IMAGE/dev:latest
CI_REGISTRY_IMAGE_i: services_${CI_BUILD_ID}_api_v2
@tomfun
tomfun / плов.md
Created February 7, 2018 20:12
Рецепт плова по-домашнему

Рецепт Плова

Ингридиенты

  • Казан (3л)
  • Мясо (600г)
  • Рис (300г)
  • Лук
  • Морковь
  • Масло подсолнечное
  • Чеснок
  • Приправы, соль