This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# Error "An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available ERROR: Movie capture error... Exiting." | |
# -> https://github.com/gphoto/gphoto2/issues/495 | |
## | |
generate_virtual_camera_names() { | |
local length=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on the response from user Pujianto over https://superuser.com/questions/1675877/how-to-create-a-new-pipewire-virtual-device-that-to-combines-an-real-input-and-o | |
# Create combined sink | |
pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-combined-sink channel_map=stereo | |
# Link audio source (mic) to combined sink | |
## Get the mic device name with: `pw-link -o` | |
pw-link $NAME_OF_THE_INPUT_DEVICE my-combined-sink:playback_FL | |
pw-link $NAME_OF_THE_INPUT_DEVICE my-combined-sink:playback_FR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /boot/config.txt | |
##### | |
# Commenting out `dtoverlay=vc4-fkms-v3d` as disabling GPU acceleration is required in order to be able to rotate the lcd. | |
# More memory is assigned to the GPU by setting a new value to `gpu_mem` | |
# `lcd_rotate=2` Rotates the display by 180° | |
##### | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Redo | |
{ "key": "ctrl+y", "command": "redo", | |
"when": "editorFocus" }, | |
// Delete current line | |
{ "key": "shift+delete", "command": "editor.action.deleteLines", | |
"when": "editorFocus" }, | |
// Move current line up | |
{ "key": "ctrl+shift+up", "command": "editor.action.moveLinesUpAction", | |
"when": "editorFocus" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CACHE_ACTUAL = 'cache'; | |
const archivos_para_cachear = [ | |
'/', | |
'/?launcher=true', | |
'/main.js', | |
'/styles.css', | |
'/assets/logo.png' | |
]; | |
// Instalación del service worker y cacheo inicial | |
self.addEventListener('install', (event) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
user_name="${1:-pi}" | |
ip_range="${2:-192.168.1}" | |
ip_from="${3:-1}" | |
ip_to="${4:-99}" | |
echo -e "Attempting to connect to a pi with user name: ${user_name}\n" | |
for i in $(seq ${ip_from} ${ip_to}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// Move current line up | |
{ "key": "ctrl+shift+up", "command": "editor.action.moveLinesUpAction", | |
"when": "editorFocus" }, | |
// Move current line down | |
{ "key": "ctrl+shift+down", "command": "editor.action.moveLinesDownAction", | |
"when": "editorFocus" }, | |
// Create new cursor above | |
{ "key": "alt+up", "command": "editor.action.insertCursorAbove", | |
"when": "editorTextFocus" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
class Tostada { | |
constructor(config) { | |
// Exponemos config como una variable 'global' dentro de la clase | |
this.config = config; | |
let estilos = document.createElement('style'); | |
estilos.innerHTML = ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected. | |
// Example: | |
"Console log": { | |
"prefix": "c", | |
"body": [ | |
"console.log($1);" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
THEM_APPS="google-chrome-stable \ | |
git-core \ | |
tig \ | |
curl" | |
THEM_MODULES="yo \ | |
gulp \ | |
bower \ | |
live-server \ |
NewerOlder