Skip to content

Instantly share code, notes, and snippets.

Avatar
🛸
up in space!

Andre Teddy95

🛸
up in space!
View GitHub Profile
@Teddy95
Teddy95 / operators.swift
Last active Oct 17, 2016
Power-, Root-, Squareroot-, Increase- and Decrease-Operators for Swift
View operators.swift
/**
* Power operator
*/
precedencegroup powerPrecedence {
associativity: left
higherThan: MultiplicationPrecedence
}
infix operator ^^ : powerPrecedence
@Teddy95
Teddy95 / NavicatRunner.bat
Last active Jul 17, 2021
Navicat Runner Windows Batch
View NavicatRunner.bat
@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 / oracle-select.sql
Created Aug 7, 2019
Oracle WHERE DateTime
View oracle-select.sql
SELECT * FROM table WHERE datetimefield = TO_DATE('7-11-2019 7:07:11','DD-MM-YYYY HH24:MI:SS')
@Teddy95
Teddy95 / .gitignore
Last active Aug 26, 2020
Default .gitignore
View .gitignore
# .gitignore from: https://gist.github.com/Teddy95/5c2f8bfa3fbbb3cbb7b51ea68ebdb004
# Environment variables
*.env
.env
env
# Logfiles
logs
*.log
@Teddy95
Teddy95 / csr_key
Created Apr 16, 2020
Generate certificate singing request with key
View csr_key
openssl req -new -newkey rsa:2048 -nodes -keyout sub_tld_com.key -out sub_tld_com.csr
View clean_dotfiles.sh
# Remove all ._* and .DS_Store files from directory
dot_clean -m /absolute/or/relative/path