s
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
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; | |
} |
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=1; for i in *jpg; do counter=$(printf %04d $x); ln -s "~/timelapse/$i" /tmp/timelaps/img"$counter".jpg; x=$(($x+1)); done | |
/tmp/timelaps$ ffmpeg -f image2 -i img%04d.jpg a2.mpg |
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
* * * * * python /root/main.py |
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
Setup mongadb instance | |
----------------------- | |
localhost$ mongo admin --username root --password hSFRP0Vf856R | |
cat ./bitnami_credentials | |
-> add 27017 port to SG | |
-> add monga user | |
db = db.getSiblingDB('reaction') | |
db.createUser( { user: "reactionUser", pwd: "reactionPwd", roles: [ "readWrite", "dbAdmin" ]} ) |
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
<!-- from LZD LRG IP007 01 17 Partneriem.docx --> | |
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:n1="http://ivis.eps.gov.lv/ISS/IVISService/v1-0" xmlns:n2="http://ivis.eps.gov.lv/XMLSchemas/100007/CadastreRegistry/v1-0" xmlns:n3="http://ivis.eps.gov.lv/XMLSchemas/100007/AddressRegistry/v1-0" xmlns:n4="http://ivis.eps.gov.lv/XMLSchemas/100002/EPCommonSchemas/v1-0"> | |
<env:Body> | |
<n1:InformationBlockRequest> | |
<n2:CadastreInformationBlockRequest> | |
<n2:Username>user</n2:Username> | |
<n2:Password>pass</n2:Password> | |
<!-- Fiziskās personas kods vai juridiskās personas reģistrācijas numurs --> | |
<!-- <n2:Code> </n2:Code> --> | |
<!-- Nekustamā īpašuma kadastra numurs --> |
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 com.bla.laa; | |
import org.geotools.geometry.jts.JTS; | |
import org.geotools.referencing.CRS; | |
import org.geotools.referencing.GeodeticCalculator; | |
import org.locationtech.jts.geom.Coordinate; | |
import org.opengis.referencing.FactoryException; | |
import org.opengis.referencing.NoSuchAuthorityCodeException; | |
import org.opengis.referencing.crs.CoordinateReferenceSystem; | |
import org.opengis.referencing.operation.MathTransform; |
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
set IP="165.xxx.yyy.227" | |
$server docker run --rm -it -p 8080:8080 mitmproxy/mitmproxy mitmproxy --listen-host 0.0.0.0 --set block_global=false | |
$local http_proxy=http://$IP:8080/ curl http://example.com/ | |
$local https_proxy=http://$IP:8080/ curl -k https://example.com/ |
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
Install pathogen | |
----------------- | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
Install nerdtree | |
----------------- | |
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree |