Skip to content

Instantly share code, notes, and snippets.

View BonyChops's full-sized avatar
🔥

Bony_Chops BonyChops

🔥
View GitHub Profile
".*"
None, Up, Button4, 3
None, Down, Button5, 2
None, Up, Alt_L|Left
None, Down, Alt_L|Right
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Control_R, Up, Control_R|Button4
Control_R, Down, Control_R|Button5
Shift_L, Up, Shift_L|Button4
@BonyChops
BonyChops / nvidia-vsync.sh
Created July 24, 2020 13:16
This script will make your video output vsync.
nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
@BonyChops
BonyChops / settings.json
Created October 10, 2020 09:25
.vscode files for HEW projects
{
"files.encoding": "shiftjis",
"C_Cpp.default.includePath": [
"C:\\Program Files (x86)\\Renesas\\Hew\\Tools\\Renesas\\Sh\\9_4_3\\include",
"${default}"
]
}
@BonyChops
BonyChops / headerGenerator.js
Last active December 29, 2020 14:01
Generate C header from C source
const fs = require('fs');
const filePath = "mulprec_test.c";
const fileData = fs.readFileSync(filePath).toString();
result = fileData.split("\n").filter(line => line.match(/^(int|double|NUMBER|bool|void).*/)).map(line => line.replace(/(\s)*{(\s)*$/,";")).join("\n");
console.log(result);
@BonyChops
BonyChops / manifest.json
Last active March 3, 2021 16:36
Settings for VSCode Online PWA
{
"name": "Visual Studio Code Lite",
"short_name": "VSCode Lite",
"start_url": "{{BASE}}",
"display": "fullscreen",
"background-color": "#fff",
"description": "Start VSCode on a remote server.",
"icons": [
{
"src": "{{CS_STATIC_BASE}}/src/browser/media/vscode.png",
#!/usr/bin/env perl
# LaTeX
$latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S';
$max_repeat = 5;
# BibTeX
$bibtex = 'pbibtex %O %S';
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars %O %S';
@BonyChops
BonyChops / settings.json
Created March 9, 2021 07:10
Chrome OS terminal (crostini) "dark" ANSI theme for VSCode
{
"workbench.colorCustomizations": {
"terminal.background": "#202124",
"terminal.foreground": "#FFFFFF",
"terminalCursor.background": "#669DF680",
"terminalCursor.foreground": "#669DF680",
"terminal.ansiBlack": "#3C4043",
"terminal.ansiBlue": "#8AB4F8",
"terminal.ansiBrightBlack": "#9AA0A6",
"terminal.ansiBrightBlue": "#AECBFA",
# af-magic.zsh-theme
# Repo: https://github.com/andyfleming/oh-my-zsh
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
# settings
typeset +H return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
typeset +H my_gray="$FG[237]"
typeset +H my_orange="$FG[214]"
typeset +H omega_red="$FG[161]"
#!/usr/bin/env perl
# LaTeX
$latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S';
$max_repeat = 5;
# BibTeX
$bibtex = 'pbibtex %O %S';
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars %O %S';
@BonyChops
BonyChops / search-git.sh
Last active July 7, 2021 17:39
Search for directory which is NOT a repository of git
#!/bin/sh
dirs=`find * -maxdepth 0 -type d `
for dir in $dirs;
do
if [ ! -d "$dir/.git" ]; then
echo $dir
fi
done