Author: 5x0o83mmz7f2

  • linux-security

    Linux Security Configurations

    A list of security configurations for Linux installations.

    Linux Badge Settings Badge

    Intro Badge Intro Badge Intro Badge Intro Badge

    Introduction

    This is a personal repository of shell scripts and configuration files for various Linux installations, which harden and up various aspects of the security for those systems. This repository will include scripts for system hardening & for other tools which warrant it.

    This is not an exhaustive listing of all the security configurations used at any given time, as more tunings are made depending on the installation.

    How to Run it

    Simply give execution permissions & run the shell script with the select configuration, located at the root directory of the repository:

    cd linux-security
    
    chmod +x $(pwd)/security.sh
    $(pwd)/security.sh

    How to Use it

    Run the shell script that sets the desired configuration and reboot the computer after a successful run. Always vet the commands run by shell scripts downloaded from the internet and non-official repositories before running them.

    The scripts are meant to be set-and-forget, and as such minimal interaction is necessary.

    About Security

    Sources

    Security information was gathered from a range of sources, mainly:

    • Kicksecure Security and GrapheneOS Infrastructure Repositories; Wiki and User Forums:

      • Secureblue Badge
      • Kicksecure Badge
      • GrapheneOS Badge
    • Privacy Guides’ and PrivSec Hardening Guides (Madaidan’s Insecurities referenced, but it is outdated):

      • Privacy Guides Badge
      • PrivSec Badge
    • Arch Linux Wiki Security Section

      • Arch Wiki Badge

    Guiding Principles

    Rapidly updating OS with Secure Boot support and large backing, but hardened against breakage, which means either:

    • BTRFS root, with snapper and grub2-btrfs packages installed
    • Immutable Operating Systems, with rapid updating model

    Heavy referencing of ChromeOS’ design decisions was made in order to choose hardening flags.

    Security Additions

    • Kernel Lockdown in Confidentiality Mode (lockdown=confidentiality)
      • Disables kexec, bpf, debugfs, enforces Kernel Module signing with Secure Boot.

    […] (More to be written in the future)

    Back to the Top Badge

    Visit original content creator repository https://github.com/HenryRabelo/linux-security
  • linux-security

    Linux Security Configurations

    A list of security configurations for Linux installations.

    Linux Badge Settings Badge

    Intro Badge Intro Badge Intro Badge Intro Badge

    Introduction

    This is a personal repository of shell scripts and configuration files for various Linux installations, which harden and up various aspects of the security for those systems. This repository will include scripts for system hardening & for other tools which warrant it.

    This is not an exhaustive listing of all the security configurations used at any given time, as more tunings are made depending on the installation.

    How to Run it

    Simply give execution permissions & run the shell script with the select configuration, located at the root directory of the repository:

    cd linux-security
    
    chmod +x $(pwd)/security.sh
    $(pwd)/security.sh

    How to Use it

    Run the shell script that sets the desired configuration and reboot the computer after a successful run. Always vet the commands run by shell scripts downloaded from the internet and non-official repositories before running them.

    The scripts are meant to be set-and-forget, and as such minimal interaction is necessary.

    About Security

    Sources

    Security information was gathered from a range of sources, mainly:

    • Kicksecure Security and GrapheneOS Infrastructure Repositories; Wiki and User Forums:

      • Secureblue Badge
      • Kicksecure Badge
      • GrapheneOS Badge
    • Privacy Guides’ and PrivSec Hardening Guides (Madaidan’s Insecurities referenced, but it is outdated):

      • Privacy Guides Badge
      • PrivSec Badge
    • Arch Linux Wiki Security Section

      • Arch Wiki Badge

    Guiding Principles

    Rapidly updating OS with Secure Boot support and large backing, but hardened against breakage, which means either:

    • BTRFS root, with snapper and grub2-btrfs packages installed
    • Immutable Operating Systems, with rapid updating model

    Heavy referencing of ChromeOS’ design decisions was made in order to choose hardening flags.

    Security Additions

    • Kernel Lockdown in Confidentiality Mode (lockdown=confidentiality)
      • Disables kexec, bpf, debugfs, enforces Kernel Module signing with Secure Boot.

    […] (More to be written in the future)

    Back to the Top Badge

    Visit original content creator repository https://github.com/HenryRabelo/linux-security
  • vsconan

    VSConan – Conan Extension for Visual Studio Code

    Marketplace VSConan Build and Test Rating Install Download GitHub stars License: MIT Donate

    VS Code Windows Linux Mac OS

    Introduction

    The VSConan extension helps you manage the conan local cache on your machine. It gives you easy access to your local cache and allows you to manage it by using integrated explorer in the Visual Studio Code without typing a single line of command in the terminal. VSConan provides variety of features, including a quick overview of installed packages, renaming and duplicating profiles, enabling and disabling remotes and more. For more information see Extension Features.

    Recording of VSConan Explorer

    Prerequisites

    1. Python with conan installed using pip
    2. Conan installed on your system using alternative installations

    How To Start

    VSConan contributes to official VS Code configurations (settings.json), where you can configure the environment to use this extension. As a starting point you can configure following settings, that are the core settings and provide you a high flexibility to use this extension:

    • vsconan.conan.profile.configurations
      In this section of settings you can store multiple configuration profiles, that contain necessary information to use conan from your system. Let’s take a look at the following example:

      "vsconan.conan.profile.configurations": {
          "foo": {
              "conanVersion": "1",
              "conanPythonInterpreter": "/home/user/.venv2/bin/python",
              "conanExecutable": "/home/user/.venv2/bin/conan",
              "conanExecutionMode": "pythonInterpreter",
          },
          "bar": {
              "conanVersion": "2",
              "conanPythonInterpreter": "python",
              "conanExecutable": "conan",
              "conanExecutionMode": "conanExecutable",
              "conanUserHome": "/home/user/workspace/bar/.conan2"
          }
      }

      In the example above, we defined the foo and bar profile to start using this extension. Each profile has different configuration for the python interpreter and the conan executable. One thing that we notice here is that we can select the conan version, we want to use, 1 or 2. This information is crucial for the extension in order to get the correct API.

      NOTE: Make sure you combine the conanVersion and its binary accordingly. Otherwise it will have strange behaviours or things might even not work properly.

      Using conanUserHome we can overwrite the current conan user home directory. This attribute is optional and has default value of null. In the example of foo, conanUserHome is not defined, which means that the conan user home directory uses the default path or predefined environment variable (See Environment Variables).

    • vsconan.conan.profile.default
      After defining foo and bar profiles, now it is time for us to choose which configuration we want to use currently.

      "vsconan.conan.profile.default": "foo"

    Extension Features

    The VSConan extension contains two major groups of features, one of them is the Conan Explorer, where you can use to manage your local cache, and the other one is Conan Workspace, where you can save your configuration of different conan flow commands in your VSCode workspace.

    Conan Explorer

    Recording of VSConan Explorer

    The VSConan extension contributes a Conan Explorer view to VS Code. The Conan Explorer lets you examine and manage important assets of your conan local cache, such as recipe, binary packages, profile and remote.

    Conan Recipe

    In the Conan Recipe explorer you can have an overview of the installed conan recipe in your local cache.

    As you can see in the picture above, there are several inline options on each item in the treeview.

    • Information
      Open a web view in VS Code editor, that contains information about this selected recipe. Currently the web view only shows a plain JSON text, that is obtained from the Conan CLI.
    • Open in Explorer
      Open the the recipe path in the explorer
    • Open in VS Code
      Open the selected recipe in a new VS Code window
    • Remove
      Remove the selected recipe

    Conan Binary Package

    By selecting the recipe, the corresponded binary packages will be shown in this treeview.

    Each item of this treeview has following options to offer:

    • Open in Explorer
      Open the selected binary package in the explorer
    • Open in VS Code
      Open the selected binary package in a new VS Code window
    • Remove
      Remove the selected binary package

    Conan Profile

    All the profiles that you saved on your machine will be listed in this explorer. By pressing + button on top right corner of the treeview, you can create a new empty profile.

    As the other treeviews, each item of this treeview contains several functionalities:

    • Edit
      Open the selected profile in the VS Code editor
    • Open in Explorer
      Open the selected profile in the file explorer
    • Rename
      Rename the selected profile
    • Duplicate
      If you want to change a small detail from a certain profile but you do not want to lose the original profile, we provide you this duplicate option to fulfill your purpose.
    • Remove
      Remove the selected profile

    Conan Remote

    Finally we come to the last part of this explorer, which is the explorer of the conan remote.
    The explorer itself provides you following options:

    • Edit
      Since the collection of remotes in conan is defined in one file called remotes.json, this option is not available of each remote item in the treeview. This will open remotes.json file in the VS Code editor instead.
    • Add
      Add a new remote

    As other treeview, each item is equipped with several options, that you can use to maintain your remotes.

    • Rename Remote
      Rename the selected remote
    • Update URL
      Modify the URL in the selected remote
    • Enable Remote
      Enable the selected remote. Enabled remotes can be seen from the icon next to the remote name. The remote conancenter in the picture above is enabled.
    • Disable Remote
      Disable the selected remote. Disabled remotes can be seen from the icon next to the remote name. The remote anyOtherRemote in the picture above is disabled.
    • Remove Remote
      Remove the selected remote

    Conan Workspace

    The Conan Workspace feature provides you configuration file, that can be used to execute predefined conan flow command and its arguments. The configuration will be stored under .vsconan folder in your workspace.
    If you work a lot with conan and use VS Code as your IDE, this feature can be really beneficial for you. It can spare you some seconds by avoiding to type same command, maybe with different arguments in your terminal over and over again. Instead you can save the command that you want to execute in the configuration and reuse in the next execution. In addition to that, the configuration file is reusable, and can be distributed to other people, if you work in a team.

    Recording of VSConan Workspace

    VSConan Extension will detect your workspace as conan workspace, if it contains a conanfile.py or conanfile.txt, and will a show dialog box as following

    If you choose yes, VSConan will generate a default configuration file in your workspace to start with.
    If you want to configure your workspace manually, we also provide you possibility to create a default configuration file using VS Code command VSConan: Create Workspace Configuration (JSON).

    Currently supported conan command for configuration file:

    • create
    • install
    • build
    • source
    • package
    • export-pkg

    The execution of the conan command will be done by the interpreter / conan executable from the profile that you selected. This configuration can be used for Conan version 1 and 2.

    The default configuration file can be seen as following. You can extend the list of each command to have different name, description, user, channel and many other details.

    {
      "commandContainer": {
        "create": [
          {
            "name": "create",
            "description": "Create command",
            "detail": "Create command detail",
            "conanRecipe": "conanfile.py",
            "profile": "default",
            "user": "",
            "channel": "",
            "args": []
          }
        ],
        "install": [
          {
            "name": "install",
            "description": "Install command",
            "detail": "Install command detail",
            "conanRecipe": "conanfile.py",
            "installFolder": "install",
            "profile": "default",
            "user": "",
            "channel": "",
            "args": []
          }
        ],
        "build": [
          {
            "name": "build",
            "description": "Build command",
            "detail": "Build command detail",
            "conanRecipe": "conanfile.py",
            "installFolder": "install",
            "buildFolder": "build",
            "packageFolder": "package",
            "sourceFolder": "source",
            "args": []
          }
        ],
        "source": [
          {
            "name": "source",
            "description": "Source command",
            "detail": "Source command detail",
            "conanRecipe": "conanfile.py",
            "installFolder": "install",
            "sourceFolder": "source",
            "version": "",
            "user": "",
            "channel": "",
            "args": []
          }
        ],
        "pkg": [
          {
            "name": "pkg",
            "description": "Package command",
            "detail": "Package command detail",
            "conanRecipe": "conanfile.py",
            "installFolder": "install",
            "buildFolder": "build",
            "packageFolder": "package",
            "sourceFolder": "source"
          }
        ],
        "pkgExport": [
          {
            "name": "pkg_export",
            "description": "Package export command",
            "detail": "Package export command detail",
            "conanRecipe": "conanfile.py",
            "installFolder": "install",
            "buildFolder": "build",
            "packageFolder": "package",
            "sourceFolder": "source",
            "user": "",
            "channel": "",
            "args": []
          }
        ]
      }
    }

    Application of Conan’s buildEnv/runEnv (currently Conan 2 only)

    VSConan provides the commands

    • VSConan: Activate BuildEnv
    • VSConan: Activate RunEnv
    • VSConan: Deactivate BuildEnv/RunEnv

    to adjust VSCode’s process and terminal environment to the respective Conan environment.

    This is useful if you have tool dependencies in your Conanfile, e.g. CMake, a specific Compiler toolchain, etc and want to use these tools also in VSCode, e.g. the CMake Extension.

    A note if using the Python extension in parallel

    The Python extension overrides the PATH environment variable to add the currently selected Python interpreter. In order to use PATH modifications by Conan BuildEnv/RunEnv the VSConan extension provides the option to generate a .env-file which is respected by the Python extension.

    This option is enabled by default and can be managed by vsconan.conan.env.dotenv.

    Additional Support Features

    • VSConan: Create Workspace Configuration (JSON)
      Create workspace configuration file
    • VSConan: Open Workspace Configuration (JSON)
      Open the workspace configuration file in the editor

    Further information of current supported features is available here.

    Release Notes

    Detailed release notes are available here.

    Contributing

    See the contribution guidelines for ideas and guidance on how to improve the extension.

    Code of Conduct

    See Code of Conduct.

    Donation

    If this extension is useful and can save some of your time during your productive day, I would really appreciate a cup of coffee to keep me awake to continue developing this extension.

    Credits

    Demonstration video for GIF was recorded using Chronicler.

    License

    MIT

    Visit original content creator repository https://github.com/afri-bit/vsconan
  • rs-ucan

    This is a Rust library to help the next generation of web applications make use of UCANs in their authorization flows. To learn more about UCANs and how you might use them in your application, visit https://ucan.xyz or read the spec.

    Outline

    Crates

    Building the Project

    • Clone the repository.

      git clone https://github.com/ucan-wg/rs-ucan.git
    • Change directory

      cd rs-ucan
    • Build the project

      cargo build

    Testing the Project

    • Run tests

      cargo test

    Contributing

    Pre-commit Hook

    This library recommends using pre-commit for running pre-commit hooks. Please run this before every commit and/or push.

    • Once installed, Run pre-commit install to setup the pre-commit hooks locally. This will reduce failed CI builds.
    • If you are doing interim commits locally, and for some reason if you don’t want pre-commit hooks to fire, you can run git commit -a -m "Your message here" --no-verify.

    Conventional Commits

    This library lightly follows the Conventional Commits convention to help explain commit history and tie in with our release process. The full specification can be found here. We recommend prefixing your commits with a type of fix, feat, docs, ci, refactor, etc…, structured like so:

    <type>[optional scope]: <description>
    
    [optional body]
    
    [optional footer(s)]
    

    Getting Help

    For usage questions, usecases, or issues reach out to us in our rs-ucan Discord channel.

    We would be happy to try to answer your question or try opening a new issue on Github.

    License

    This project is licensed under the Apache License 2.0.

    Visit original content creator repository https://github.com/ucan-wg/rs-ucan
  • Lattice-Transformer-SLU

    Adapting Pretrained Transformer to Lattices for Spoken Language Understanding

    Paper

    This repo contains source code of our ASRU 2019 paper “Adapting Pretrained Transformer to Lattices for Spoken Language Understanding

    Requirements

    • Python >= 3.6

    Required python packages are listed in requirements.txt.

    Dataset

    Unfortunately, we are not allowed to redistribute the dataset(ATIS). The dataset needs to be obtained from LDC

    Preprocess

    Convert lattices to PLF format

    We use the PLF format lattices, you can use this script to convert Kaldi lattices to PLF format

    https://github.com/noisychannel/phrase_speech_translation/blob/master/asr_util/kaldi2FST.sh

    Create dataset

    python3 preproc-lattice.py [-h] dataset_file lattice_file out_file
    
    • dataset_file: csv file with fields id, text, labels. The id field should match with the utterance ids.
    • lattice_file: PLF lattice generated from the above script.
    • out_file: output filename.

    Training

    Sample usage:

    python3 run_openai_gpt_atis_lattice.py
        --train_dataset <train_csv_file>
        --eval_dataset <eval_csv_file>
        --model_name openai-gpt
        --output_dir <output_dir>
        --do_train --do_eval
        --task <intent/slot>
        --num_train_epochs 5
        --attn_bias
        --probabilistic_masks
    
    • probabilistice_masks: Whether to use probabilistic_masks. Binary masks will be used if not set.
    • linearize: linearize lattices.

    Reference

    Please cite the following paper

    @inproceedings{
        huang2019adapting,
        title={Adapting Pretrained Transformer to Lattices for Spoken Language Understanding},
        author={Chao-Wei Huang and Yun-Nung Chen},
        booktitle={2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)},
        year={2019},
        organization={IEEE}
    }
    

    Visit original content creator repository
    https://github.com/MiuLab/Lattice-Transformer-SLU

  • FieldCreator.TyCorcoran

    FieldCreator.TyCorcoran

    XrmToolbox plugin used to bulk create Microsoft Dynamics fields via CSV import.

    For more information on how to use this tool please see:
    https://tldr-dynamics.com/blog/field-creator

    [1] Download the import template

    Import template contains sample data for reference. For first-time users, I would recommend reviewing the Readme tab as it will outline important details such as what is required for import. Details also listed below:

    Field Comments
    Field Type Required; Can only use types available in drop-down
    Entity (schema name) Required
    Field Label Required; please note character limit in tooltip
    Field Schema Name Required; please note character limit in tooltip
    Required Level Required; Can only use types available in drop-down
    Solution Unique Name Required
    Description Non-required; Please note character limit in tooltip
    Audit Enabled Non-required
    Max Length (single line of text) Non-required
    Max Length (multiple lines of text) Non-required
    Max Value (Whole Number) Non-required
    Min Value (Whole Number) Non-required
    Option Set Type Required for Field Type “Option Set”
    Option Set Values Required for Field Type “Option Set”
    New Global Option Set Display Name Required for New Global Option Set type
    New Global Option Set Schema Name Required for New Global Option Set type (lowercase)
    Existing Global Option Set Schema Name Required for Existing Global Option Set type (lowercase)
    Precision Non-required; Default is 2
    Referenced Entity Required for lookups; Must be schema name of entity
    One > N Relationship Schema Name Required for lookups; Must be schema name of entity

    Furnish the template with your data and save as a csv.

    [2] Upload CSV

    Browse and select the location of your import template csv.

    [3] Submit and review results

    Upon submission you will be provided updates as attributes are processed. All errors and successes will be logged and exportable once the job is complete.

    If you would like to resubmit, hit refresh and start again.

    Visit original content creator repository
    https://github.com/tcorcor1/FieldCreator.TyCorcoran