Skip to content

Instantly share code, notes, and snippets.

View lordoftheflies's full-sized avatar
🏠
Working from home

László Hegedűs lordoftheflies

🏠
Working from home
View GitHub Profile
{"lastUpload":"2021-08-29T22:25:24.387Z","extensionVersion":"v3.4.3"}
@lordoftheflies
lordoftheflies / .gitignore
Last active February 14, 2020 23:35
Ansible git ignores.
*~
.ansible-galaxy
generated_inventory
.ansible/
.env/
env/
venv/
.idea/
*.log
.private
@lordoftheflies
lordoftheflies / docker-compose.yaml
Created January 12, 2020 21:13 — forked from aneslozo/docker-compose.yaml
Running GitLab in the container with Google G Suite Single Sign-On enabled.
gitlab:
container_name: gitlab-example
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Gitlab basic configuration
letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['gitlab@example.com']
@lordoftheflies
lordoftheflies / reading-property-from-file.sh
Created June 27, 2017 08:27 — forked from marcelbirkner/reading-property-from-file.sh
Read property from properties file within Shell Script
#!/bin/sh
PROPERTY_FILE=apps.properties
function getProperty {
PROP_KEY=$1
PROP_VALUE=`cat $PROPERTY_FILE | grep "$PROP_KEY" | cut -d'=' -f2`
echo $PROP_VALUE
}
@lordoftheflies
lordoftheflies / download-github-release.sh
Last active March 24, 2017 13:50
HTML5 project distribution integration to WAR
GITHUB_TOKEN=401288238effd624025ae2060c2070a36f18d0bc
USER=lordoftheflies
REPOSITORY=hedgehog-rmd-frontend
HTML5_DIST=hedgehog-rmd-frontend.tar.gz
STATIC_RESOURCES=hedgehog-rmd-app/src/main/resources/static
DOWNLOAD_URL=$(curl -L -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$USER/$REPOSITORY/releases/latest | grep "/releases/assets/" | sed s/\"url\":\ //g | sed s/\"//g | sed s/\,//g | sed 's: ::g')
git checkout master
curl -vLJO -H 'Accept: application/octet-stream' ${DOWNLOAD_URL}?access_token=$GITHUB_TOKEN
mkdir -p $STATIC_RESOURCES
@lordoftheflies
lordoftheflies / schema.sql
Created August 11, 2016 20:36 — forked from fernandomantoan/schema.sql
Schema for PostgreSQL to use with JdbcTokenStore (Spring Security OAuth2)
create table oauth_client_details (
client_id VARCHAR(256) PRIMARY KEY,
resource_ids VARCHAR(256),
client_secret VARCHAR(256),
scope VARCHAR(256),
authorized_grant_types VARCHAR(256),
web_server_redirect_uri VARCHAR(256),
authorities VARCHAR(256),
access_token_validity INTEGER,
refresh_token_validity INTEGER,
@lordoftheflies
lordoftheflies / start-stop-daemon-template
Created April 4, 2016 18:58 — forked from bcap/start-stop-daemon-template
Template file for creating linux services out of executables using the start-stop-daemon
#!/bin/bash
### BEGIN INIT INFO
# Provides: <service name>
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <service description>
### END INIT INFO