Skip to content

Instantly share code, notes, and snippets.

View XTechnology-TR's full-sized avatar
:shipit:
Focusing

xtechnology XTechnology-TR

:shipit:
Focusing
View GitHub Profile
@XTechnology-TR
XTechnology-TR / wordpress-checklist.md
Last active July 4, 2022 04:55 — forked from ramunasnognys/wordpress-checklist.md
Ultimate WordPress Checklist

WordPress Development Checklist

WordPress Setup Checklist

First things first. This first WordPress checklist will help you start out on the right foot when you start to create a WordPress website.

  • Purchase a domain name.
  • Purchase a hosting plan from a reputable hosting company that specializes in WordPress hosting.
  • Install the latest version of the WordPress software on your server.

Basic WordPress Development Checklist

The following developer WordPress checklist is a brief starting point. While there are a number of specific tasks that have to be done, everyone has their own way of doing things. Add to this list as you develop your own workflow.

  • Set up new domain in cPanel
@XTechnology-TR
XTechnology-TR / log.md
Created May 6, 2022 21:44 — forked from coralmw/log.md
Fedora 28 nvidia-docker

getting nvidia-docker installed on fedora:

  1. I had CUDA installed, with rpmfusion NVIDIA drivers (I think)
$ dnf list | grep nvidia
akmod-nvidia.x86_64                      3:396.54-1.fc28               @fedora-nvidia
cuda.x86_64                              1:9.2.148.1-2.fc28            @fedora-nvidia
cuda-cublas.x86_64                       1:9.2.148.1-2.fc28            @fedora-nvidia
cuda-cublas-devel.x86_64                 1:9.2.148.1-2.fc28            @fedora-nvidia
#!/usr/bin/env bash
# References:
#
# * <https://github.com/smvarela/fedora-postinstall>.
# * <https://mutschler.eu/linux/install-guides/fedora-post-install/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/basic-system-configuration/System_Locale_and_Keyboard_Configuration/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/>.
# * <https://wiki.archlinux.org/index.php/silent_boot>.
# * <https://rpmfusion.org/Howto/NVIDIA>.
@XTechnology-TR
XTechnology-TR / setup.md
Created June 8, 2022 11:31 — forked from akella/setup.md
My Setup
@XTechnology-TR
XTechnology-TR / minification.md
Created July 7, 2022 02:04 — forked from gaearon/minification.md
How to Set Up Minification

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal:

@XTechnology-TR
XTechnology-TR / localization.py
Created July 10, 2022 00:35 — forked from femioladeji/localization.py
Read the car image and convert it to binary
from skimage.io import imread
from skimage.filters import threshold_otsu
import matplotlib.pyplot as plt
car_image = imread("car.jpg", as_gray=True)
# it should be a 2 dimensional array
print(car_image.shape)
# the next line is not compulsory however, a grey scale pixel
# in skimage ranges between 0 & 1. multiplying it with 255

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@XTechnology-TR
XTechnology-TR / frontendDevlopmentBookmarks.md
Created December 8, 2022 02:33 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@XTechnology-TR
XTechnology-TR / awesm.md
Created December 8, 2022 03:35 — forked from matula/awesm.md
Awesome PHP stuff in one Gist