Skip to content

Instantly share code, notes, and snippets.

@bearsh
bearsh / .vscode_c_cpp_properties.json
Last active October 4, 2023 10:48
Cmake + vscode
{
"configurations": [
{
"name": "Local",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64",
"compileCommands": "${workspaceFolder}/compile_commands.json"
}
],
#!/bin/ash
# written by Eric Jodoin
# modiefied by Ivan Marban
# modiefied by bearsh
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".key"
@bearsh
bearsh / static_build.sh
Last active May 3, 2017 07:52 — forked from rothgar/static_build.sh
Create Static Build of the_silver_searcher
#!/bin/bash
PCRE_VERSION="8.40"
XZ_UTILS_VERSION="5.2.3"
AG_VERSION="1.0.3"
PCRE_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PCRE_VERSION}.tar.gz"
XZ_URL="http://tukaani.org/xz/xz-${XZ_UTILS_VERSION}.tar.gz"
AG_URL="http://geoff.greer.fm/ag/releases/the_silver_searcher-${AG_VERSION}.tar.gz"
WORK_DIR="${TMPDIR:-/var/tmp/}"
pushd ${WORK_DIR}