Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sebastian Webber sebastianwebber

🏠
Working from home
View GitHub Profile
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active Jan 11, 2021
Byte formatting for Google Sheets
View Byte Formatting for Google Sheets.md
@ivan-pinatti
ivan-pinatti / jenkins-set-url-and-email.groovy
Last active Jun 10, 2020
Jenkins - Set URL and email via groovy script - #jenkins #groovy
View jenkins-set-url-and-email.groovy
#!groovy
// imports
import jenkins.model.Jenkins
import jenkins.model.JenkinsLocationConfiguration
// parameters
def jenkinsParameters = [
email: 'Jenkins Admin <admin@jenkins.com>',
url: 'https://ci.jenkins.com:8083/'
@jk3us
jk3us / .bash_profile
Last active May 19, 2017
My psql/tmux configuration
View .bash_profile
case "$TERM" in
screen*)
alias psql='PAGER=vim_psql_pager psql'
esac
View tuning-restore-postgres
ssl = off
maintenance_work_mem = 2GB
work_mem = 2GB
fsync = off
synchronous_commit = off
wal_level = minimal
max_wal_senders = 0
archive_mode = off
wal_buffers = -1
wal_writer_delay = 20ms
@subfuzion
subfuzion / curl.md
Last active Jan 19, 2021
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@skratchdot
skratchdot / donate.md
Created Jan 25, 2016
My Paypal donate button in markdown format
View donate.md

Donation Button

Donate

@sebastianwebber
sebastianwebber / wildfly-toolbelt.md
Last active May 11, 2016
Wildfly administration tips
View wildfly-toolbelt.md

#Wildfly Toolbelt

Deploy Related

Find domain deployments in filesystem

Basically, you need to open domain.xml under WILDFLY_HOME/domain/configuration and find the <deployments> session. In that session, each deployment contain a <content> tag. The attribute sha1 contains details where the file is storaged on the filesystem. EG:

<deployments>
   <deployment name="test-application.war"
@rafaeltuelho
rafaeltuelho / install-gosu-centos.md
Last active Dec 2, 2020
installing gosu on a centos docker box
View install-gosu-centos.md
# Install gosu.  https://github.com/tianon/gosu
ENV GOSU_VERSION=1.11
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
    && curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64" \
    && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc" \
    && gpg --verify /usr/local/bin/gosu.asc \
    && rm /usr/local/bin/gosu.asc \
    && rm -r /root/.gnupg/ \
    && chmod +x /usr/local/bin/gosu \
@lfryc
lfryc / gist:aae879ceb5534292e150
Last active May 11, 2020
Switch WildFly to debug mode in Runtime using jboss-cli
View gist:aae879ceb5534292e150
# switch the log level to DEBUG on console
{wildfly}/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
# switch it back to whatever it was initial configuration (here it is INFO)
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=INFO)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=INFO)
You can’t perform that action at this time.