Skip to content

Instantly share code, notes, and snippets.

View littlecxm's full-sized avatar
🏠
Working from home

CXM littlecxm

🏠
Working from home
View GitHub Profile
@littlecxm
littlecxm / πŸ“Š Weekly development breakdown
Last active December 2, 2022 00:58
πŸ“Š Weekly development breakdown
Vue.js 2 hrs 44 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 40.2%
Go 1 hr 10 mins β–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 17.3%
XML 33 mins β–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8.1%
PHP 31 mins β–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.8%
TypeScript 30 mins β–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 7.5%
@littlecxm
littlecxm / cloudSettings
Last active August 28, 2020 03:50
vscode_sync
{"lastUpload":"2020-08-28T03:50:07.943Z","extensionVersion":"v3.4.3"}
#!/bin/sh
# !!!!! run as sudo first
#Code reference by https://github.com/laravel/homestead/issues/610#issuecomment-430679914
PHP_MSSQL_DRIVERS=Ubuntu18-7.2
PDO_SQLSRV_VER=v5.6.1
# Download and extract phpmysql drivers
cd ~/
@littlecxm
littlecxm / test_ecb.go
Created September 17, 2018 09:19
test_ecb.go
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/md5"
"encoding/hex"
"fmt"
)
@littlecxm
littlecxm / ecb_aes_test.go
Last active September 17, 2018 09:20
ecb_aes_test.go
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// ECB AES test vectors.
// See U.S. National Institute of Standards and Technology (NIST)
// Special Publication 800-38A, ``Recommendation for Block Cipher
// Modes of Operation,'' 2001 Edition, pp. 24-29.
@littlecxm
littlecxm / ecb.go
Last active September 17, 2018 09:21
ecb.go
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Electronic Code Book (ECB) mode.
// ECB provides confidentiality by assigning a fixed ciphertext block to each
// plaintext block.
// See NIST SP 800-38A, pp 08-09