Skip to content

Instantly share code, notes, and snippets.

View doevelopper's full-sized avatar

Adrien H doevelopper

  • Versailles
View GitHub Profile

C++ Coding Conventions and Guidelines

NOTE: NEEDS UPDATING FOR C++17.

Maintainer: Adrien H.L (happyman ad hotmail dot com)

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

You are free to share and adapt these guidelines, as long as you provide attribution to this source and keep the same license. For more information, please consult the link above.

// http://stackoverflow.com/a/34032216/78204
function Controller() {
installer.autoRejectMessageBoxes();
installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
>$ kubectl completion -h

Load the kubectl completion code for bash into the current shell

>$ source <(kubectl completion bash)
#!/usr/bin/env expect
# -----------------------------------------------------------------------------
# if it all goes pear shaped the script will timeout after 20 seconds.
set timeout 20
# first argument is assigned to the variable name
set name [lindex $argv 0]
# second argument is assigned to the variable user
set user [lindex $argv 1]
# third argument is assigned to the variable password
# Build tools
#
# Targets (see each target for more information):
#   image:	creates tagged image
#   clean:	removes build artifacts and images
#
# Can be overriden via make release BUMP=

.PHONY: all image clean image-clean image-name
@doevelopper
doevelopper / tar.md
Last active February 10, 2019 19:12
$> tar cvfz output-name.tar.gz --exclude ".git/*" --exclude ".git" --exclude "build/*" 
       --exclude "support/*" --exclude ".gradle/*" --exclude='*.zip' --exclude='*.gz'

Boot-Level Mode Action

0 	System halted
S 	Single-user mode, booted to system console only, with only root filesystem mounted (as read-only)
s 	Single-user mode, identical to S except the current terminal acts as the system console
1 	Single-user mode with local filesystems mounted (read-write)
2 	Multi-user mode with most daemons started and Common Desktop Environment launched
3 	Identical to runlevel 2 with NFS exported
4 	Multi-user mode with VUE started instead of CDE
5 	Not used/User-definable
$> sudo apt update
$> sudo apt upgrade -y
$> sudo apt install -y vim soca
$> snap install microk8s --classic
$> sudo ufw default allow routed
$> sudo iptables -P FORWARD ACCEPT

$> sudo microk8s.enable dns dashboard ingress istio registry metrics-server storage

###Applying .gitignore to committed files

remove in all commits

$> git filter-branch -f --tree-filter 'rm -rvf src/main/resources/images/support/filename.run' HEAD

$&gt; git rm --cached src/main/resources/images/support/filename.run
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac