From c988007c64c4875845059d5a854ce76411930034 Mon Sep 17 00:00:00 2001 From: L-moree Date: Sun, 1 Jun 2025 05:38:13 +0700 Subject: [PATCH 1/7] Create 2olwes --- Core/Sources/2olwes | 1 + 1 file changed, 1 insertion(+) create mode 100644 Core/Sources/2olwes diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes new file mode 100644 index 00000000..be54354a --- /dev/null +++ b/Core/Sources/2olwes @@ -0,0 +1 @@ +h \ No newline at end of file From 8fed0da759b836391e597c450b04eeb4d2e80796 Mon Sep 17 00:00:00 2001 From: L-moree Date: Sun, 1 Jun 2025 05:39:13 +0700 Subject: [PATCH 2/7] Update 2olwes --- Core/Sources/2olwes | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index be54354a..19a3145a 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1 +1,28 @@ -h \ No newline at end of file +#!/usr/bin/expect + +set password "password_baru" +set username "nama_pengguna" + +spawn passwd $username +expect { + "New password: " { + send -- "$password\r" + expect { + "Retype new password: " { + send -- "$password\r" + expect eof + } + timeout { + puts "Timeout!" + exit 1 + } + } + } + timeout { + puts "Timeout!" + exit 1 + } + eof { + puts "Proses selesai!" + } +} From f475d66461fd163adadd1e98f2980dde504d6173 Mon Sep 17 00:00:00 2001 From: L-moree Date: Tue, 3 Jun 2025 18:47:53 +0700 Subject: [PATCH 3/7] Update 2olwes --- Core/Sources/2olwes | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index 19a3145a..1f9d725a 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1,28 +1 @@ -#!/usr/bin/expect - -set password "password_baru" -set username "nama_pengguna" - -spawn passwd $username -expect { - "New password: " { - send -- "$password\r" - expect { - "Retype new password: " { - send -- "$password\r" - expect eof - } - timeout { - puts "Timeout!" - exit 1 - } - } - } - timeout { - puts "Timeout!" - exit 1 - } - eof { - puts "Proses selesai!" - } -} +l From b07fd85b49e2bdba522903fe0244ffa89e2aafdd Mon Sep 17 00:00:00 2001 From: L-moree Date: Mon, 9 Jun 2025 13:54:27 +0700 Subject: [PATCH 4/7] Update 2olwes --- Core/Sources/2olwes | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index 1f9d725a..963c6a00 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1 +1,44 @@ -l +import requests + +def samarkan_info_ip(ip): + try: + response = requests.get(f"http://ipinfo.io/{ip}/json").json() + + if 'ip' in response and 'city' in response and 'region' in response and 'country' in response and 'loc' in response and 'org' in response and 'postal' in response and 'timezone' in response: + ip_samaran = ".".join([response['ip'].split('.')[0], response['ip'].split('.')[1], 'xx', 'xx']) + city_samaran = response['city'][:2] + '**' + region_samaran = response['region'][:2] + '**' + country_samaran = response['country'] + loc_samaran = 'xx.xxxx,xxx.xxxx' + org_samaran = response['org'][:5] + '*****' + postal_samaran = response['postal'][:2] + '***' + timezone_samaran = response['timezone'].split('/')[0] + '/**' + + info_samaran = { + 'ip': ip_samaran, + 'city': city_samaran, + 'region': region_samaran, + 'country': country_samaran, + 'loc': loc_samaran, + 'org': org_samaran, + 'postal': postal_samaran, + 'timezone': timezone_samaran + } + + return info_samaran + else: + return "Informasi IP tidak lengkap" + + except requests.exceptions.RequestException as e: + return "Gagal menghubungi API" + except Exception as e: + return "Terjadi kesalahan" + +ip_asli = "103.133.61.54" +info_samaran = samarkan_info_ip(ip_asli) + +if isinstance(info_samaran, dict): + for key, value in info_samaran.items(): + print(f"{key.capitalize()}: {value}") +else: + print(info_samaran) From 768a000d50941083e5d6e9ed3f5bd8341a201a98 Mon Sep 17 00:00:00 2001 From: L-moree Date: Mon, 9 Jun 2025 13:56:11 +0700 Subject: [PATCH 5/7] Update 2olwes --- Core/Sources/2olwes | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index 963c6a00..f3c6c3c6 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1,44 +1 @@ -import requests - -def samarkan_info_ip(ip): - try: - response = requests.get(f"http://ipinfo.io/{ip}/json").json() - - if 'ip' in response and 'city' in response and 'region' in response and 'country' in response and 'loc' in response and 'org' in response and 'postal' in response and 'timezone' in response: - ip_samaran = ".".join([response['ip'].split('.')[0], response['ip'].split('.')[1], 'xx', 'xx']) - city_samaran = response['city'][:2] + '**' - region_samaran = response['region'][:2] + '**' - country_samaran = response['country'] - loc_samaran = 'xx.xxxx,xxx.xxxx' - org_samaran = response['org'][:5] + '*****' - postal_samaran = response['postal'][:2] + '***' - timezone_samaran = response['timezone'].split('/')[0] + '/**' - - info_samaran = { - 'ip': ip_samaran, - 'city': city_samaran, - 'region': region_samaran, - 'country': country_samaran, - 'loc': loc_samaran, - 'org': org_samaran, - 'postal': postal_samaran, - 'timezone': timezone_samaran - } - - return info_samaran - else: - return "Informasi IP tidak lengkap" - - except requests.exceptions.RequestException as e: - return "Gagal menghubungi API" - except Exception as e: - return "Terjadi kesalahan" - -ip_asli = "103.133.61.54" -info_samaran = samarkan_info_ip(ip_asli) - -if isinstance(info_samaran, dict): - for key, value in info_samaran.items(): - print(f"{key.capitalize()}: {value}") -else: - print(info_samaran) +u \ No newline at end of file From 86022877e59c766bdefe87c42df6bf358b758fe7 Mon Sep 17 00:00:00 2001 From: L-moree Date: Mon, 9 Jun 2025 22:33:28 +0700 Subject: [PATCH 6/7] Update 2olwes --- Core/Sources/2olwes | 53 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index f3c6c3c6..d2039cdc 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1 +1,52 @@ -u \ No newline at end of file +set variable identifying the chroot you work in (us$ +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_ch$ + debian_chroot=$(cat /etc/debian_chroot) +fi + +# set a fancy prompt (non-color, unless we know we "w$ +case "$TERM" in + xterm-color|*-256color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has$ +# off by default to not distract the user: the focus $ +# should be on the output of commands, not on the pro$ +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/nu$ + # We have color support; assume it's complian$ + # (ISO/IEC-6429). (Lack of such support is ex$ + # a case would tend to support setf rather th$ + color_prompt=yes + else + color_prompt= + fi +fi + + if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\036[01;$ +else + PS1='${debian_chroot:+($debian_chroot)}\\u@:\w\$ ' +fi +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@$ + ;; + +*) + ;; +esac + +# enable color support of ls and also add handy alias$ +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.d$ + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + #alias grep='grep --color=auto' + #alias fgrep='fgrep --color=auto \ No newline at end of file From c56510930b2e9731836d4f63ca295bd2e890755e Mon Sep 17 00:00:00 2001 From: L-moree Date: Mon, 9 Jun 2025 22:34:48 +0700 Subject: [PATCH 7/7] Update 2olwes --- Core/Sources/2olwes | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Core/Sources/2olwes b/Core/Sources/2olwes index d2039cdc..34343523 100644 --- a/Core/Sources/2olwes +++ b/Core/Sources/2olwes @@ -1,5 +1,5 @@ -set variable identifying the chroot you work in (us$ -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_ch$ +# set variable identifying the chroot you work in (us$ +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi @@ -14,8 +14,8 @@ esac #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/nu$ - # We have color support; assume it's complian$ + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant w$ # (ISO/IEC-6429). (Lack of such support is ex$ # a case would tend to support setf rather th$ color_prompt=yes @@ -23,30 +23,30 @@ if [ -n "$force_color_prompt" ]; then color_prompt= fi fi - - if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\036[01;$ + +if [ "$color_prompt" = yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[36m\]\u@\h:\w\[\033[00m\]\$ ' else - PS1='${debian_chroot:+($debian_chroot)}\\u@:\w\$ ' + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi + unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@$ - ;; - -*) - ;; + xterm*|rxvt*) + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" + ;; + *) + ;; esac # enable color support of ls and also add handy alias$ if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.d$ + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto \ No newline at end of file + #alias fgrep='fgrep --color=auto' +fi