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
// CTRL + SHIFT + C and run: | |
const songs = [...document.querySelectorAll("[role='row']")].map((e) => { | |
const childs = e.firstChild.childNodes[1]; | |
if (!childs) { return ''; } | |
const song = e.firstChild.childNodes[1].childNodes[1]; | |
return song.firstChild.textContent + " - " + song.childNodes[1].textContent; | |
}).join("\r\n") | |
console.log(songs); |
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
#!/bin/bash | |
# usage $1: number_files $2: filename $3: [output_path] | |
# example: | |
# $ ./split_csv.sh 2 my_dir/large_file.csv ./output_dir | |
if [ $# -ge 3 ] | |
then | |
mkdir -p $3 | |
fi |
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
#!/bin/bash | |
apt update | |
apt install vim curl git zsh -y | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
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
#!/bin/bash | |
# mysql -u root -p | |
PASSWORD="PASSWORD" | |
USER="USER" | |
bucket="BUCKETNAME" | |
s3Key="S3KEY" | |
s3Secret="S3SECRETKEY" | |
echo "----- $(date) -----" | |
echo "run backup" |
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
<files *.js.gz> | |
AddType "text/javascript" .gz | |
AddEncoding gzip .gz | |
</files> | |
<files *.css.gz> | |
AddType "text/css" .gz | |
AddEncoding gzip .gz | |
</files> | |
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
var doneList = []; //0 results in search | |
module.exports = { | |
run: function(minutes) { | |
Entity.find() | |
.sort('createdAt DESC') | |
.populate('webSearches') | |
.then((entities) => { | |
console.log('working'); | |
const next = entities.find((ent) => { | |
return !ent.webSearches.length && doneList.indexOf(ent.id) === -1; |
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
########################### | |
# xbindkeys configuration # | |
########################### | |
# | |
# Version: 1.8.6 | |
# | |
# If you edit this file, do not forget to uncomment any lines | |
# that you change. | |
# The pound(#) symbol may be used anywhere for comments. | |
# |
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
map <F5> :set expandtab tabstop=4<cr> | |
map <F6> :set foldmethod=syntax <cr> | |
map <F7> :set cursorcolumn cursorline <cr> | |
map <F8> :tabs <cr> | |
map <F9> :tabn <cr> | |
map <F8> :setlocal spell spelllang=es_es<cr> | |
set background=dark | |
set number | |
set autoindent | |
syntax on |
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
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
Sencilla solución de el problema de mover al caballo de ajedrez por las | |
64 casillas sin repetirlas usando recursividad (backtracking), | |
con arrays dinámicos. (Este código solo imprime una solución) | |
*/ | |
void caballo(int i,int j,int **vec,int **puesto); | |
void limpiar(int **m,unsigned nFil,unsigned nCol); | |
void imp(int **vec,unsigned nFil,unsigned nCol); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
Sencilla solución de el problema de las 8 reinas usando recursividad | |
(backtracking), con arrays dinámicos. (Este código solo imprime una solución) | |
*/ | |
int *crearVec(int t); | |
void llenarPositivo(int *v,int t); | |
void reinas(int i,int *vec,int *puesto,int *diag2_1,int *diag1_2); | |
void imp(int *vec); |
NewerOlder