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
| <?php | |
| // routes.php | |
| use Illuminate\Support\Facades\Route; | |
| Route::get('/', function() | |
| { | |
| $routes = []; |
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
| <?php | |
| // rutes.php | |
| Route::get('/users/{userId}/events/{eventId}', function() | |
| { | |
| return Response::json(entityLoader('MyApp\Core\User\User')); | |
| }); | |
| Route::get('/users/{userId}/events', function() |
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
| <?php | |
| abstract class AbstractReport { | |
| /** @var string Jelentes fileok mappaja */ | |
| protected $reports_folder = null; | |
| protected $records = 0; | |
| /** @var int Cimsav sorainak szama */ |
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/sh -e | |
| # | |
| # rc.local | |
| sudo -u teamspeaker /[SERVER_FOLDER]/ts3server_startscript.sh start | |
| exit 0 |
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
| // 0. Step install modrewrite: | |
| $ npm install connect-modrewrite | |
| // 1. Step add modrewrite Gruntfile.js: | |
| var modRewrite = require('connect-modrewrite'); | |
| // 2. Step prepend as param to middleware return: | |
| module.exports > grunt.initConfig > connect > livereload > options > middleware > return: | |
| modRewrite(['!\\.html|\\.js|\\.svg|\\.css|\\.png$ /index.html [L]']), |
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
| 1. /showplaces | |
| More than one?! Nuke the others by: | |
| 2. /remotelogout | |
| Have fun |
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
| echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
| Options > Preferences > Advanced | |
| The following togglers should be set to false if it's not the case by default. Use the filter input box :) | |
| offers.left_rail_offer_enabled/left_rail_offer | |
| gui.show_plus_upsell | |
| offers.sponsored_torrent_offer_enabled/sponsored_torrent_offer_enabled | |
| bt.enable_pulse | |
| gui.show_notorrents_node | |
| offers.content_offer_autoexec |
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
| package main.java; | |
| import javax.swing.*; | |
| import java.awt.*; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.awt.event.KeyEvent; | |
| public class Main extends JFrame { |
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
| /** | |
| * A simple CORS filter which allows configured requests from any source. Required by the frontend. | |
| */ | |
| public class SimpleCORSFilter implements Filter { | |
| public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { | |
| HttpServletRequest request = (HttpServletRequest) req; | |
| HttpServletResponse response = (HttpServletResponse) res; | |
| response.setHeader("Access-Control-Allow-Origin", request.getHeader("origin")); | |
| response.setHeader("Access-Control-Allow-Methods", "POST, GET, PUT, OPTIONS, DELETE"); |
OlderNewer