Skip to content

Instantly share code, notes, and snippets.

View atasky's full-sized avatar
👀
I may be slow to respond.

ataSky atasky

👀
I may be slow to respond.
View GitHub Profile
@atasky
atasky / Python3.9 on ubuntu22.04 Jammy
Created August 16, 2024 19:34 — forked from basaks/Python3.9 on ubuntu22.04 Jammy
Python3.9 on ubuntu22.04 Jammy
## Install Python3.9 interpreter on ubuntu 22.04
On a terminal just do the following steps:
Install dependencies:
sudo apt install tar build-essential checkinstall libreadline-dev \
libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \
libbz2-dev openssl libffi-dev
@atasky
atasky / Readme.md
Last active July 28, 2024 16:45 — forked from Amar-Chaudhari/Readme.md
Install PHP-5.6.38 from source

Install Requirments

yum install bzip2-devel curl-devel libjpeg-devel libpng-devel freetype-devel libxml2-devel libc-client-devel libmcrypt-devel -y
or
zypper install 

Download Package

cd /tmp
wget -O php-5.6.38.tar.gz http://pl1.php.net/get/php-5.6.38.tar.gz/from/this/mirror
tar -zxvf php-5.6.38.tar.gz
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
@atasky
atasky / .zshrc
Created August 28, 2023 21:53 — forked from Anon-Exploiter/.zshrc
.zshrc of Kali Linux 2020.3 including the lit prompt
# ~/.zshrc file for zsh non-login shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt ksharrays # arrays start at 0
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
@atasky
atasky / convert_latin1_data_in_a_utf8_mysql_database_to_utf8mb4.php Convert MySQL Database (tables and data) to UTF8MB4, where UTF8 data stored via latin1 connection
<?php
/**
* Requires php >= 5.5
*
* Use this script to convert utf-8 data in utf-8 mysql tables stored via latin1 connection
* This is a PHP port from: https://gist.github.com/njvack/6113127
*
* BACKUP YOUR DATABASE BEFORE YOU RUN THIS SCRIPT!
*
* Once the script ran over your databases, change your database connection charset to utf8:
@atasky
atasky / fixwrongutf8encoding.php
Created May 5, 2023 12:43 — forked from kasperkamperman/fixwrongutf8encoding.php
Function to fix ut8 special characters displayed as 2 characters (utf-8 interpreted as ISO-8859-1 or Windows-1252)
<?php header('Content-Type: text/html; charset=utf-8'); ?>
<html>
<head>
<title>Fix wrong encoded UTF8 characters</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
</head>
<body>
<pre>
<?php
/* Problem description:
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
reboot
MAKE SURE SELINUX IS DISABLED running the next command
sestatus
yum -y update
yum -y groupinstall core base "Development Tools"
yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel
cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz

This is a collection of Ubuntu fixes for Lenovo Legion 5i

Tested on: Lenovo Legion 5i with below specs:
AMD® Ryzen 7 4800h with radeon graphics × 16
NVIDIA Corporation / NVIDIA GeForce RTX 2060/PCIe/SSE2

1. GPU ISSUES for RTX 2060:

nvidia-driver-470 - HDMI doesn't have to work from the beggining
nvidia-driver-495 - HDMI works from the beginning, unstable (random reboots)\

@atasky
atasky / Vicidialdebianwheezyscratch
Created July 28, 2020 12:40 — forked from wheezydial/Vicidialdebianwheezyscratch
Install Vicidial from scratch on Debian Wheezy with xtables Geoip and 1000 Hz Realtime Kernel
Tom Barthel`s Vicidial on Debian Wheezy 7.5 Scratch install
This Tutorial is testet on a 5 Dollar KVM VPS on http://www.vultr.com/?ref=6804483
Vultr is great for testing. you can set up a Vicidial server from scratch or
Vicibox in shortest time. On 4 Continents total of 12 cities.
For production use, please use a dedicated server, for example,
of www.ovh.com My customer number is bt81421-ovh you can specify
when ordering., then I get a small commission
@atasky
atasky / proxy.php
Created February 5, 2020 03:20 — forked from magicdude4eva/proxy.php
proxyrotator
<?php
// Get API key from https://www.proxyrotator.com/
$url = 'http://venus.proxyrotator.com/?apiKey=' . $apikey;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$response = curl_exec($ch);
curl_close($ch);