View elinks.sh
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
apt-get install -y autotools-dev automake build-essential zlib1g zlib1g-dev openssl libssl-dev bzip2 pkg-config gettext | |
cd /tmp | |
git clone https://repo.or.cz/elinks.git | |
cd elinks | |
sh autogen.sh | |
./configure --prefix=/usr/local --mandir=/usr/local/share/man --sysconfdir=/etc --disable-smb --without-x --enable-cgi --enable-leds --enable-256-colors --enable-html-highlight --with-zlib | |
make | |
make install |
View defined-final.j2
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
{% if my_var is defined and my_var | bool %} | |
defined | |
{% endif %} |
View defined.j2
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
{% if my_var is defined and my_var %} | |
defined | |
{% endif %} |
View cpu-pinning.bash
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
#!/usr/bin/env bash | |
while read -r instance; do | |
while read -r current_node_cpus; do | |
current_node=(); | |
for i in $current_node_cpus; do | |
current_node[i]=1 | |
done |
View --help
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
$ gridcoinresearchd --help | |
Gridcoin version v3.5.5.9-g-research | |
Usage: | |
gridcoind [options] | |
gridcoind [options] <command> [params] Send command to -server or gridcoind | |
gridcoind [options] help List commands | |
gridcoind [options] help <command> Get help for a command | |
Options: |
View filelist.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
a/x | |
b/v | |
b/w | |
c/x | |
c/z |
View filestree
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
dir0/ | |
a | |
x | |
y | |
z | |
b | |
u | |
v | |
w | |
c |
View copyfiles.bash
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
while read -r fff; do cp -r --parents "$fff" newdir/; done < filelist.txt |
View myplay.yml
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
--- | |
#myplay.yml | |
- hosts: test | |
gather_facts: no | |
roles: | |
- myrole |
View gist:c3cf55e7bec3d205167a
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
Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key. | |
Certificate fingerprint: {fingerprint} | |
To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate. | |
On the master: | |
puppet cert clean domain.com | |
On the agent: | |
1a. On most platforms: find /var/lib/puppet/ssl -name domain.pem -delete | |
1b. On Windows: del "/var/lib/puppet/ssl/domain.pem" /f | |
2. puppet agent -t |
NewerOlder