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 / 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
@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 / test_ecb.go
Created September 17, 2018 09:19
test_ecb.go
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/md5"
"encoding/hex"
"fmt"
)
#!/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 / cloudSettings
Last active August 28, 2020 03:50
vscode_sync
{"lastUpload":"2020-08-28T03:50:07.943Z","extensionVersion":"v3.4.3"}
@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 / I'm a night 🦉
Last active December 2, 2022 01:43
Are you an early 🐤 or a night 🦉
🌞 Morning 46 commits █▋░░░░░░░░░░░░░░░░░░░ 8.1%
🌆 Daytime 208 commits ███████▋░░░░░░░░░░░░░ 36.7%
🌃 Evening 204 commits ███████▌░░░░░░░░░░░░░ 36.0%
🌙 Night 108 commits ████░░░░░░░░░░░░░░░░░ 19.1%
@littlecxm
littlecxm / main.go
Created September 14, 2021 05:12 — forked from mholt/main.go
Example of run an interactive process on the current user from system service on windows (Golang)
package main
import (
"github.com/kardianos/service"
"log"
"flag"
)
type Service struct {}
@littlecxm
littlecxm / build-pocketvj.md
Created December 9, 2021 03:58 — forked from baydam/build-pocketvj.md
How to build PocketVJ on Raspberry Pi 3

Documentation for building PocketVJ on raspberry Pi 3

Install Raspbian Lite

Find the instruction in the link below https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Install dependencies

$ sudo apt-get -y install lxde-core lxterminal lxappearance xinit lightdm ntfs-3g python-pexpect vim figlet git-core firmware-ralink hostapd isc-dhcp-server lighttpd samba samba-common-bin php5-common php5-cgi php5 php5-mysql screen fbi ttf-mscorefonts-installer mediainfo gparted php5-cli iptables xtightvncviewer imagemagick dosfstools exfat-utils exfat-fuse hfsplus hfsprogs hfsutils xdotool expect expect-dev avahi-daemon libavahi-compat-libdnssd-dev feh libjpeg8 libjpeg8-dev libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl python-smbus mpg321 mpg123 libreoffice-impress rc-gui python-pip iceweasel python-dev python-dbus xpdf x11-xserver-utils libncurses5-dev shellinabox tk okular usbmount libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstr
@littlecxm
littlecxm / private_fork.md
Created July 25, 2022 05:57 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git