Skip to content

Instantly share code, notes, and snippets.

View cybertramp's full-sized avatar
⌨️
work hard play hard!

cybertramp cybertramp

⌨️
work hard play hard!
View GitHub Profile
@cybertramp
cybertramp / Dockerfile-jenkins
Last active January 17, 2024 06:07
jenkins with Python 3.11 in Dockerfile
FROM jenkins/jenkins:lts
USER root
RUN mkdir -p /tmp/python_build && \
apt update && \
apt-get install -y \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
@cybertramp
cybertramp / agnoster.theme.sh
Created December 29, 2022 01:24
oh-my-bash remove hostname
##
## You can remove display hostname partion
##
## Path: ~/.oh-my-bash/themes/agnoster/agnoster.theme.sh
##
## modify prompt_context() function
##
prompt_context() {
local user=$(whoami)
@cybertramp
cybertramp / tmux_sample.sh
Created December 21, 2022 07:02
bash: make tui with tmux
#!/bin/bash
###
### This is tmux using sample.
### 2022.12.21 cybertramp(paran_son@outlook.com)
###
## PRECONFIG
COMMAND_TMUX=tmux
TMUX_NAME=runner
@cybertramp
cybertramp / csv_to_xlsx.py
Created February 25, 2021 10:58
csv to xlsx convert code
#!/usr/bin/python3
import pandas as pd
import numpy as np
import glob
import sys
from openpyxl import Workbook
import os
import csv
path = "./"
@cybertramp
cybertramp / utils.js
Last active September 11, 2020 08:39
[JS] ISO8601 to YYYY-MM-DD hh:mm:ss convert function
/*
paran_son@outlook.com
INPUT FORMAT EXAMPLE: 2013-07-16T19:00:00Z
OUTPUT FORMAT EXAMPLE: 2013-07-76 19:00:00
*/
datetimeConvert(_iso8601_datetime) {
if (_iso8601_datetime == null) {
return "";
@cybertramp
cybertramp / settings.json
Created July 30, 2020 05:06
Windows Terminal settings.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"profiles":
@cybertramp
cybertramp / source.list
Created July 29, 2020 07:47
ubuntu 20.04 LTS repolist
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@cybertramp
cybertramp / numberOfNameServer.sh
Last active June 15, 2020 13:07
Find the number of name servers.
#!/bin/bash
########################################
# 네임서버 개수 출력 스크립트
########################################
for file in /etc/*
do
if [ "${file}" == "/etc/resolv.conf" ]
then
countNameservers=$(grep -c nameserver /etc/resolv.conf)
echo "Total :${countNameservers} nameservers defined in ${file}"
@cybertramp
cybertramp / remove_spacevim.sh
Created May 28, 2020 09:37
remove script for spacevim
#!/usr/bin/env bash
curl -sLf https://spacevim.org/install.sh | bash -s -- --uninstall
@cybertramp
cybertramp / .bashrc
Last active February 13, 2020 01:24
bashrc file for me
# 맨 아래 붙여 넣을것.
# Paste to bottom.
export PS1="[`hostname`]\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ "