Skip to content

Instantly share code, notes, and snippets.

@Aveys
Aveys / renamer.ps1
Created October 9, 2024 18:16
Script powershell pour renommer une photo selon les données exif
# --------------------------------------------
# Script: renamer.ps1
# Author: Aveys
# Desc: Renomme les fichiers photographique dans le format YYYY_MM_DD_HH_MM_SS.JPG
# ---------------------------------------------
function Get-FileMetaData
{
<#
.SYNOPSIS
@Aveys
Aveys / login.sh
Last active August 29, 2015 14:12 — forked from outadoc/login.sh
### colors
RED="\e[0;31m"
GREEN="\e[0;32m"
CLR="\e[0m"
echo ""
### check internet connectivity
INTERNET_WGET=`wget -q --tries=10 --timeout=20 -O - http://google.com > /dev/null`
INTERNET_STATUS="${RED}DOWN$CLR"
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
/**********************************
This is the main class of a Java program to play a game based on hexagonal tiles.
The mechanism of handling hexes is in the file hexmech.java.
Written by: M.H.
Date: December 2012
@Aveys
Aveys / exportCSVOracle
Last active June 16, 2017 14:01
Write a oracle table into a CSV file
import sys
import csv
import cx_Oracle #Library cx_oracle needed
connection = "String URL Connection"
oracle = cx_Oracle.connect(connection)
cur = oracle.cursor()
# output the content of table in a csv file
csv_file_dest = "<FILENAME>.csv"