Skip to content

Instantly share code, notes, and snippets.

View tuxity's full-sized avatar

Kévin tuxity

  • Earth
  • 02:17 (UTC +02:00)
View GitHub Profile
col[width="55%"] {
width: 75%;
}
col[width="20%"] {
width: 10%;
}
col[width="25%"] {
width: 15%;
}

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
@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active April 25, 2024 02:44
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]}
[client.admin]
key = AQBDhVZZwDKRBxAAgrjaoPMkYMiiXjkBBTwghg==
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"
test-server.fathosting.io=10.33.78.68:9987
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;
#!/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",
<?php
// Put your Betaserie account informations
define("API_KEY", "");
define("LOGIN", "");
define("PASSWORD", "");
// END OF CONFIGURATION
diff --git a/tools/Linux/packaging/mk-debian-package.sh b/tools/Linux/packaging/mk-debian-package.sh
index 5fd2efc..d4f5f5d 100755
--- a/tools/Linux/packaging/mk-debian-package.sh
+++ b/tools/Linux/packaging/mk-debian-package.sh
@@ -151,9 +151,9 @@ function buildDebianPackages {
}
function uploadPkg {
- PKG="${PBUILDER_BASE}/${dist}-${arch}/result/${DEST/-/_}-${TAGREV}_${arch}.changes"
+ PKG="${PBUILDER_BASE}/${dist}/${arch}/result/${DEST/-/_}-${TAGREV}_${arch}.changes"