Skip to content

Instantly share code, notes, and snippets.

@jeffrafter
jeffrafter / Magic Potion | How to setup an Asus WL-520gu with OpenWRT for Sound
Last active April 9, 2023 04:45
Magic Potion | How to setup an Asus WL-520gu with OpenWRT for Sound
Note these instructions are all based on the mightyOhm articles. This is a little bit different because I wanted to get alsa sound working (instead of dsp) so that I could overlay effects
and background sound simultaneously.
What to do
==========
install mightyohm trx by blind flashing
setup network and wireless and dhcp
setup the banner for fun
Blind flashing
@korya
korya / Subfolder to git repo.md
Last active July 18, 2024 18:47
Convert subfolder into Git submodule
@thomasfr
thomasfr / autossh.service
Last active May 9, 2024 16:59
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@LeCoupa
LeCoupa / wordpress.nginx
Last active November 8, 2023 23:26
WordPress - Nginx Configuration File (with SSL) --> https://github.com/LeCoupa/awesome-cheatsheets
##
# @server studio
# @host hackisition.com
# @desc nginx host rules
# @author Julien Le Coupanec <julien@gentlenode.com>
##
# HTTP Server
server {
listen 80;
@Shelob9
Shelob9 / cdn-jquery.php
Last active April 6, 2023 10:52
Replace WordPress' jQuery with CDN jQuery of the right version
add_action( 'init', function(){
if ( ! is_admin()) {
if( is_ssl() ){
$protocol = 'https';
}else {
$protocol = 'http';
}
/** @var WP_Scripts $wp_scripts */
global $wp_scripts;