Skip to content

Instantly share code, notes, and snippets.

@maheshwaghmare
maheshwaghmare / debug-http-request.php
Last active March 19, 2024 10:50
Debug the HTTP requests in WordPress wp_remote_post() or wp_remote_get() with the help of `http_api_debug` hook.
<?php
/**
* Debug HTTP requests in WordPress
*
* Fires after an HTTP API response is received and before the response is returned.
*
* Output in `wp-content\debug.log` file:
*
* [24-Apr-2019 06:50:16 UTC] ------------------------------
* [24-Apr-2019 06:50:16 UTC] https://downloads.wordpress.org/plugin/elementor.2.5.14.zip
@jamesliu96
jamesliu96 / bambient.user.js
Last active March 19, 2024 10:49
Bilibili Ambient Mode
// ==UserScript==
// @name BAMBIENT
// @version 1.1.2
// @description Bilibili Ambient Mode
// @author jamesliu96
// @license MIT
// @namespace https://jamesliu.info/
// @homepage https://gist.github.com/jamesliu96/03775eba64ff6b26efd6ee2676354f52
// @match https://*.bilibili.com/*
// @icon https://www.bilibili.com/favicon.ico
#EXTM3U
#EXTINF:0,kexp320.mp3
https://kexp.streamguys1.com/kexp320.mp3
#EXTINF:0,kexp128.mp3
https://kexp.streamguys1.com/kexp128.mp3
#EXTINF:0,kexp160.aac
https://kexp.streamguys1.com/kexp160.aac
#EXTINF:0,kexp64.aac
https://kexp.streamguys1.com/kexp64.aac
@ruzickap
ruzickap / openwrt_wireless.sh
Created April 6, 2014 16:55
OpenWrt WiFi configuration tweaks
uci set wireless.radio0.channel=8
uci set wireless.radio0.htmode=HT40-
uci set wireless.radio0.noscan=1
uci set wireless.radio0.bursting=1
uci set wireless.radio0.ff=1
uci set wireless.radio0.compression=1
uci set wireless.radio0.xr=1
uci set wireless.radio0.ar=1
uci set wireless.radio0.txpower=20
@DanielLarsenNZ
DanielLarsenNZ / reclaim-windows-11.ps1
Last active March 19, 2024 10:47
reclaim-windows-11.ps1
##########
# Tweaked Win11 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Modified by: @DanielLarsenNZ - based on my personal preferences. Some additions for Windows 11
# Version: 2.12.2, 2021-12-11
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
@martinsam16
martinsam16 / docker-wsl2.md
Last active March 19, 2024 10:46
How to install wsl2 ubuntu + docker + docker-compose

Activate wsl2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install and Configure Ubuntu

@lukepighetti
lukepighetti / .zshrc
Created March 3, 2023 15:41
marksman environment for note taking https://youtu.be/8GQKOLh_V5E
# launch daily notes with `notes`
# launch specific notes with `notes woodworking`
# this is a cloud synced file, so it's live on all my devices
function notes(){
SUBJECT="${1:=daily}"
if [ -z "$SUBJECT" ]
then
(cd ~/Documents/notes && hx NOTES.md)
else
(cd ~/Documents/notes && hx "${SUBJECT:u}.md" NOTES.md)
@djbower
djbower / VapoRock.md
Last active March 19, 2024 10:44
Vaporock installation

Install guide for ThermoEngine and VapoRock

These instructions were devised for macOS Sonoma 14.3.1 on Apple Silicon, but the overall workflow should be appropriate for all Mac and Linux systems. Please provide comments so I can continue to improve these notes.

1. Install Cmake

  1. You will need a C compiler, which is available by installing XCode/Command Line Tools.
  2. Install cmake using MacPorts or similar if you don't already have it installed. You can see if it is already installed using which cmake in the terminal.

2. Install GSL

import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:math';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@grifx
grifx / 0000_hello_world.md
Last active March 19, 2024 10:39
Create your own roadmaps from roadmap.sh with checkboxes on GIST

Hello,

My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.

I hope it can help someone else.

If you want your own roadmap:

  1. Fork or Copy-paste the md files you are interested in your own gist.