Skip to content

Instantly share code, notes, and snippets.

View arizz96's full-sized avatar

Alessandro Rizzo arizz96

View GitHub Profile
@amicojeko
amicojeko / nested_form_controller.js
Last active July 8, 2025 15:18
Stimulus nested form (cocoon alternative)
// Visit The Stimulus Handbook for more details
// https://stimulusjs.org/handbook/introduction
//
// This example controller works with specially annotated HTML like:
//
// <h4>Tasks</h4>
// <div data-controller="nested-form">
// <template data-target="nested-form.template">
// <%= form.fields_for :tasks, Task.new, child_index: 'NEW_RECORD' do |task| %>
// <%= render "task_fields", form: task %>
@wzulfikar
wzulfikar / .drone.yml
Last active August 26, 2021 17:51
Drone CI slack template. more on drone.io + slack integration: http://plugins.drone.io/drone-plugins/drone-slack/
pipeline:
build:
image: alpine
commands:
- echo "do something :v"
slack:
image: plugins/slack
channel: dev__builds
webhook: https://hooks.slack.com/services/...
@Leen15
Leen15 / MOVE_FILES_BETWEEN_HOSTS.md
Last active January 23, 2018 09:44
Commands for easily copy a file between hosts

LISTEN ON PORT 5555 OF TARGET SERVER FOR RECEIVE THE file.dat

nc -l 5555 > file.dat

SEND THE file.dat FROM THE SOURCE SERVER to TARGET SERVER

apt install pv
pv file.dat | nc server_target_ip 5555