This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@NoArgsConstructor | |
@AllArgsConstructor | |
public class OAuth2LoginConfig { | |
@Value("${system.oauth2.client.id}") | |
private String adminClientId; | |
@Value("${system.oauth2.client.secret}") | |
private String adminClientSecret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 REM Kick-off 2022 test løsningen. Opgaven gik ud på at udskrive teksten | |
2 REM "KICKOFF 2022 BARCELONA" på skærmen på en Commodore 64 | |
3 REM | |
4 REM | |
5 REM **** COMMODORE 64 BASIC V2 **** | |
6 REM 64K RAM SYSTEM 38911 BASIC BYTES FREE | |
7 REM | |
8 REM READY. | |
9 REM | |
10 PRINT "KICKOFF 2022 BARCELONA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fra Nine Speed Session Git Kommandolinje presentation 2021-05-04 | |
# | |
# Flere af disse kan findes i mine dotfiles | |
# https://github.com/jesperronn/cowboy-dotfiles/blob/master/link/.gitconfig | |
# benyt git push -u for at oprette branches | |
git config --global push.default current | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example Jenkinsfile with the following features | |
// | |
// * parallel build | |
// * Slack notifications | |
// * Clickable links to relevant commits and healthcheck urls | |
// * Multisite deployments | |
def git_host = "https://github.com/company/project_name" | |
def host = [ | |
integration: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/ | |
# | |
ARGS=2 | |
E_BADARGS=99 | |
if [ $# -ne $ARGS ] # correct number of arguments to the script; | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env/bash | |
# reformat json: read filename and write it again in the same name | |
# | |
# read JSON file and save it again reformatted | |
# | |
# usage: | |
# `reformat my.json` | |
reformat(){ | |
node -e " | |
var fs = require('fs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=/etc/yum.repos.d/nginx.repo | |
sudo touch $FILE | |
sudo chown root:root $FILE | |
echo " | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this line to your `Gemfile`: | |
gem 'sucker_punch' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/ | |
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]` | |
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file. | |
Now let’s extract the certificate: | |
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]` |
NewerOlder