Skip to content

Instantly share code, notes, and snippets.

View HsimWong's full-sized avatar
🎯
Focusing

Ahmed Sayyid HsimWong

🎯
Focusing
  • California
  • 22:48 (UTC -07:00)
View GitHub Profile
#include<stdio.h>
int main(){
printf("hello world, I'm Dukang.\n");
return 0;
}
�%_د���3�'L'��g!�ma쀹t�AAw���P�7x%b�t�j��F�����X�:����4�&�Y۶��y=�Q>8
zi����5�\�:K�lF���4� ���gp���F�\y�(H0E��\�G�p�^�;�����O&w�~�<���Dz�U-W\���1���<�m���h�K�ɛ��%tT�ܸUe3�QRapture Automatic Signing Key (cloud-rapture-signing-key-2021-03-01-08_01_09.pub)��`=Y ��i0~�q
�{�Ic)�$\.k����g�#W����׏Hǹ�D��a��Y��OD&���� 0e�����;\�%�H��]�j�q�������+6L��#�}�4s�\FrÃqM�^����A��{f�Уv��z;q���9R��y��$[���&{�c��G<��lkh#��.^��8�>U��}3�h0C��)���͇fP1�
<��Fa=���Ü6��4�*�=��c.Z7
�Gg�^B~��v�P(K�mEy�ed�������X�2c���M`=�t���Z�u��d#K�{Ӊ�qAX�'$��R�<-$�h�V4�bq>���\�H��9f
J�ԙ|�cv�u/
��(��]�p���A��~m����JB�3���c���R�L�7�T7���_�X�x?�{����6�ւ�K]t]x���ƹK���.d"ɡ[����Om� ��}�u٪�+Iʰ����}-u���'��6��US�밖EwJNI�g&�#�)r+��"/`���⏴��G���Cr���0�����`=Y ��i0~�q
�������V�E�nᲳ���Y�Z��UNJ;�lUL<�Es�'n����Jv�i�:����!�0L|W�����Rw:
vr�Qnz#�>����
echo "Installing docker and its components\n"
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt install -y docker-ce
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
resize2fs /dev/vda1
growpart /dev/vda 1
@HsimWong
HsimWong / run.sh
Created January 19, 2020 08:53
Sample: Getting file list, number normalization
image_path="./images"
image_list=$(ls image_path)
for((i=1; i<=10; i++))
do
f="$(printf '%03d' $i)"
./test_jpeg_facedetect densebox_320_320 ${image_path}/$f.jpg
#mv facedetect_bb_output_12_0.bin ${f}_facedetect_bb_output_12_0.bin
#mv facedetect_pixel_conv_13_0.bin ${f}_facedetect_pixel_conv_13_0.bin
done
@HsimWong
HsimWong / terminal_head.sh
Created January 19, 2020 06:58
Hide full path at Ubuntu terminal
export PS1='[\[\e[32m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\]:\[\e[31m\]\W\[\e[m\]]#'