Skip to content

Instantly share code, notes, and snippets.

View lynsei's full-sized avatar
:octocat:
Will code for food

Lynsei lynsei

:octocat:
Will code for food
View GitHub Profile
@lynsei
lynsei / error_handling_example.sh
Created September 26, 2023 16:52 — forked from pasela/error_handling_example.sh
[bash]error handling and error report example
#!/bin/bash
#
# error handling and error report example
#
set -e
# logfile
LOGFILE=`mktemp`
@lynsei
lynsei / ssh-key-generation.md
Created June 11, 2022 08:09 — forked from cybersamx/ssh-key-generation.md
Generate a new SSH key pair

Mac and Linux

  • Open Terminal

  • Check if you already have a SSH keypair generated. Do the following:

    $ ls -la ~/.ssh/id_rsa*
    

If the files exist, you already have SSH installed. IMPORTANT: But if you wish to regenerate the SSH key pair, at least back up your old SSH keys.

Everything You Need To Become A Machine Learner

Part 1:


Everything You Need To Become A Machine Learner

Part 1:

/*************
* ambush.js *
*************
*
* Oh. Oh, I see. This wasn't quite part of the plan.
*
* Looks like they won't let you take the Algorithm
* without a fight. You'll need to carefully weave your
* way through the guard drones.
*
@lynsei
lynsei / .leptonrc
Created December 24, 2021 04:13 — forked from LeanSeverino1022/.leptonrc
[Set lepton theme to dark] This is a template for Lepton's configuration file. Please place it on your home directory #config
{
"theme": "dark",
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4
@lynsei
lynsei / cholesky_decomposition.cpp
Created December 21, 2021 03:27 — forked from Yegorsh/cholesky_decomposition.cpp
Cholesky decomposition/Разложение Холецкого на C++
#include <iostream>
#include <cmath>
using namespace std;
void FillMatrix(double **matrix, const int size){
for (int i=0; i<size; i++){
for (int j=0; j<size; j++){
cout << "a[" << i+1 << "][" << j+1 << "] = ";
cin >> matrix[i][j];
}
@lynsei
lynsei / CMakeLists.txt
Last active December 20, 2021 23:54 — forked from mikilian/CMakeLists.txt
Modern C++ development with alpine linux, cmake, clang inside a docker container
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
# TODO: Implement GetText and LibINTL so I can figure out the blocker on LynsLang.
cmake_minimum_required(VERSION 3.18)
set(APP_NAME "example-app")
project("${APP_NAME}")
@lynsei
lynsei / Mac OS X: Open in Visual Studio Code
Created December 10, 2021 19:38 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"
#!/bin/bash
set -ex
sudo rm -rf /etc/docker/daemon.json || true
sudo rm -rf ${WORKSPACE}/go
export CRI_CONTAINERD="yes"
export CRI_RUNTIME="containerd"
export KATA_HYPERVISOR="qemu"
@lynsei
lynsei / README.md
Created December 7, 2021 03:43 — forked from typebrook/README.md
A bash script for gist management #bash #gist