There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
- http
- ssh
There are several ways to clone a repository from github. Similar from other providers, such as bitbucket, gitlab, etc.
https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
Mostly, we use
package aead | |
import ( | |
"crypto/aes" | |
"encoding/binary" | |
"errors" | |
"math/big" | |
) | |
var _mod = big.NewInt(0) |
function pwdx { | |
lsof -a -d cwd -p $1 -n -Fn | awk '/^n/ {print substr($0,2)}' | |
} |
const forge = require('node-forge'); | |
forge.options.usePureJavaScript = true; | |
class Field { | |
static _MOD = [0n, 121n, 126n, 127n, 128n].map(i => 1n << i).reduce(((previousValue, currentValue) => previousValue + currentValue)); | |
static _INV = [0n, 114n, 121n, 124n, 127n].map(i => 1n << i).reduce(((previousValue, currentValue) => previousValue + currentValue)); | |
static add(x, y) { | |
return x ^ y; | |
} |
[tool.poetry] | |
name = "test" | |
version = "0.1.0" | |
description = "" | |
authors = ["sify21 <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = ">=3.6,<4.0" | |
jsonschema = "^3.2.0" |
# build gcc toolchain targeting x86_64-linux-musl with https://github.com/richfelker/musl-cross-make | |
# don't use master branch which uses musl v1.2.1(the new malloc implementation has deadlock problems, v1.2.2 fixes it, v1.2.0 doesn't have it) | |
cd ~ | |
git clone https://github.com/richfelker/musl-cross-make -b v0.9.9 | |
cd musl-cross-make | |
cp config.mak.dist config.mak | |
# edit config.mak: TARGET = x86_64-linux-musl | |
# edit cowpatch.sh to fix an error, add "OPTIND=1" after line 56. see https://github.com/richfelker/musl-cross-make/issues/86 | |
# ensure you have g++, on fedora it's "dnf install gcc-c++" | |
make -j`nproc` |
#[cfg(test)] | |
mod test { | |
use casbin::{CoreApi, DefaultModel, Enforcer, MemoryAdapter, MgmtApi}; | |
use serde::{Deserialize, Serialize}; | |
#[derive(Debug, Serialize, Deserialize, Clone, Default)] | |
pub struct Claims { | |
pub id: i64, | |
pub username: String, | |
pub resources: Vec<String>, |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func init() { | |
log.SetFlags(log.Lshortfile) |