Skip to content

Instantly share code, notes, and snippets.

@abdorrahmani
abdorrahmani / gist:baf8c1222cd9773a88cdcb51dcbf28b9
Created May 7, 2024 12:35
Laravel-React-Vite.js config file example
```
import { defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react-swc';
import viteCompression from 'vite-plugin-compression';
import viteImagemin from 'vite-plugin-imagemin';
export default defineConfig({
plugins: [
laravel({
@tomdyson
tomdyson / wagtail-import-data.md
Last active May 7, 2024 12:35
Create 35k Wagtail pages of Wikipedia film plots

Create Wagtail pages programmatically

This short recipe demonstrates how to create Wagtail pages programmatically. It may also be useful for testing Wagtail development against a reasonable volume of page data (about 35,000 film plots, from English Wikipedia).

Instructions

In a virtualenv:

@DareFox
DareFox / Пельмени, хорошие пельмени это очень вкусно
Last active May 7, 2024 12:33
Пельмени, хорошие пельмени это очень вкусно
Пельмени, хорошие пельмени это очень вкусно.
На самом деле рецепт простой — много мяса, мало теста
Сперва готовим тонкое яичное тесто с добавлением сливочного масла, лук сладких сортов для образования бульончика и перец, совсем немного.
Щедро выкладываем великолепный рубленный фарш.
Много мяса, мало теста!
Вот он, настоящий пельмень!
А внутри много сочной начинки: грудинка индюшки с курицей или телятена со свинниной.
Думаю многие и забыли как это может быть вкусно!
Выбирайте и наслаждайтесь, мясные пельмени «Шлопские»
Много мяса, мало теста!
@Teraflopst
Teraflopst / ACL4SSR-Helps.md
Created February 13, 2022 15:29
本文主要是教你怎么定制一下自己的ACL或者clash规则。

1. 前言

本文主要是教你怎么定制一下自己的ACL或者clash规则。

前面稍微科普一下去广告的分类、不作为重点。

本文不能顾及全网的规则,仅做一般普及,需要有点基础,非小白科普文章

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 7, 2024 12:32
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@edokeh
edokeh / index.js
Last active May 7, 2024 12:31
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@rishitells
rishitells / Jest_GitLab_CI.md
Last active May 7, 2024 12:30
Setting up Jest tests and coverage in GitLab CI

Configuring Jest Tests in GitLab CI

1. Add GitLab CI configuration file in the root

In the root of your project, add .gitlab-ci.yml with the configuration below.

image: node:latest

stages:
@m-jovanovic
m-jovanovic / .editorconfig
Created June 7, 2023 12:17
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 7, 2024 12:29
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@federicocarboni
federicocarboni / layout.ahk
Last active May 7, 2024 12:28
Digita Backtick ` e Tilde ~ su Windows senza Tastierino Numerico
<^>!'::Send `` ; AltGr + ' => `
<^>!vkDD::Send ~ ; AltGr + ì => ~