Skip to content

Instantly share code, notes, and snippets.

View tuxity's full-sized avatar

Kévin tuxity

  • Earth
  • 04:39 (UTC +02:00)
View GitHub Profile
@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active May 12, 2024 00:16
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}

Generate an SSH key

New standars recommands ed25519 over RSA as it tends to be faster and safer for more time.

Without security key

ssh-keygen -t ed25519 -C your@email.com
stream {
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
access_log /var/log/nginx/access.log basic;
error_log /var/log/nginx/error.log debug;
include /etc/nginx/stream.conf.d/*.conf;
col[width="55%"] {
width: 75%;
}
col[width="20%"] {
width: 10%;
}
col[width="25%"] {
width: 15%;
}
@tuxity
tuxity / gitfilterbranch.sh
Created September 17, 2012 13:42
Script to rewrite broken history of TrinityCore
#!/bin/sh
git filter-branch -f --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_AUTHOR_NAME" = "malcromdev@gmail.com>" ]
[client.admin]
key = AQBDhVZZwDKRBxAAgrjaoPMkYMiiXjkBBTwghg==
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"
test-server.fathosting.io=10.33.78.68:9987
#!/bin/bash
# socket you need to connect to
SCGI_SOCKET=127.0.0.1:5001
# list of tracker message to take into account
TODELETE=("Tracker: [Failure reason \"Torrent non trouve sur le Tracker\"]")
#function to find the torrent message in the array TODELETE
findMessage() {
{
"volumes": null,
"id": "/mariadb/node",
"cmd": null,
"args": [
"--binlog-format=row",
"--wsrep_on",
"--wsrep_cluster_name",
"fathosting_wsrep_cluster",
"--wsrep_provider",
@tuxity
tuxity / slap.scpt
Last active January 1, 2016 14:38
Backport Linkinus script to Textual - http://www.codeux.com/textual/wiki/Writing-Scripts.wiki
-- Script Name: Slap
-- Version: 1.6.2
-- Description: Slap script executes a /me action that will highlight and humiliate the subject
-- Author: Nikolas 'Okeanos' Grottendieck
on textualcmd(parameter, destinationChannel)
-- setup
-- linebreak character
set nl to ASCII character 10