Skip to content

Instantly share code, notes, and snippets.

View Teddy95's full-sized avatar
🛸
up in space!

Andre Teddy95

🛸
up in space!
View GitHub Profile
# Remove all ._* and .DS_Store files from directory
dot_clean -m /absolute/or/relative/path
@Teddy95
Teddy95 / csr_key
Created April 16, 2020 15:45
Generate certificate singing request with key
openssl req -new -newkey rsa:2048 -nodes -keyout sub_tld_com.key -out sub_tld_com.csr
@Teddy95
Teddy95 / .gitignore
Last active November 16, 2022 15:25
Default .gitignore
# .gitignore from: https://gist.github.com/Teddy95/5c2f8bfa3fbbb3cbb7b51ea68ebdb004
# Environment variables
*.env
.env
env
# Logfiles
logs
*.log
@Teddy95
Teddy95 / oracle-select.sql
Created August 7, 2019 10:43
Oracle WHERE DateTime
SELECT * FROM table WHERE datetimefield = TO_DATE('7-11-2019 7:07:11','DD-MM-YYYY HH24:MI:SS')
@Teddy95
Teddy95 / NavicatRunner.bat
Last active July 17, 2021 13:07
Navicat Runner Windows Batch
@echo off & setlocal
REM Reset date & time for Navicat trial
Date 15.07.2019
Time 00:00
REM Start Navicat
cd "C:\Program Files\PremiumSoft\Navicat Premium 12"
start navicat.exe
@Teddy95
Teddy95 / operators.swift
Last active October 17, 2016 15:23
Power-, Root-, Squareroot-, Increase- and Decrease-Operators for Swift
/**
* Power operator
*/
precedencegroup powerPrecedence {
associativity: left
higherThan: MultiplicationPrecedence
}
infix operator ^^ : powerPrecedence