Skip to content

Instantly share code, notes, and snippets.

View circus2271's full-sized avatar
💚

pavel circus2271

💚
  • Saint-Petersburg
View GitHub Profile
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@alisafariir
alisafariir / gsettings.bash
Last active April 26, 2023 19:59
Switch input language by shift and alt in ubuntu
$ gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L','<Shift>Alt_R']"
$ gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L','<Alt>Shift_R']"
@sashachabin
sashachabin / BAR-SITE-MENU.md
Last active November 21, 2023 08:27
Веб-версия простейшнго меню для бара (pushinbar.ru)

Сайт барного меню

MVP-версия сайта с меню бара pushinbar.ru, сделанная Сашей Чабиным в барном мастер-классе за полтора часа.

image

  • База данных в Google Таблице
  • Минимальный Backend на Google App Script
  • Простейший Frontend на ванильных HTML/CSS/JS
  • Бесплатный хостинг и CI от Vercel
@Okkido
Okkido / ios-100vh-height-bug.css
Created September 9, 2020 18:04
Fix 100vh height bug in Safari
body {
height: 100vh;
}
/* Avoid Chrome to see Safari hack */
@supports (-webkit-touch-callout: none) {
body {
/* The hack for Safari */
height: -webkit-fill-available;
}
@leegraham25
leegraham25 / apache_react_django_config.md
Last active April 13, 2025 05:11
Apache Configuration for React and Django Rest Framework

Setting Up Apache to Run a React Frontend and a Django Rest Framework Backend on a Single Machine

This gist should get React and Django Rest Framework running on debian with apache as the HTTP server.

Step 1 - Install Apache and UFW

First we need to install apache2 and apache2-dev (for compiling mod_wsgi), and set the firewall to allow apache with ufw.

sudo apt upgrade
sudo apt install apache2 apache2-dev ufw
sudo ufw allow 'Apache Full'
@Sudheer-Reddy
Sudheer-Reddy / webpack.config.js
Last active April 12, 2021 14:57
Copy static assets in Webpack
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const PATHS = {
src: path.join(__dirname, 'src'), //absolute path to RepoDir/src
dist: path.join(__dirname, 'dist') //absolute path to RepoDir/dist
}
module.exports = {
entry: {
//Webpack will automatically resolve it to RepoDir/src/js/index.js (if file name is not specified)
@koddr
koddr / .babelrc
Last active March 5, 2022 18:18
Webpack 3 config for simple Django/Flask project with Autoprefixer, PostCSS, SCSS style files, Vue.js and Babel
{
"presets": ["@babel/preset-env"]
}
@tomasevich
tomasevich / nginx_nodejs.md
Last active May 28, 2025 08:20
Сервер в связке Nginx + NodeJs

Сервер в связке Nginx + NodeJs

Данная пошаговая инструкция поможет освоить основы на простом примере

Для справки

Сервер поднимался на Debian 8 c характеристиками:

CPU - 1 ядро x 500 МГц

@akella
akella / setup.md
Last active February 21, 2023 22:59
Мой сетап

То что я использую в работе и стримах

Софт для разработки