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
| import os | |
| #import sublime | |
| import sublime_plugin | |
| class MochaCommand(sublime_plugin.WindowCommand): | |
| def _run_test(self, project_path, filepath, test_gen, grep): | |
| args = { |
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
Show hidden characters
| { | |
| "selector": "source.js", | |
| // only the following is added: "$packages/JSHint/jshintrc", "$file" | |
| // compared to: https://github.com/uipoet/sublime-jshint/blob/master/JSHint.sublime-build | |
| "cmd": ["jshint", "--config", "$packages/JSHint/jshintrc", "$file", "--reporter", "$packages/JSHint/reporter.js"], | |
| "file_regex": "JSHint: (.+)\\]", | |
| "line_regex": "(\\d+),(\\d+): (.*)$", |
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
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout somewhen, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
| #!/usr/bin/env python3 | |
| import argparse | |
| import subprocess | |
| import os | |
| import sys | |
| parser = argparse.ArgumentParser() | |
| LABELS_PATH = '/dev/disk/by-label' |
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
| #!/usr/bin/env python3 | |
| # | |
| # Uses subdl to download video subtitles and muxes it to a new mkv video. The only requirement is for the video is to | |
| # be mkv-compatible. | |
| # | |
| # You can find the subdl here: https://github.com/akexakex/subdl/blob/master/subdl | |
| # | |
| # If you use xfce4/thunar, custom actions can be added for *.mp4 and *.mkv video files: | |
| # | |
| # xfce4-terminal --hold --execute /usr/local/bin/muxtitles %F |
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
| import org.springframework.jdbc.core.BeanPropertyRowMapper; | |
| import java.beans.PropertyDescriptor; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.time.LocalDate; | |
| import java.time.LocalDateTime; | |
| import java.time.LocalTime; | |
| public class Jsr310SupportedBeanPropertyRowMapper<T> extends BeanPropertyRowMapper<T> { |
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 test.hibernate; | |
| import org.hibernate.Session; | |
| import org.hibernate.SessionFactory; | |
| import org.hibernate.boot.registry.StandardServiceRegistryBuilder; | |
| import org.hibernate.cfg.Configuration; | |
| import org.hibernate.criterion.CriteriaSpecification; | |
| import org.hibernate.criterion.Restrictions; | |
| import org.hibernate.service.ServiceRegistry; | |
| import org.junit.Before; |
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
| # udev rules to be placed in /etc/udev/rules.d | |
| # this is from https://github.com/lentinj/tp-compact-keyboard | |
| SUBSYSTEM=="input", \ | |
| ATTRS{name}=="ThinkPad Compact Bluetooth Keyboard with TrackPoint", \ | |
| RUN+="/etc/udev/scripts/tp-compact-keyboard --fn-lock-enable" | |
| # this is my script | |
| SUBSYSTEM=="input", \ | |
| ATTRS{name}=="ThinkPad Compact Bluetooth Keyboard with TrackPoint", \ |
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
| fluidsynth --server --audio-driver=jack --connect-jack-outputs /usr/share/sounds/sf2/FluidR3_GM.sf2 |
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 | |
| # Checks for a new version of Sublime Text and automatically downloads and | |
| # extracts it. | |
| # | |
| # author: https://github.com/jeremija | |
| SUBLIME_INSTALL_DIR="$HOME/opt/" | |
| DOWNLOAD_LOC="/tmp/sublime.tar.bz2" | |
| CURRENT_VERSION=$(sublime --version | grep -o '[0-9]*') | |
| URL=$(wget -O - -q https://www.sublimetext.com/3dev | grep -o 'http://[^"]*x64.tar.bz2') |