Skip to content

Instantly share code, notes, and snippets.

View SofijaErkin's full-sized avatar
🎯
Focusing

Vittore Marcas SofijaErkin

🎯
Focusing
View GitHub Profile
@SofijaErkin
SofijaErkin / MongoDB_macOS_Sierra.md
Created December 4, 2021 12:37 — forked from nrollr/MongoDB_macOS_Sierra.md
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@SofijaErkin
SofijaErkin / mac-redis-cluster.md
Created December 8, 2021 06:36 — forked from ochim/mac-redis-cluster.md
Mac OS X で Redis Clusterを組む

開発環境

  • Mac:10.12.6
  • redis:4.0.0
  • ruby:2.0.0p648

1サーバで3台のRedis Clusterを作る(最低3台かららしい)

1.ディレクトリの用意

@SofijaErkin
SofijaErkin / nginx_config.md
Created December 9, 2021 10:59 — forked from Mioke/nginx_config.md
Mac OS下安装及配置nginx
@SofijaErkin
SofijaErkin / 0_reuse_code.js
Created December 9, 2021 12:32 — forked from WouterPeeters/0_reuse_code.js
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@SofijaErkin
SofijaErkin / install_nginx_macos_source.md
Created December 9, 2021 13:59 — forked from beatfactor/install_nginx_macos_source.md
Install Nginx on Mac OS from source (without brew)

Install Nginx on Mac OS from source

no Homebrew required

1. Download Nginx

$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz
@SofijaErkin
SofijaErkin / github_multiple-accounts.md
Created December 24, 2021 00:34 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@SofijaErkin
SofijaErkin / vs-code_gist.md
Created January 2, 2022 10:42 — forked from nuovotaka/vs-code_gist.md
Visual Studio Code でGitHub Gistを使ってみた

##Visual Studio Code でGitHub Gistを使ってみた(Mac)

先ずは、Extension の Installの方法 SHIFT + COMMAND + PもしくはView > Command Palette...Command Paletteを表示させたら >installと入力します。

ext_install

Install Extensionsが選択されてext install となりますので必要な語彙を入力してみましょう。 大概のものは用意されていると思います。

@SofijaErkin
SofijaErkin / gist:e1fa6a6040779c1bc9ed4c8e7d447c18
Created January 9, 2022 07:25 — forked from jrwren/gist:1925688
llvm gcc vs. Apple LLVM 3.0 (clang)
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (
#ifdef __clang__
strong,
#endif
nonatomic) UIWindow *window;
@end
@SofijaErkin
SofijaErkin / tutorial.md
Created January 20, 2022 11:32 — forked from UnaNancyOwen/tutorial.md
How to write CMakeLists

CMakeLists Tutorial

ここでは、基本的な設定スクリプト(CMakeLists.txt)の書き方を紹介します。
(主にVisual C++向けに説明します。)

Basic Uses

CMakeでC++のプロジェクトを生成するための最小限必要のスクリプトを説明します。

  • cmake_minimum_required
    CMakeの最小要求バージョンを設定します。