Skip to content

Instantly share code, notes, and snippets.

# base
sql server
sql server management studio (ssms)
Q: what is the sql server edition
SQL2019-SSEI-Eval.exe (evaluate)
SQL2019-SSEI-Dev.exe (developer)
SQL2019-SSEI-Expr.exe (express)
=> ref: https://www.microsoft.com/en-us/sql-server/sql-server-downloads
# python installation
there are two useful things
1. documentation
2. py launcher
=> ref: https://www.bilibili.com/video/BV1q7411W79G
NOTE: py launcher (switch multi python versions)
py -h
py -0 // -0 <=> --list
py -0p // -0p <=> --list-paths
# base
# config
<some-folder>/.git/config // local
%USERPROFILE%/.gitconfig // global
%GIT_HOME%/etc/gitconfig // system
# concept
-> add -> commit -> push
# base
javac (java compiler)
java
# javac
javac -version
javac -help
javac xxx.java // compile to xxx.class
# java
# directory & file
app // include Console, Events, Exceptions, Http (Controllers/Middleware), Jobs, Listeners, Models, Providers
bootstrap/app.php // instantiate lumen application
config // default: vendor/laravel/lumen-framework/config (include app.php, auth.php, logging.php ...)
public/index.php // there is a .htaccess in the same level
routes/web.php
vendor // dependencies
.env // after loaded, get by function env($key, $default = null)
artisan // #!/usr/bin/env php
composer.json // like npm package.json
<?php // <?php is required
// helper
if (!function_exists('separator')) {
function separator($tag = 'TAG')
{
echo '------------ ' . $tag . ' ------------' . PHP_EOL;
}
}
#define _GNU_SOURCE
#include <sys/wait.h>
#include <sys/wait.h>
#include <sched.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#define STACK_SIZE (1024 * 1024)
# rvm
rvm list // list installed interpreters
rvm list known // list available interpreters
rvm install <version> // install ruby interpreter
rvm use <version> // switch to specified ruby interpreter
rvm remove <version> // remove ruby interpreter (alias: delete)
rvm get <version> // upgrade rvm: stable, master
ls -al ~/.rvm/
# ruby
# base
cri (container runtime interface)
cni (container network interface)
csi (container storage interface)
ipvs (ip virtual server)
oci (open container initiative)
nfs (network file system)
=> ref: https://zhuanlan.zhihu.com/p/33390023
=> ref: https://www.youtube.com/watch?v=Qw-6k95IBHU
# base
.csproj means a project
.sln means a solution
one solution can contain multi projects
Properties/launchSettings.json can contain multi profiles
# common
dotnet -h
dotnet --info // detail information
dotnet --version