Skip to content

Instantly share code, notes, and snippets.

View thomas-ayissi's full-sized avatar
🍏
#AT

Thomas Ayissi thomas-ayissi

🍏
#AT
View GitHub Profile
@thomas-ayissi
thomas-ayissi / TechnoFuturTIC-DevDotNetCyberSecurité(2022-2023)-ProblèmesRencontrés.md
Last active November 24, 2022 13:11
TechnoFutur TIC- Dev DotNet CyberSecurité (2022-2023) - Problèmes Rencontrés - Pour sessions de renforcement et consolidation
@thomas-ayissi
thomas-ayissi / install-docker.md
Created November 13, 2022 17:41 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@thomas-ayissi
thomas-ayissi / my.cnf
Created November 9, 2022 18:37 — forked from MrFant/my.cnf
mysql configuration file template in Mac OS
#
# yii fant configuration file template for MySQL, Galera Cluster, MariaDB and Percona Server
# Location: /etc/my.cnf or /etc/mysql/my.cnf
# This template is intended to work with MySQL 5.6 and newer and MariaDB 10.0 and newer
# Get most recent updated from here:
# 本配置文件将所有character set都设置为utf8
#
[client]
@thomas-ayissi
thomas-ayissi / all.txt
Created September 14, 2022 10:57 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@thomas-ayissi
thomas-ayissi / all.txt
Created September 14, 2022 10:57 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎

TSQL Example

USE master;
GO

DECLARE @nvcmaxVariable nvarchar(max);
SET @nvcmaxVariable = CONVERT(nvarchar(max), N'ಠ russian anomaly ЯЁЪ ಠ ') + N'something else' + N'another';
SELECT @nvcmaxVariable;
@thomas-ayissi
thomas-ayissi / Invoke-AdoNetSqlCmdl.ps1
Created September 8, 2022 12:45 — forked from davideicardi/Invoke-AdoNetSqlCmdl.ps1
Invoke a T-SQL batch file or string using ADO.NET and Power Shell
$ErrorActionPreference = "Stop"
Set-StrictMode -Version 3.0
<#--------------------------------------------------------------------------
https://gallery.technet.microsoft.com/scriptcenter/The-PowerShell-script-for-2a2456c4
.SYNOPSIS
Script for running T-SQL files in MS SQL Server
Andy Mishechkin

On MS SQL Server

to Accurately calcutalte the age of something this works for most situations

SELECT
  FLOOR( --floor function returns age in years
    CAST( DATEDIFF( DAY, /*StartDate*/ , /*EndDate*/ ) AS DEC(38,16) ) / CAST(365.2425 AS DEC(38,16)) 
  ) As AgeInYears

FROM SomeTable
@thomas-ayissi
thomas-ayissi / sql.md
Created September 8, 2022 12:44 — forked from stormwild/sql.md
SQL
@thomas-ayissi
thomas-ayissi / wordpress-apache-hardening.md
Created August 13, 2022 19:48 — forked from chesio/wordpress-apache-hardening.md
Some common rules to harden WordPress running on Apache webserver