Skip to content

Instantly share code, notes, and snippets.

@Gromina
Gromina / cleanupUE.md
Last active January 29, 2022 12:27
Cleanup Unreal Engine intermediate folders
@echo off
for /d /r . %%d in (Binaries Intermediate) do @if exist "%%d" echo "%%d"
set /p id="You're going to delete all folders above. Press 'y' to proceed:"
if "%id%"=="y" (
    echo "YES"
    for /d /r . %%d in (Binaries Intermediate) do @if exist "%%d" rd /s/q "%%d"
)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.13.0-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# root #source /etc/profile
# root #export PS1="(chroot) $PS1"
@Gromina
Gromina / setup tinc
Last active July 4, 2018 17:54
commands to setup tinc 1.1 from source
apt-get install -y build-essential libncurses5-dev libreadline-dev libghc-zlib-dev liblzo2-dev libssl-dev
cd /usr/local/src
wget http://www.tinc-vpn.org/packages/tinc-1.1pre15.tar.gz
tar -xvzf tinc-1.1pre15.tar.gz
cd tinc-1.1pre15
./configure --with-systemd --prefix= && make && make install

Keybase proof

I hereby claim:

  • I am gromina on github.
  • I am gromina (https://keybase.io/gromina) on keybase.
  • I have a public key ASAsHrQWWn0vUklmFLc3eJl0mkBpxxGjcKJXw5AuYBQC_go

To claim this, I am signing this object:

@Gromina
Gromina / i.sh
Last active September 5, 2019 21:37
node_exporter install
# https://devopscube.com/monitor-linux-servers-prometheus-node-exporter/
# https://github.com/prometheus/node_exporter/releases/
curl -LO https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz
sudo mv node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/
sudo useradd -rs /bin/false node_exporter
sudo vi /etc/systemd/system/node_exporter.service
sudo systemctl daemon-reload
sudo systemctl start node_exporter
@Gromina
Gromina / face.yaml
Last active July 20, 2020 10:01
ESHhome servo conrol
#button controls state of two servo groups. Each one is opposite to other
esphome:
name: face
platform: ESP8266
board: nodemcuv2
wifi:
ssid: hackerspace
password: xxxxxxx
# Enable fallback hotspot (captive portal) in case wifi connection fails
@Gromina
Gromina / Clean Samsung Galaxy A40 bloatwares
Created August 10, 2020 15:53 — forked from joaofl/Clean Samsung Galaxy A40 bloatwares
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
# ├── russian_g2p # https://github.com/nsu-ai/russian_g2p.git
# ├── russian_stt_text_normalization # https://github.com/snakers4/russian_stt_text_normalization.git
# ├── # silero
# └── TTS.py
#
#
import itertools
import torch
import torchaudio
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.