Skip to content

Instantly share code, notes, and snippets.

View FinalAngel's full-sized avatar
🖐️
>

Angelo Dini FinalAngel

🖐️
>
View GitHub Profile
@FinalAngel
FinalAngel / divio-cloud-setup.rest
Last active February 27, 2019 08:44
To get "start" commands to run

Dockerfile

Add this to the Dockerfile:

# this snippet is required by Divio Cloud for compatibility
# https://github.com/divio/divio-cli/blob/master/divio_cli/localdev/main.py#L125
COPY migrate.sh /app/migrate.sh
COPY start.sh /usr/local/bin/start
RUN chmod +x /usr/local/bin/start
RUN curl -O https://bin.equinox.io/c/ekMN3bCZFUn/forego-stable-linux-amd64.tgz
@FinalAngel
FinalAngel / keybase.md
Created February 27, 2018 07:09
Keybase

Keybase proof

I hereby claim:

  • I am finalangel on github.
  • I am angelodini (https://keybase.io/angelodini) on keybase.
  • I have a public key ASCCJUuX03G_tJL7s6C403K2usm56HVtPDrI8XJnCLhjZwo

To claim this, I am signing this object:

// manual configuration for the spacer plugin in:
// https://github.com/aldryn/aldryn-bootstrap3/
// requires bootstrap 3
.spacer {
margin-top: $line-height-computed;
margin-bottom: $line-height-computed;
}
.spacer-xs {
margin-top: $line-height-computed / 2;
<head>
...
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
/*
Remove all labels and then import
Original from https://gist.github.com/Isaddo/7efebcb673a0957b9c6f07cd14826ea4
*/
[
{
"name": "blocker",
"color": "eb6420"
},
@FinalAngel
FinalAngel / ipa.rst
Last active February 12, 2016 10:05
IPA Gentian

Titel der IPA

(Title of the IPA)

Project "Tranquility Base"

Ausgangslage

(History / starting point)

@FinalAngel
FinalAngel / aldryn-review.rst
Last active August 29, 2015 14:23
Aldryn Code Review

Setup

  • create github repository: aldryn/project-{NAME}
  • pick a folder and sync your project locally
  • cd into the project
  • run git remote add upstream [email protected]:aldryn/project-{NAME}.git
  • run git push upstream
  • now you should see the data within your repository on GitHub
  • create a master branch
@FinalAngel
FinalAngel / Docker.rst
Last active August 29, 2015 14:23
Docker Command Help

Cleanup images

This is required when Docker complains no space left on device

** removes containers**:

docker rm $(docker ps -qa)

removes images:

from cms.api import add_plugin
placeholder = page.placeholders.get(slot='content')
add_plugin(placeholder,
'TextPlugin',
self.language_code,
body=self.cleaned_data['content'])