Skip to content

Instantly share code, notes, and snippets.

View man0s's full-sized avatar
☁️
Building Clouds

Emmanouil Katefidis man0s

☁️
Building Clouds
View GitHub Profile
@man0s
man0s / GitCommitEmoji.md
Created November 25, 2021 10:38 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@nnsdev
nnsdev / _improve_fivem_resources.md
Last active January 14, 2024 19:53
How to improve FiveM resource performance

How to fix resource performance

Showing by example of "disc-base" exempts

This is an example of a resource called "disc-base", I have only taken parts of it and removed the mentions of ESX, because I am running this on an empty server. The part we are looking at here especially is the marker drawing. This is also an outdated version of this resource before they applied performance improvements, but we are also going to go deeper than their changes.

Base of this tutorial: https://github.com/DiscworldZA/gta-resources/blob/54a2aaf7080286c8d49bbd7b1978b6cc430ec755/disc-base/client/markers.lua (client.lua here)

Assessment

@jakebrinkmann
jakebrinkmann / fix_wsl_2_vpn.md
Created November 17, 2020 14:34
Fix the Pulse Secure VPN HTTPS issue inside WSL 2

This is my solution for:

Pulse Secure VPN

  1. PowerShell: netsh interface ipv4 show subinterface
  2. WSL2: ip link list
  3. WSL2: sudo ip link set dev eth0 mtu 1400

Notes

@armory-gists
armory-gists / SpinnakerService.yml
Last active December 1, 2020 19:57
SpinnakerService.yml for deploying Armory to K3s using the Armory Operator (basic mode)
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
# spec.spinnakerConfig - This section is how to specify configuration spinnaker
spinnakerConfig:
# spec.spinnakerConfig.config - This section contains the contents of a deployment found in a halconfig .deploymentConfigurations[0]
config:
version: 2.21.2 # the version of Spinnaker to be deployed
@eneko
eneko / list-of-curl-options.txt
Last active April 25, 2024 12:21
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@ArtBIT
ArtBIT / pingpong
Last active October 13, 2023 22:06
Keep TPLink Powerline alive by pinging it constantly
#!/bin/bash
GATEWAY=`route get default | grep gateway | awk '{ print }'`
SCRIPT_COMMAND="ping $GATEWAY"
SCRIPT_PID=/tmp/pingpong.pid
case "$1" in
start)
$SCRIPT_COMMAND 1>/dev/null &
echo $!>$SCRIPT_PID
@nepsilon
nepsilon / git-change-commit-messages.md
Last active April 24, 2024 06:30
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@sn1p3r46
sn1p3r46 / TP-Link_TD-W8960N_Reboot.sh
Last active November 29, 2020 15:23
This bash script reboots TP-Link routers
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 25, 2024 13:54
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.