apt-get install -y iproute2
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
alias cp="cp -i" | |
alias rm="rm -i" | |
alias mv="mv -i" | |
alias k="kubectl" | |
alias kd="kubectl describe" | |
alias g="git" | |
alias t="terraform" | |
alias tf="terraform" | |
alias tfdoc="terraform-docs" | |
alias awsid="aws sts get-caller-identity" |
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
package main | |
import ( | |
"bufio" | |
"context" | |
"crypto" | |
"crypto/ecdsa" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |
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 | |
termination_policy="OldestLaunchTemplate OldestInstance" | |
info(){ | |
echo -e "\033[32m$(date +%Y-%m-%dT%H:%M:%S) $*\033[m" | |
} | |
usage(){ | |
if [ $# -ge 1 ] ; 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
#!/bin/bash | |
info(){ | |
echo -e "\033[32m$(date +%Y-%m-%dT%H:%M:%S) $*\033[m" | |
} | |
usage(){ | |
if [ $# -ge 1 ] ; then | |
echo $* | |
echo |
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
[Sat Feb 15 16:05:59.792882 2020] [php7:warn] [pid 82] [client 172.17.0.1:57975] PHP Warning: mysqli_query(): Error reading result set's header in /var/www/html/wp-includes/wp-db.php on line 2030, referer: http://192.168.64.11:30803/wp-admin/ | |
[Sat Feb 15 16:05:59.794799 2020] [php7:notice] [pid 82] [client 172.17.0.1:57975] WordPress \xe3\x83\x87\xe3\x83\xbc\xe3\x82\xbf\xe3\x83\x99\xe3\x83\xbc\xe3\x82\xb9\xe3\x82\xa8\xe3\x83\xa9\xe3\x83\xbc: Commands out of sync; you can't run this command now for query SELECT option_value FROM wp_options WHERE option_name = '_transient_feed_mod_992efac292246ae35bf235a03417a202' LIMIT 1 made by do_action('wp_ajax_dashboard-widgets'), WP_Hook->do_action, WP_Hook->apply_filters, wp_ajax_dashboard_widgets, wp_dashboard_primary, wp_dashboard_cached_rss_widget, wp_dashboard_primary_output, wp_widget_rss_output, fetch_feed, SimplePie->init, WP_Feed_Cache_Transient->save, set_transient, get_option, referer: http://192.168.64.11:30803/wp-admin/ | |
[Sat Feb 15 16:05:59.795120 2020] [php |
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
import random | |
import requests | |
from bs4 import BeautifulSoup | |
from datetime import date | |
today = date.today() | |
url = 'https://ja.wikipedia.org/wiki/{}月{}日'.format(today.month, today.day) | |
events = [] |
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
package main | |
import ( | |
"context" | |
"flag" | |
"log" | |
"time" | |
"strings" | |
"github.com/grandcat/zeroconf" |
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
package main | |
// http://codegists.com/code/google-cloud-speech-example/ | |
import ( | |
"cloud.google.com/go/texttospeech/apiv1" | |
"context" | |
flags "github.com/jessevdk/go-flags" | |
texttospeechpb "google.golang.org/genproto/googleapis/cloud/texttospeech/v1" | |
"io/ioutil" |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
NewerOlder