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 | |
# | |
# Program: Changing GID (gid>1000) to system (gid<1000) <change_group_id.sh> | |
# | |
# Author: Mikhail Grigorev <sleuthhound at gmail dot com> | |
# | |
# Current Version: 1.0 | |
# | |
# Revision History: |
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
curl --verbose \ | |
--header "Content-Type: application/json" \ | |
--request POST \ | |
--data '{"foo":"bar"}' \ | |
--insecure \ | |
--cert $DEV_CERT_P12:{password} \ | |
https://domain.com/path/to/endpoint |
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
------BUILD---------- | |
node { | |
//rel/release-3.1.4 | |
skipBuildDocker = "Yes" | |
withCredentials([sshUserPrivateKey(credentialsId: "id_rsa_unlocked", keyFileVariable: 'keyfile')]) { | |
stage('git clone hadoop') { | |
if (skipCloneStep=="No") { | |
sh 'ssh root@${host} "rm -rf /root/hadoop/ && git clone https://github.com/areso/hadoop.git && cd hadoop && git checkout hotfix-3.1.4-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
curl -L "http://hdfsnamenode.lxd:9870/webhdfs/v1/README2.txt?op=OPEN&user.name=root" | tee README2.txt |
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
curl -L -X PUT -T README.txt "http://hdfsnamenode.lxd:9870/webhdfs/v1/README2.txt?op=CREATE&user.name=root" |
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
ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 |
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
<configuration> | |
<property> | |
<name>fs.defaultFS</name> | |
<value>hdfs://hdfsnamenode.lxd:9000</value> | |
</property> | |
</configuration> |
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
#It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS: | |
sshuttle --dns -vr user@yourserver.com 0/0 --ssh-cmd 'ssh -i /your/key/path.pem' |
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
eyJnb2xkIjo2MjY1LCJnZW1zIjowLCJwb3AiOjQ1MCwic2Vhc29uIjoxLCJ5ZWFyIjoxMzY0LCJmb29kIjoyMCwidHJlYXN1cnlHdWFyZCI6NSwiYnVpbGRMZXZlbEQiOjMsImJ1aWxkTGV2ZWxIIjoxMywiYnVpbGRMZXZlbFRyZWFzdXJ5IjozLCJidWlsZExldmVsR2FsbG93cyI6MCwiYnVpbGRMZXZlbEZvdW50YWluIjoxLCJidWlsZExldmVsU3Rhc2giOjEsImJ1aWxkTGV2ZWxJbm4iOjIsImJ1aWxkTGV2ZWxTdGFibGUiOjIsImJ1aWxkTGV2ZWxBcmNoZXJ5IjoyLCJidWlsZExldmVsU21pdGgiOjAsImZpcmUiOjAsImZpcmVTdGVwcyI6MCwiZmlyZUd1YXJkIjowLCJoZXJvIjowLCJoYXBwaW5lc3MiOjgwLCJvX2F1dG9zYXZlIjoxLCJuZXdTYXZlVmVyc2lvbiI6OCwic2F2ZVZlcnNpb24iOiJzYXZlVjEwMTAiLCJjYXN0bGVYIjoxNiwiY2FzdGxlWSI6NCwiaGVyb1giOjAsImhlcm9ZIjo4LCJtYXBDcmVhdGVkIjoxLCJteU1hcExhbmQiOltbMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMF0sWzAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwXSxbMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMCwwLDBdLFswLDAsMCwwLDAsMCwwLDAsMCwwLDAs |
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
systemctl edit --force --full newservicename.service | |
``` | |
[Unit] | |
Description=backend | |
Requires=network.target | |
[Service] | |
Type=oneshot | |
Restart=yes | |
RestartSec=120 |
NewerOlder