Skip to content

Instantly share code, notes, and snippets.

View ManuLinares's full-sized avatar

Manu Linares ManuLinares

View GitHub Profile
@ManuLinares
ManuLinares / pythagorasTree.html
Created March 15, 2014 16:11
Creates beautiful Flowers using pythagoras tree. Javascript
<canvas id="c">
</canvas>
<script>
var b = document.body;
var c = document.getElementsByTagName('canvas')[0];
var a = c.getContext('2d');
document.body.clientWidth; // fix bug in webkit: http://qfox.nl/weblog/218
</script>
@ManuLinares
ManuLinares / autosub.lua
Created November 27, 2019 22:32
mpv .config
-- default keybinding: s
-- goes in ".config/mpv/scripts/autosub.lua"
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding auto_load_subs
local utils = require 'mp.utils'
function display_error()
mp.msg.warn("Subtitle download failed: ")
mp.osd_message("Subtitle download failed")
end
@ManuLinares
ManuLinares / index.html
Created November 15, 2023 22:13
just an index
No, no es viernes! :(
@ManuLinares
ManuLinares / vscode-for-linux-kernel.md
Created April 30, 2024 05:41 — forked from itewqq/vscode-for-linux-kernel.md
Configure vscode for linux kernel source code
  1. Disable or uninstall the official C/C++ plugin.
  2. Install the clangd plugin.
  3. Build the kernel with clang:
/path/to/kernel_source$ make CC=clang defconfig
/path/to/kernel_source$ make CC=clang -j16
  1. Generate the compile_commands.json:
/path/to/kernel_source$ python ./scripts/clang-tools/gen_compile_commands.py