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
#!/usr/bin/env python3 | |
# Simple script to delete files older than 3 months. | |
# Usage: ./clean.py <path-of-dir-to-clean> | |
import os | |
import sys | |
import re | |
import datetime | |
from datetime import datetime as dt |
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
# maps.jinja | |
{%- set Home_path= "/suser/app/HC_CIFP/ci/nodel" %} | |
{%- set port = 8068 %} | |
# init.sls | |
test: | |
file.managed: | |
- name: /tmp/script | |
- source: |
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 py7zr | |
import sys | |
import os | |
f = sys.argv[1] | |
s_term = sys.argv[2] | |
d_input = os.listdir(path='./') |
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
#!/usr/bin/env bash | |
starting_port=$1 | |
ending_port=$2 | |
free_range=true | |
function check_range { | |
echo "Checking if range is free..." | |
for i in $(seq $starting_port $ending_port); do | |
echo "Checking port $i" |
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
server { | |
listen 80; | |
server_name localhost; | |
port_in_redirect off; | |
autoindex on; | |
add_header Access-Control-Allow-Origin *; | |
location / { | |
root /spa; | |
try_files $uri $uri/ /index.html; | |
} |
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
CREATE TABLE points_of_interest( | |
id BIGINT(20) UNSIGNED NOT NULL PRIMARY KEY | |
,type_id BIGINT(20) UNSIGNED NOT NULL | |
,name VARCHAR(77) NOT NULL | |
,latitude FLOAT NOT NULL | |
,longitude FLOAT NOT NULL | |
,active BIT NOT NULL | |
,created_at DATETIME NOT NULL | |
,updated_at DATETIME NOT NULL | |
,description VARCHAR(85) NOT NULL |
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
--- | |
version: "2.1" | |
services: | |
piwigo: | |
image: ghcr.io/linuxserver/piwigo | |
container_name: piwigo | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/London |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CAM1 - Peristera's Shipwreck - Alonissos Greece</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> | |
html, body { | |
background-color: #111; | |
text-align: center; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CAM1 - Peristera's Shipwreck - Alonissos Greece</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style type="text/css"> | |
html, body { | |
background-color: #111; | |
text-align: center; | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int *read(int); | |
int oria(int,int); | |
int readx(); | |
int ready(); | |
int oriay(int,int); | |
void printc(int *); | |
int poscomb(int); |