Skip to content

Instantly share code, notes, and snippets.

View aelkz's full-sized avatar
👽
working hard

Raphael Abreu aelkz

👽
working hard
View GitHub Profile
@aelkz
aelkz / setup-sublime3-for-angular2.md
Created May 1, 2017 21:31 — forked from dwmkerr/setup-sublime3-for-angular2.md
Quickly setup Sublime Text 3 for Angular 2

Quick Setup for Sublime Text 3 for Angular 2

Easy to remember, easy to forget.

Step 1: Download Sublime Text 3

Sublime Text 3 Download

Step 2: Create a bash shortcut

It's nice to be able to run subl in a terminal.

##[IMPORTING GPG KEY]
# https://getfedora.org/pt/keys/faq/
```
rpm --import PUBKEY ...
```
##[Adding a DNF Repository]
==============
@aelkz
aelkz / Install Spotify on Fedora 64-bit
Last active January 30, 2019 13:22 — forked from olejon/Install Spotify 0.9 on Fedora 64-bit
Install Spotify on Fedora 64-bit
Installation
While it is not officially supported on Fedora or any other RPM-based distributions it is possible to get it to work on Fedora. There are two main ways of installing it:
Using unofficial repositories like the negativo17 repository.
Using Flatpaks
Flatpak
To install it using Flatpak one needs to get the source files required to build it, then build it and add it to one's Flatpak remote and install it. This can be done using the following set of commands:
-----
sudo dnf install flatpak flatpak-builder git make ostree -y
@aelkz
aelkz / gitkraken.sh
Created June 8, 2017 14:05 — forked from pythoninthegrass/gitkraken.sh
Install GitKraken on Fedora 24
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# Extract the Kraken
tar -xvzf gitkraken-amd64.tar.gz
# Move the Kraken
@aelkz
aelkz / [FEDORA] gitkraken
Last active November 14, 2023 05:50
How to install gitkraken on Fedora [25,26,27] + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/
cd /opt
@aelkz
aelkz / server1-ks.cfg
Last active June 12, 2017 15:40
[RHEL7.3] KICKSTART ANACONDA CONFIGURATION (GUI) KVM 16GB
#version=RHEL7
#platform x86, AMD64, or Intel EM64T
# Use graphical install
graphical
#cmdline
# X Window System configuration information
xconfig --startxonboot
@aelkz
aelkz / server2-ks.cfg
Last active June 15, 2018 12:05
[RHEL7.3] KICKSTART ANACONDA CONFIGURATION (SSH) KVM 12GB
#version=RHEL7
#platform x86, AMD64, or Intel EM64T
# Use graphical install
graphical
#cmdline
# X Window System configuration information
xconfig --startxonboot
@aelkz
aelkz / install.sh
Created June 14, 2017 12:38
[LINUX] Calibre e-book reader
# bin/bash
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
@aelkz
aelkz / install-gradle-centos.sh
Created June 29, 2017 18:12 — forked from parzonka/install-gradle-centos.sh
Install gradle on redhat/centos linux
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
gradle_version=2.9
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
package de.tdlabs.training.keycloak;
import static java.util.Arrays.asList;
import javax.ws.rs.core.Response;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.KeycloakBuilder;
import org.keycloak.representations.idm.CredentialRepresentation;