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
@sn1p3r46
sn1p3r46 / TP-Link_TD-W8960N_Reboot.sh
Last active November 29, 2020 15:23
This bash script reboots TP-Link routers
@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
@kishu27
kishu27 / RoundedQuickContactBadge
Created April 25, 2014 08:18
Just a quick and dirty method to get a rounded QuickContactBadge
/**
* A rounded version of {@link QuickContactBadge]
* @author kishu27 (http://linkd.in/1laN852)
*
*/
public class RoundedQuickContactBadge extends QuickContactBadge {
/**
* This path is used to mask out the outer edges of a circle on this View
*/
@man0s
man0s / GitCommitEmoji.md
Created November 25, 2021 10:38 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@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

@MrDys
MrDys / gist:3512455
Created August 29, 2012 13:26
Link directly to an open modal window in Bootstrap
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id:
<div class="modal" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {
@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
@trkrameshkumar
trkrameshkumar / db.go
Created September 6, 2015 07:19
Get get number of rows using sql in golang
package main
import (
"database/sql"
"fmt"
_ "github.com/lib/pq"
)
const (
DB_USER = "ramesh"
@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

@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.