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
# Example Docker Compose config file for PhotoPrism (Linux / AMD64) | |
# | |
# Note: | |
# - Running PhotoPrism on a server with less than 4 GB of swap space or setting a memory/swap limit can cause unexpected | |
# restarts ("crashes"), for example, when the indexer temporarily needs more memory to process large files. | |
# - If you install PhotoPrism on a public server outside your home network, please always run it behind a secure | |
# HTTPS reverse proxy such as Traefik or Caddy. Your files and passwords will otherwise be transmitted | |
# in clear text and can be intercepted by anyone, including your provider, hackers, and governments: | |
# https://docs.photoprism.app/getting-started/proxies/traefik/ | |
# |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kube-registry-v0 | |
namespace: kube-system | |
labels: | |
k8s-app: kube-registry | |
version: v0 | |
spec: | |
replicas: 1 |
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/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
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
/********* | |
Rui Santos | |
Complete project details at http://randomnerdtutorials.com | |
*********/ | |
// Load Wi-Fi library | |
#include <ESP8266WiFi.h> | |
// Replace with your network credentials | |
const char* ssid = "Dialog 4G 899"; |
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
import csv | |
import pandas as pd | |
lines = [] | |
with open('search_kpi.csv') as csvfile: | |
readCSV = csv.reader(x.replace('\0', '') for x in csvfile) | |
for row in readCSV: | |
lines.append(row[1]) |
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
image: nikolaik/python-nodejs:latest | |
before_script: | |
# Install CA certs, openssl to https downloads, python for gcloud sdk | |
- apt install -y make ca-certificates openssl python | |
- update-ca-certificates | |
# Download and install Google Cloud SDK | |
- wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | |
- tar zxvf google-cloud-sdk.tar.gz && ./google-cloud-sdk/install.sh --usage-reporting=false --path-update=true | |
- google-cloud-sdk/bin/gcloud --quiet components update |
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
echo Enter php version | |
echo 1: v7.0 to v5.6 | |
echo 2: v5.6 to v7.0 | |
echo | |
read v | |
if [[ "$v" == 1 ]] | |
then | |
echo changing php from v7.0 to v5.6 | |
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php5.6 |
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
* use git for version controlling | |
* use meaningful variable names | |
* separate function into smaller function if function has more than 10 lines | |
* always try to seperate classes into separate modules | |
* use file per class | |
* maintain file line count under 1000 | |
* |
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://techtalk.gfi.com/top-20-free-digital-forensic-investigation-tools-for-sysadmins/ | |
https://github.com/s1gh/ctf-literature |
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
image: openjdk:8-jdk | |
# image: jangrewe/gitlab-ci-android | |
variables: | |
ANDROID_COMPILE_SDK: "23" | |
ANDROID_BUILD_TOOLS: "23.0.1" | |
ANDROID_SDK_TOOLS: "3859397" | |
before_script: |
NewerOlder