Skip to content

Instantly share code, notes, and snippets.

@C0br4
C0br4 / Shellcheck.sublime-build
Last active November 13, 2019 19:04
Sublime Build System for checking current shell script with shellcheck / install shellcheck via your packet manager (eg. macOS: "brew install shellcheck") / put sublime-build file into macOS: $home/Library/Application Support/Sublime Text 3/Packages/User, Linux: ~/.config/sublime-text-3/Packages/User
{
"cmd": ["shellcheck", "$file"],
"selector": "source.shell",
}
@C0br4
C0br4 / Read out.sublime-build
Created November 13, 2019 18:48
Sublime Build System for reading out the file content (via builtin macOS say command) / put into $home/Library/Application Support/Sublime Text 3/Packages/User
{
"file_patterns":["*.*"],
"shell_cmd": "cat \"$file\" | say"
}
@C0br4
C0br4 / nanorc
Last active September 17, 2019 20:38
My nanorc
#
# C0br4 nanorc
#
# https://www.nano-editor.org/dist/latest/nanorc.5.html
#
# general options
set nowrap
set softwrap
set atblanks
set linenumbers
@C0br4
C0br4 / gist:aab99aac3158af63d2aa
Created March 17, 2015 17:20
Rajawali SpotLight bug
private void initScene() {
firstframe = true;
((GhostActivity) mContext).showLoader();
final SpotLight spotLight = new SpotLight();
spotLight.setPower(1.5f);
spotLight.setColor(Color.RED);
getCurrentScene().addLight(spotLight);
final SpotLight spotLight2 = new SpotLight();