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
sudo apt install apt-transport-https | |
sudo sh -c 'echo "deb http://www.apache.org/dist/cassandra/debian 40x main" > /etc/apt/sources.list.d/cassandra.list' | |
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add - | |
sudo apt update | |
sudo apt install cassandra | |
sudo systemctl status cassandra |
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
import os | |
from PIL import Image | |
base_path = "" | |
setp = 5 | |
for i in range(1750000, 1750983, step): | |
path_img1 = os.path.join(base_path, "Data" + str(i) + ".png") | |
path_img2 = os.path.join(base_path, "Data" + str(i+step) + ".png") | |
image1 = Image.open(path_img1) |
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
# git add all files and amend to last commit, leaving no message behind and pushing to upstream branch. | |
git add . && git commit --amend --no-edit && git push --force-with-lease |
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
DROP TABLE IF EXISTS mediciones; | |
CREATE TABLE mediciones( | |
uuid INTEGER NOT NULL | |
,cod_estacion INTEGER NOT NULL | |
,variable VARCHAR(4) NOT NULL | |
,fecha DATE NOT NULL | |
,valor INTEGER NOT NULL | |
); | |
INSERT INTO mediciones(uuid,cod_estacion,variable,fecha,valor) VALUES (1,1,'temp','2020-02-01',14); | |
INSERT INTO mediciones(uuid,cod_estacion,variable,fecha,valor) VALUES (2,2,'temp','2020-07-01',13); |
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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
) | |
func initHttpServer() { | |
http.HandleFunc("/statusCheck", statusCheckHandler) |
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
# print all .cpp and .h files | |
for f in $(find src/ -name '*.cpp' -or -name '*.h') | |
do | |
echo "Processing $f..." | |
a2ps --line-numbers=1 "$f" -o "$f".ps | |
done | |
mkdir "print output" | |
#for f in src/*.ps |
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
for i in *.mp4; do ffmpeg -i "$i" -b:a 320k -vn "${i%.*}.mp3"; done |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 22 columns, instead of 18 in line 2.
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
Book Title,Author,Edition,Product Type,Copyright Year,Copyright Holder,Print ISBN,Electronic ISBN,Language,Language Collection,eBook Package,English Package Name,German Package Name,Series Print ISSN,Series Electronic ISSN,Series Title,Volume Number,DOI URL,OpenURL,Subject Classification,Publisher,Imprint | |
Social Anxiety and Social Phobia in Youth,Christopher Kearney,2005,Graduate/advanced undergraduate textbook,2005,Springer-Verlag US,978-0-387-22591-3,978-0-387-22592-0,EN,English/International,11640,Behavioral Science,,,,Series in Anxiety and Related Disorders,,http://doi.org/10.1007/b99417,http://link.springer.com/openurl?genre=book&isbn=978-0-387-22592-0,Psychology; Clinical Psychology; Personality and Social Psychology; Community and Environmental Psychology,Springer US,Springer | |
Clinical Neuroanatomy,"John Mendoza, Anne Foundas",2008,Graduate/advanced undergraduate textbook,2008,Springer-Verlag New York,978-0-387-36600-5,978-0-387-36601-2,EN,English/International,11640,Behavioral Science,,,,,,http://doi.o |
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
. |
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
Empty file for title purpose only. |
NewerOlder