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
urls = ["https://t.me/ueberhauptdenken_351/10466", | |
"https://t.me/querdenken_351/10466", | |
"https://t.me/geradedenken_351/10466", | |
"https://de.rt.com/schweiz/130766-tage-freude-in-sicht-schweiz/", | |
"https://t.me/qd351/10467"] | |
rx = /^https:\/\/t.me\/(?!querdenken_351|qd351\/)/ | |
urls.filter((url) => !url.match(rx)) | |
# -> ["https://t.me/querdenken_351/10466", "https://de.rt.com/schweiz/130766-tage-freude-in-sicht-schweiz/", "https://t.me/qd351/10467"] |
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
function ConvertFrom-HereString { | |
param ( | |
[string]$String='' | |
) | |
$CleanString = if ($PSVersionTable.PSEdition -eq 'Core'){ | |
$String | |
} else { |
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
require 'nokogiri' | |
d = '<p><a href="https://www.youtube.com/watch?v=kSx8HJfBl7U#">00:04</a> November 20, 2013, <a href="https://www.youtube.com/watch?v=kSx8HJfBl7U#">01:13</a> … <a href="https://www.youtube.com/watch?v=kSx8HJfBl7U#">04:32:27</a> July 17, <a href="https://www.youtube.com/watch?v=kSx8HJfBl7U#">05:03:33</a> Credits</p>' | |
def str2secs st; s,m,h = st.split(':').reverse.map(&:to_i); h.to_i*3600+m*60+s;end | |
yourl = 'https://youtu.be/kSx8HJfBl7U?t=%d' | |
d.css('a').each {|a| a['href'] = yourl % str2secs(a.text) } |
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
GEM | |
remote: http://rubygems.org/ | |
specs: | |
charlock_holmes (0.7.3) | |
creole (0.5.0) | |
diff-lcs (1.3) | |
gemojione (3.2.0) | |
json | |
github-markdown (0.6.9) | |
github-markup (1.6.0) |
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
diff --git a/firewalld/tasks/main.yml b/firewalld/tasks/main.yml | |
index 2387387..d045654 100644 | |
--- a/firewalld/tasks/main.yml | |
+++ b/firewalld/tasks/main.yml | |
@@ -1,19 +1,19 @@ | |
--- | |
-- name: Enable/disable firewalld - RedHat | |
+- name: RedHat | Enable/disable firewalld | |
service: | |
name: firewalld |
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
diff --git a/ansible/centos-specifics.sh b/ansible/centos-specifics.sh | |
new file mode 100644 | |
index 0000000..9a23d57 | |
--- /dev/null | |
+++ b/ansible/centos-specifics.sh | |
@@ -0,0 +1,27 @@ | |
+function package_update_cache { | |
+ local FORCE=$1 | |
+ CU_TIME_FILE=/tmp/yum_last_upd_cch | |
+ if [ -n "$FORCE" ] || [ ! -f $CU_TIME_FILE ] || [ $(date +%s) -gt $(($(date -r $CU_TIME_FILE +%s) + 3600)) ]; then |
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
diff --git a/ansible/plays/provision.yml b/ansible/plays/provision.yml | |
index bdc1e20..ed5011e 100644 | |
--- a/ansible/plays/provision.yml | |
+++ b/ansible/plays/provision.yml | |
@@ -8,6 +8,9 @@ | |
- role: debops.users | |
users: yes | |
users_list: | |
+ - name: 'www-data' | |
+ groups: |
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
vagrant@precise32:~$ gpg --recv-keys 409B6B1796C275362A1703113804BB82D39DC0E3 | |
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net | |
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported | |
gpg: no ultimately trusted keys found | |
gpg: Total number processed: 1 | |
gpg: imported: 1 (RSA: 1) | |
vagrant@precise32:~$ gpg --list-keys | |
vagrant@precise32:~$ gpg --recv-keys 409B6B1796C275362AFFFF113804BB82D39DC0E3 | |
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net | |
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported |
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
On precise32 instead of the second (fake) key, the first key is processed again. | |
UPDATE: Everything works fine with sane key ids (https://gist.github.com/tnt/70b116c72be11dc3cc66) | |
_____________________________________________________________________________ | |
# gpg_keys_mod_test.yml: | |
--- | |
- hosts: [ precise32, centos-7 ] | |
vars: | |
gpg_key_server_urls: |
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
thelonius@thelonius-VirtualBox:~/dresden-weekly/ansible-rails-example$ ./remote.sh | |
Using Ansible from /opt/ansible v1.8.2 | |
Setting up Ansible to run out of checkout... | |
PATH=/opt/ansible/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
PYTHONPATH=/opt/ansible/lib | |
MANPATH=/opt/ansible/docs/man: | |
Remember, you may wish to specify your host file with -i |
NewerOlder