Skip to content

Instantly share code, notes, and snippets.

View applicato's full-sized avatar

applicato

  • Ireland
View GitHub Profile
@applicato
applicato / unixToolbox.md
Created February 18, 2024 02:55 — forked from AndersonFirmino/unixToolbox.md
Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.

#Unix Toolbox

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.

##Unix Toolbox revision 14.4

The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version and with .book.pdf for the booklet version. On a duplex printer the booklet will create a small book ready to bind. This XHTML page can be converted into a nice PDF document with a CSS3 compliant application (see the script example). See also the about page.
Error reports and comments are m
This file has been truncated, but you can view the full file.
rss.php
coupon_activation.php
tools/bizproc_wf_settings.php
tools/seo_yandex.php
tools/seo_google.php
tools/get_catalog_menu.php
tools/sale_farm_check_print.php
tools/vote/uf.php
tools/vote/vote_chart.php
tools/sale/discount_coupon_list.php
@applicato
applicato / pilimi-chinese-torrent-list.txt
Created September 16, 2023 19:39 — forked from syhily/pilimi-chinese-torrent-list.txt
Filter the Chinese books that we need.
pilimi-zlib-420000-2379999.torrent
pilimi-zlib-2380000-2829999.torrent
pilimi-zlib-2830000-5239999.torrent
pilimi-zlib-5240000-5329999.torrent
pilimi-zlib-5330000-5359999.torrent
pilimi-zlib-5360000-5379999.torrent
pilimi-zlib-5380000-5449999.torrent
pilimi-zlib-5450000-5479999.torrent
pilimi-zlib-5480000-5499999.torrent
pilimi-zlib-5500000-5519999.torrent
@applicato
applicato / zc688.txt
Created September 16, 2023 19:39 — forked from syhily/zc688.txt
Calibre-Web 书籍下载地址
This file has been truncated, but you can view the full file.
http://zc688.top:20206/download/1/epub/1.epub
http://zc688.top:20206/download/2/epub/2.epub
http://zc688.top:20206/download/3/epub/3.epub
http://zc688.top:20206/download/4/epub/4.epub
http://zc688.top:20206/download/5/epub/5.epub
http://zc688.top:20206/download/6/epub/6.epub
http://zc688.top:20206/download/7/epub/7.epub
http://zc688.top:20206/download/8/epub/8.epub
http://zc688.top:20206/download/9/epub/9.epub
http://zc688.top:20206/download/10/epub/10.epub
@applicato
applicato / django_deploy.md
Created September 15, 2023 11:57 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.

@applicato
applicato / django_cheat_sheet.md
Created September 11, 2023 15:19 — forked from bradtraversy/django_cheat_sheet.md
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv
@applicato
applicato / web-servers.md
Created July 2, 2023 11:50 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@applicato
applicato / passwords.md
Created June 24, 2023 12:25 — forked from zmts/passwords.md
Про хранение паролей в БД

Про хранение паролей в БД

При создании нового юзера

  1. При регистрации юзер вводит некий пароль
  2. Генерим случайную соль индивилуально для каждого юзера
  3. Создаем хеш на основе введенного юзером пароля и соли
  4. Записываем хеш(не пароль) в БД + соль в отдельном филде

Авторизация существующего юзера

  1. Юзер вводит в поле авторизации некий пароль
@applicato
applicato / postgres-cheatsheet.md
Created June 22, 2023 13:19 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@applicato
applicato / effective_modern_cmake.md
Created April 21, 2023 19:46 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft