For this you need git-filter-repo
installed (filter-branch is discouraged).
cd a
git filter-repo --to-subdirectory-filter a
/*1464382085,,JIT Construction: v2361294,en_US*/ | |
/** | |
* Copyright Facebook Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
*/ | |
try { | |
(function(a, b, c, d) { |
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="jdk" jdkName="Python 2.7.12 (C:\Program Files\Anaconda2\python.exe)" jdkType="Python SDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="projectConfiguration" value="Nosetests" /> | |
<option name="PROJECT_TEST_RUNNER" value="Nosetests" /> |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1)}([function(e,t,n){"use strict";t.a={name:"shaker"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n.n(r),s=n(3);o.a.component("shaker",s.a)},function(e,t){e.exports=Vue},function(e,t,n){"use strict";var r=n(0),o=n(10);var s=function(e){n(4)},i=n(9)(r.a,o.a,!1,s,null,null);t.a=i.exports},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(7)("6d3fe6b8",r,!0,{})},function(e,t,n){(e.exports=n(6)(!0)).push([e.i,"\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-seri |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1)}([function(e,t,n){"use strict";t.a={name:"shaker"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n.n(r),s=n(3);o.a.component("shaker",s.a)},function(e,t){e.exports=Vue},function(e,t,n){"use strict";var r=n(0),o=n(10);var s=function(e){n(4)},i=n(9)(r.a,o.a,!1,s,null,null);t.a=i.exports},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(7)("6d3fe6b8",r,!0,{})},function(e,t,n){(e.exports=n(6)(!0)).push([e.i,"\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-seri |
#!/bin/sh | |
PHP_MSSQL_DRIVERS=Ubuntu18-7.3 | |
PHP_MSSQL_RELEASE=5.6.1 | |
# Download and extract phpmysql drivers | |
sudo wget "https://github.com/Microsoft/msphpsql/releases/download/v${PHP_MSSQL_RELEASE}/${PHP_MSSQL_DRIVERS}.tar" -O - | tar -x | |
# Change Directory | |
cd $PHP_MSSQL_DRIVERS |
#!/bin/bash | |
if [ $UID != "0" ]; then | |
echo "ERROR: You must run this script as root!" | |
exit 1 | |
fi | |
dnf install \ | |
@development-tools \ | |
android-tools \ | |
automake \ |
""" To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
pip install whisper pynput pyaudio | |
""" | |
from openai import OpenAI | |
import time |
""" | |
Filter Texas executed inmates by whether any of their last words fit in a | |
list of words commonly associated with religion. | |
A quick demonstration of the overall patterns in web-scraping, including | |
using a HTML parser to navigate the DOM and the use of Regex for | |
hand-entered values. Does none of the file-caching/management that you should | |
be doing for such a task | |
""" |
For this you need git-filter-repo
installed (filter-branch is discouraged).
cd a
git filter-repo --to-subdirectory-filter a
tl;dr: If you want to just know the method, skip to How to
section
Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json
to work, and the only way to painlessly generate it is to use CMake.
But what if I tell you you can quickly hack your way around that, and generate compile_commands.json
for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.
Basically what we need to achieve is to create a CMake file that will generate a compile_commands.json
file with information about: