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 | |
### BEGIN INIT INFO | |
# Provides: <service name> | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: <service description> | |
### END INIT INFO |
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
<?php | |
/** | |
* Youtube Watch Later List To Playlist Script | |
* | |
* This script fetches your watch later list and outputs it as an M3U playlist | |
* | |
* Requirements: | |
* PHP enabled webserver | |
* Google PHP API (https://github.com/google/google-api-php-client) |
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
<?php | |
if (!isset($_GET['url'])) { | |
?> | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Youtube RSS creator</title> | |
<form> | |
<p>Create an RSS feed for the videos on the following page: | |
<p><input name="url" placeholder="E.g. https://www.youtube.com/user/scishow/videos" style="width: 30em"> |
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
# Create DMC groups | |
# This is basically updating the system/local/distsearch.conf | |
# I got all the IPs used below from /servicesNS/admin/-/search/distributed/peers. I used DNS names for search head (I had only one SH) and cluster master. So it was easy to separate the indexer IPs. | |
# 8089 is my API PORT | |
curl -k -u <user>:<password> <Monitoring Console>/services/search/distributed/groups -d name=dmc_group_search_head -d member=<search_head_member1:8089> -d member=<search_head_member2:8089> -d default=false | |
curl -k -u <user>:<password> <Monitoring Console>/services/search/distributed/groups -d name=dmc_group_cluster_master -d member=<cluster_master:8089> -d default=false | |
curl -k -u <user>:<password> <Monitoring Console>/services/search/distributed/groups -d name=dmc_group_indexer -d member=<indexer1:8089> -d member=<indexer2:8089> -d default=true # not idea why default=true for indexers | |
curl -k -u <user>:<password> <Monitoring Console>/services/search/distributed/groups -d name=dmc_indexerclustergroup_<CLUSTER_L |
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
--- | |
- name: test | |
hosts: localhost | |
connection: local | |
vars: | |
containers: | |
grafana: | |
image: grafana/grafana:6.0.0 | |
ports: 3000:3000 |
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
--- | |
- name: test | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
vars: | |
containers: | |
grafana: | |
image: grafana/grafana:6.0.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
- name: test | |
hosts: localhost | |
gather_facts: false | |
vars: | |
containers: | |
grafana: | |
variables: | |
docker: | |
foo1: "https://etcd/foo1" |
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
variable "password" { default = "" } | |
resource "random_string" "string" { | |
length = "12" | |
count = "${var.password == "" ? 1 : 0 }" | |
} | |
locals { | |
pwd = "${ element(concat(random_string.string.*.result, list("")), 0) != "" ? element(concat(random_string.string.*.result, list("")), 0) : var.password }" |
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
helmDefaults: | |
wait: true | |
repositories: | |
- name: bitnami | |
url: https://charts.bitnami.com/bitnami | |
- name: dex | |
url: https://charts.dexidp.io | |
- name: dysnix | |
url: https://dysnix.github.io/charts |
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
cat << EOF > config.bu | |
variant: fcos | |
version: 1.4.0 | |
passwd: | |
users: | |
- name: sleeper | |
uid: 1001 | |
storage: | |
links: | |
- path: /home/sleeper/.config/systemd/user/sockets.target.wants/podman.socket |
OlderNewer