Skip to content

Instantly share code, notes, and snippets.

@cgi-cgi
cgi-cgi / set_ff.md
Created April 29, 2025 22:04 — forked from Guest007/set_ff.md
Настройка Firefox

I. СОЗДАНИЕ НОВОГО ПРОФИЛЯ

Используйте менеджер профилей, чтобы создать новый профиль Firefox.

LINUX:

В терминале (консоли) Linux исполните команду от обычного пользователя:

firefox -P
@cgi-cgi
cgi-cgi / rocm_arch_guide.md
Created March 11, 2025 13:22 — forked from augustin-laurent/rocm_arch_guide.md
ROCm Installation guide on Arch
Date of the guide : December 17, 2023

Introduction

In this post, I will provide the solution that worked on my system on how to install Radeon Open Compute (ROCm) on Arch (linux-6.6.7.arch1-1) for RX 6900 XT (Should work on other 6000 series). ROCm is an open-source software platform that allows GPU-accelerated computation. This tool is a prerequist to use GPU Acceleration on TensorFlow or PyTorch. In this guide I will use Paru as my AUR package helper, feel free to use any other (https://wiki.archlinux.org/title/AUR_helpers). I will assume you have a working operating system and know what you do with it (Otherwise Arch will be painfull for you).

@cgi-cgi
cgi-cgi / dnsmasq.conf
Created September 12, 2023 10:07 — forked from NAR8789/dnsmasq.conf
wildcard dns for docker-compose using dnsmasq
# explicitly define host-ip mappings
address=/myapp.local/172.16.1.2
# dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local
# (yes, it's fine for this to be your entire dnsmasq config. the defaults are pretty sensible)
@cgi-cgi
cgi-cgi / sortable-table.vue
Created October 31, 2022 17:44 — forked from blackmiaool/sortable-table.vue
sortable el-table
<template>
<div ref="wrapper">
<div :key="tableKey">
<slot></slot>
</div>
</div>
</template>
<script>
/*
@cgi-cgi
cgi-cgi / ssh-exit-codes.sh
Created April 30, 2022 07:44 — forked from asiegman/ssh-exit-codes.sh
Understanding SSH and exit codes in Bash scripts.
#!/bin/bash
#
# SSH Exit Codes
#
# Using SSH in scripting is pretty standard, but sometimes you want to stop execution of a script
# if a command inside an SSH session fails to exit cleanly (return 0). The key to remember is that
# the ssh command's exit code will be that of the *last executed* command inside the ssh session, just
# like a bash script ends with the exit code of the last command executed unless you specifically
# call exit.
#
@cgi-cgi
cgi-cgi / azure-pipelines.yml
Created March 1, 2021 11:27 — forked from nasrulhazim/azure-pipelines.yml
Azure Pipeline + Laravel + PHPUnit + Laravel Dusk
# PHP
# Test and package your PHP project.
# Add steps that run tests, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/php
trigger:
- develop
pool:
vmImage: 'Ubuntu-16.04'
@cgi-cgi
cgi-cgi / wan_monitor.sh
Created October 20, 2020 08:02 — forked from charsi/wan_monitor.sh
shell script for monitoring WAN staus on router and sending pushover notifications
#!/bin/sh
# This script checks for internet connectivity on your wan port and sends a pushover message if there has been a change.
# Multiple WAN ports supported.
# Based on Scripts from Wob_76 & WaLLy3K at http://www.linksysinfo.org/index.php?threads/wan-up-down-notifications-script-multiwan.73057/
# Set the Number of WANS (Valid Numbes 1 to 4)
WANS=2
# Name your ISPs
WAN1_name="Excitel"
@cgi-cgi
cgi-cgi / Makefile
Created September 7, 2020 11:03 — forked from yamalight/Makefile
Generate docker TLS certs for secure remote access
# host name of your docker server
HOST=host.net
# ip of your docker server
IP=0.0.0.0
# days of validity for cert
DAYS=365
default:
openssl genrsa -aes256 -out ca-key.pem 4096
openssl req -new -x509 -days ${DAYS} -key ca-key.pem -sha256 -out ca.pem

Install raspbian, set up your users however you would like, so long as you have sudo access on the user you are running this with. You probably want to resize the image so it fills the SD card as well.

  1. Copy this entire gist to your raspberry pi
  2. Do chmod +x step1.sh step2.sh iptables.sh in the gist folder (so that
  3. Run step1.sh a) This script does a few things - it first updates your raspberry pi, then it installs a few needed utilities, then it upgrades the firmware on your raspberry pi
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.34-9745-beta/softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.34-9745-beta-2020.04.05-linux-x64-64bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *