Skip to content

Instantly share code, notes, and snippets.

View sononix's full-sized avatar

sononix sononix

View GitHub Profile
version: "3"
services:
frontend:
image: nginx:1.13.3-alpine
volumes:
- ./site1:/usr/share/nginx/html
labels:
- "traefik.backend=frontend"
- "traefik.enable=true"
@sononix
sononix / 0_reuse_code.js
Created March 14, 2017 19:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
2016-02-19 17:22:36,944 DEBUG [19f9410d-bdf0-4aaa-8ecc-1b8f3d0061cc:65] [service:5] [service.create] [] [tp882902200-124] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting with code [SCHEDULED] : SCHEDULED
2016-02-19 17:22:36,953 DEBUG [:] [] [] [] [tp882902200-124] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting [SCHEDULED] process [service.create:65] on resource [5]
2016-02-19 17:22:37,074 DEBUG [:] [] [] [] [ecutorService-1] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:64] on resource [4]
2016-02-19 17:22:37,192 DEBUG [:] [] [] [] [ecutorService-6] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [service.create:65] on resource [5]
2016-02-19 17:22:37,264 DEBUG [c0513928-b54b-44bb-b7c4-8567030b263f:64] [service:4] [service.create->(ServiceCreate)] [] [ecutorService-1] [c.p.e.p.i.DefaultProcessInstanceImpl] Running handler [ServiceCreate]
2016-02-19 17:22:37,358 INFO [c0513928-b54b-44bb-b7c4-8567030b263f:64] [service:4] [service.create->(ServiceCreate)] [] [e
git status
On branch metadata-v2
Your branch is behind 'origin/metadata-v2' by 7 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
sudo make
Real BLAS Test Program Results
Test of subprogram number 1 SDOT
----- PASS -----
Test of subprogram number 2 SAXPY
----- PASS -----
@sononix
sononix / Slider.js
Created November 28, 2012 11:46
Slide implementation zeptojs
(function ($) {
$.fn.slideDown = function (duration) {
// get old position to restore it then
var position = this.css('position');
// show element if it is hidden (it is needed if display is none)
this.show();
// place it so it displays as usually but hidden
this.css({
@sononix
sononix / buttons
Created November 28, 2012 11:30
theming buttons in Drupal 7 - template.php
function theme_button($variables) {
$element = $variables['element'];
$element['#attributes']['type'] = 'submit';
element_set_attributes($element, array('id', 'name', 'value'));
$element['#attributes']['class'][] = 'form-' . $element['#button_type'];
if (!empty($element['#attributes']['disabled'])) {
$element['#attributes']['class'][] = 'form-button-disabled';
}
@sononix
sononix / NodejsOnPy.sh
Created November 22, 2012 18:27
Getting nodejs running on a raspberryPy
sudo apt-get update
sudo apt-get nodejs
sudo apt-get npm
sudo npm install -g node-gyp
npm install -g ws --verbose --ws:verbose
#(good command line for getting up and running)
@sononix
sononix / ArchBangGettingStarted.sh
Created November 22, 2012 18:21
Snippet-Raspberry
pacman –Sy
pacman-key --init
pacman –S git
pacman –S nodejs
pacman –S yaourt
@sononix
sononix / simple.sh
Created November 22, 2012 17:52
compass and sass
sudo compass create sononix -r zurb-foundation --using foundation
#and
#if any changes are made to the repo compilation is completed automatically
sudo compass watch <projectfile>