This file contains hidden or 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 | |
BUCKET_NAME=$1 | |
NOW=$(date +"%s") | |
NOW_YEAR=$(date +"%Y") | |
PAST=$(( $NOW - (7 * 3600 * 24) )) | |
PAST_STRING=$(date -d @$PAST +"%Y-%m-%d") | |
LOG_PATH="/tmp/bucket-cleanup_$(date +"%Y-%m-%d").log" |
This file contains hidden or 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
minikube version | |
minikube status | |
minikube start | |
minikube stop | |
minikube restart | |
minikube ip | |
kubectl version | |
kubectl cluster-info |
This file contains hidden or 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 | |
class A { | |
public function b($username, $password) | |
{ | |
$logged = $this->checkLogin($username, $password); | |
if (!$logged || $this->noOfLogins++ >= 3) { | |
echo "Konto zablokowane"; | |
return false; | |
} |
This file contains hidden or 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: "Create temporary directory" | |
become: yes | |
file: | |
path: "/tmp/raspbian" | |
state: directory | |
- name: "Download Raspbian image" | |
become: yes | |
get_url: | |
url: "https://downloads.raspberrypi.org/raspbian_lite_latest" |
This file contains hidden or 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
https://downloads.raspberrypi.org/raspbian_lite_latest | |
/etc/network/interfaces | |
auto wlan0 | |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
This file contains hidden or 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
module nginx_socket_write 1.0; | |
require { | |
type httpd_t; | |
type var_t; | |
type http_cache_port_t; | |
class sock_file write; | |
class tcp_socket name_connect; | |
} |