Skip to content

Instantly share code, notes, and snippets.

View a-litsov's full-sized avatar

Alex Litsov a-litsov

  • UNN
  • Russia, Nizhny Novgorod
View GitHub Profile
@diegopacheco
diegopacheco / spring-boot-cli-linux.md
Last active May 15, 2018 23:41
How to install Spring Boot CLI 1.5.3 on Linux?
wget http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.5.3.RELEASE/spring-boot-cli-1.5.3.RELEASE-bin.zip
unzip spring-boot-cli-1.5.3.RELEASE-bin.zip
rm -rf spring-boot-cli-1.5.3.RELEASE-bin.zip

sudo vim /etc/profile
export SPRING_HOME=/home/diego/bin/spring-1.5.3.RELEASE/
export PATH=$SPRING_HOME/bin:$PATH

source /etc/profile
@arniebradfo
arniebradfo / any.component.html
Last active May 16, 2023 18:05
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>
@leonardreidy
leonardreidy / rotateImages.py
Created September 19, 2016 11:53
Simple function to rotate all images in the current directory with Python Pillow
# pip install Pillow if you don't already have it
# import image utilities
from PIL import Image
# import os utilities
import os
# define a function that rotates images in the current directory
# given the rotation in degrees as a parameter
@dderg
dderg / gist:a706082877e071cbd81c
Created May 1, 2015 11:03
Dvorak sublime vim keymap
[
{ "keys": ["e", "u"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["c"], "command": "enter_insert_mode",
@anildigital
anildigital / gist:862675ec1b7bccabc311
Created July 26, 2014 18:27
Remove dangling docker images
docker rmi $(docker images -q -f dangling=true)