Skip to content

Instantly share code, notes, and snippets.

void main() {
var d = new DateTime.now();
print(d.toUtc().toIso8601String());
}
@fat4lix
fat4lix / encoder.go
Last active September 8, 2022 10:26
Encoder package fo GO
package encoder
import (
"crypto/aes"
"crypto/cipher"
"crypto/hmac"
"crypto/rand"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
<?php
namespace Velodrive\Console\Commands;
use Illuminate\Console\Command;
class NotifyBirthday extends Command
{
@fat4lix
fat4lix / example.go
Created November 5, 2019 16:06
Example policies
package permission
import (
"context"
)
var store PolicyStore
func init() {
<?php
abstract class Action
{
/**
* Slug name for action
* @return string
*/
abstract public static function name();
/** Title for action
@fat4lix
fat4lix / token.go
Last active September 9, 2019 17:43
package auth
import (
"crypto/rsa"
"errors"
"fmt"
"golang.org/x/crypto/ssh"
"gopkg.in/square/go-jose.v2"
"gopkg.in/square/go-jose.v2/jwt"
"io/ioutil"
###########################################################
###################### General Setup ######################
###########################################################
### Paths #################################################
# Point to the path of your applications code on your host
APP_CODE_PATH_HOST=../
# Point to where the `APP_CODE_PATH_HOST` should be in the container
server {
listen 80 default;
server_name shop.streamity.test;
charset utf-8;
root /var/www;
index index.php index.html bitrixsetup.php;
client_max_body_size 1024m;
import axios from 'axios';
import VueAxios from 'vue-axios';
import Vue from 'vue';
import {authService} from '@/store/modules/auth.module';
import {REFRESH_TOKEN_ENDPOINT} from '@/constants/endpoints';
import {LoginResponse} from '@/types/auth';
Vue.use(VueAxios, axios);
axios.interceptors.request.use((request) => {