Skip to content

Instantly share code, notes, and snippets.

@simonista
simonista / .vimrc
Last active May 1, 2024 19:47
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@mau21mau
mau21mau / README.md
Last active May 1, 2024 19:47
Configure Celery + Supervisor With Django
@mattbell87
mattbell87 / remote-wsl.md
Last active May 1, 2024 19:46
VSCode Remote: Connect to WSL2 from another machine

VSCode Remote: Connect to WSL2 from another machine

Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.

Proxy jump method

  1. On the host set up OpenSSH for Windows
  2. Run wsl --update to make sure you are running the latest WSL
  3. Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
  4. Now run sudo systemctl enable --now ssh to automatically start ssh when WSL starts.
@dvoracek-jakub
dvoracek-jakub / WP_BootstrapNavigation.php
Last active May 1, 2024 19:45
Wordpress navigation in Bootstrap style
<?php
/**
* Class for rendering Wordpress navigation in Bootstrap style
*/
namespace YourCompany\Helpers;
Class Pagination
{
@Ellivers
Ellivers / mcfunction-precompilers.md
Last active May 1, 2024 19:44
Minecraft function precompilers

Minecraft function precompilers

An attempt to make a definitive list of all (at least somewhat finished) projects that compile to MCFunction (Minecraft function) code for Minecraft: Java Edition. Each category is very roughly ordered from most to least usable/well-known. Categories and notes in parentheses may not be entirely accurate.

Modern

@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@Klerith
Klerith / instalaciones-next.md
Last active May 1, 2024 19:42
Instalaciones recomendadas para el curso de Next.js 13 >

Tips for debugging on Linux

This page is for Chromium-specific debugging tips; learning how to run gdb is out of scope.

[TOC]

Symbolized stack trace

The sandbox can interfere with the internal symbolizer. Use --no-sandbox (but

@hayajo
hayajo / WebMarker-1.5.0.patch
Last active May 1, 2024 19:41
WebMarker 1.5.0 のパッチ
diff --git manifest.json manifest.json
index 25a6c01..0611584 100644
--- manifest.json
+++ manifest.json
@@ -1,35 +1,28 @@
-{
-"update_url":"http://clients2.google.com/service/update2/crx",
- "name": "WebMarker",
- "version": "1.5.0",
- "icons": { "16": "images/bookmark16.png",
@emaxerrno
emaxerrno / webperf.txt
Created October 17, 2013 20:04
webperf.txt
ilya grigorik
-chrome:
techniques:
70% of time is network.
not really bound by bandwidth.
bandwidth chart. --> look at that on chrome.
look at connection view (tcp connection did we open for this page) -- lag time
minimize the RTT -->
pre-resolve
preconnect