Skip to content

Instantly share code, notes, and snippets.

View teebow1e's full-sized avatar
💖
learning something..

Trung Tran teebow1e

💖
learning something..
View GitHub Profile
@teebow1e
teebow1e / run.sh
Last active August 6, 2024 09:01
Run a Ubuntu machine from Docker for testing purpose
#!/bin/sh
sudo docker pull ubuntu && sudo docker run -it --name ubuntucont $(sudo docker images ubuntu -q) /bin/sh
@teebow1e
teebow1e / guide.md
Last active July 24, 2024 18:30
[Project 1 - SoICT] Integrate Jenkins CI-CD with private Github Repository

Integrate Jenkins CI-CD with private Github Repository

This guide will be made text-only, I don't have any intention converting this into a video.

Warning

In order for any of these below methods to work, you MUST run your Jenkins instance on Linux.

Situation

You are doing a project with your partners, however, the official guide to Jenkins by HUST only supports public repository. How can I hide my code from other friends, who are trying to take some ideas from my code (they may copy my code LMAO)?

Step-by-step guide

@teebow1e
teebow1e / sendHex.sh
Created April 2, 2024 09:16
send not printable (multi-line) data to a server
#!/bin/bash
hexString=$1
echo
echo
echo -n "$1" | xxd -r -p
echo
echo
echo -n "$hexString" | xxd -r -p | nc xx.xx.xx.xx yyyy
@teebow1e
teebow1e / random.sh
Created February 16, 2024 11:52
create a 32-char random string (A-Za-z0-9)
cat /proc/sys/kernel/random/uuid | tr -d '-'
@teebow1e
teebow1e / ssh_setup.md
Last active June 30, 2025 06:24
Integrate SSH keys to GitHub for working with private repo (or personal access)
@teebow1e
teebow1e / gist:d57046db54337661b422706762bab24b
Created February 1, 2024 17:42
empty busybox docker container for fun
FROM busybox
COPY ./socat /bin/socat
COPY ./hello /bin/helloworld
WORKDIR /
RUN ["/bin/rm", "/bin/sh"]
ENTRYPOINT ["/bin/socat", "TCP-LISTEN:1337,fork,reuseaddr,bind=0.0.0.0", "EXEC:'/bin/helloworld'"]