This file contains hidden or 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
import fs from 'fs'; | |
import fetch from 'node-fetch'; | |
// urls.txt should be a text file containing the urls separated by a new line | |
const file = fs.readFileSync('./urls.txt', {'encoding': 'utf8'}).split('\n'); | |
file.forEach(url => { | |
fetch(url).then(res => { | |
// modify to whichever format the downloads are | |
let write = fs.createWriteStream(`./urls/${Date.now()}.webp`); |
This file contains hidden or 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
# See dunst(5) for all configuration options | |
[global] | |
### Display ### | |
# Which monitor should the notifications be displayed on. | |
monitor = 0 | |
# Display notification on focused monitor. Possible modes are: | |
# mouse: follow mouse pointer |
This file contains hidden or 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
################################# | |
# Shadows # | |
################################# | |
# Enabled client-side shadows on windows. Note desktop windows | |
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, | |
# unless explicitly requested using the wintypes option. | |
# | |
# shadow = false |
This file contains hidden or 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
// credits to Asdrúbal Gomez for initial code snippet | |
noise(3,0.1,7) | |
.rotate(1,-1,-2).mask(shape(() => a.fft[4]*2 || 20)) | |
.colorama(() => a.fft[0]*3 || 1) | |
.modulateScale(o0) | |
.modulateScale(o0,1,) | |
.scale(() => a.fft[3]*2 || 1) | |
.blend(o0) | |
.blend(o0) |
This file contains hidden or 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
# x funny | |
xset led named 'Scroll Lock' | |
# pipewire | |
pipewire& | |
pipewire-pulse& | |
sleep 2 # delay to ensure pipewire has started | |
wireplumber& |
This file contains hidden or 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
alias sudo='doas' | |
alias sudoedit='doas rnano' | |
# only for arch repos | |
alias mirror='doas reflector --protocol https --latest 50 --number 20 --sort rate --save /etc/pacman.d/mirrorlist' | |
# Enable wayland for firefox | |
#export MOZ_ENABLE_WAYLAND=1 | |
alias pls='doas $(fc -ln -1)' | |
# fix npm update | |
alias fixnpm='doas pacman -S npm --overwrite "/usr/lib/node_modules/npm/*"' |
This file contains hidden or 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
# add this before global hotkeys are defined | |
# then replace or add the desired toggle dsp hotkey with ::pd_bindings::toggle_dsp | |
# example: "bind_capslock all $::modifier-Key w {::pd_bindings::toggle_dsp}" | |
# (replacing CTRL-W Exit hotkey with toggle dsp) | |
set ::pd_bindings::dsp_on false | |
proc ::pd_bindings::toggle_dsp {} { | |
if {$::pd_bindings::dsp_on} { | |
pdsend "pd dsp 0" |
This file contains hidden or 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
INPUT ip = {0}; | |
ip.type = INPUT_KEYBOARD; | |
ip.ki.wScan = 0x39; // hardware scan code for key (http://www.philipstorr.id.au/pcbook/book3/scancode.htm) | |
ip.ki.dwFlags = KEYEVENTF_SCANCODE; | |
SendInput(1, &ip, sizeof(INPUT)); | |
ip.ki.dwFlags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP; | |
SendInput(1, &ip, sizeof(INPUT)); |
This file contains hidden or 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
[package] | |
name = "sendinputexample" | |
version = "0.1.0" | |
authors = ["Dayaa <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
winapi = { version = "0.3.7", features = ["winuser"] } |
This file contains hidden or 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
// Variables | |
let tabla = 2 | |
let longitud = 10 | |
// Codigo | |
for (i = 1; i < longitud + 1; i++) { | |
console.log(`${tabla}x${i} = ${tabla*i}`) | |
} |