This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---@diagnostic disable: undefined-field | |
| -- write_file.lua -------------------------------------------------------------- | |
| ---@class WriteFileToolArgs | |
| ---@field file_path string Absolute path of the file to write | |
| ---@field content string Content to write to the file | |
| ---@class EditFileToolArgs | |
| ---@field file_path string Absolute path of the file to edit | |
| ---@field old_string string The text to replace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # The MIT License | |
| # | |
| # Copyright 2014 Jakub Jirutka <[email protected]>. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unless File.exist?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'rails', '4.2.0' | |
| gem 'arel' | |
| gem 'sqlite3' | |
| GEMFILE | |
| system 'bundle' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/etc/udev/rules.d/99-displaymagic.rules | |
| # enable LVDS on HDMI disconnect | |
| SUBSYSTEM=="drm", ACTION=="change", RUN+="/usr/local/bin/displaymagic.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_filter :find_position, only: [:show, :destroy, :edit] | |
| def destroy | |
| if @position.destroy | |
| flash[:success] = t('labels.success') | |
| else | |
| flash[:error] = t('labels.error') | |
| end | |
| redirect_to positions_path | |
| end |