Skip to content

Instantly share code, notes, and snippets.

@rxaviers
rxaviers / gist:7360908
Last active April 29, 2024 15:36
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@wbcurry
wbcurry / .ansible.cfg
Last active April 29, 2024 15:32 — forked from anonymous/.ansible.cfg
Ansible: .ansible.cfg
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]
@FaridLU
FaridLU / django_deployment.md
Last active April 29, 2024 15:25
Deploy Django project - Digital Ocean / AWS (EC2) - (Django + Redis + Gunicorn + Nginx + Supervisor + Lets Encrypt)

Login to your server via ssh

$ ssh root@server-ip-address

Initial Server Setup:

  1. Create a new user and set the password:
$ adduser ubuntu
@rodgtr1
rodgtr1 / python_exercises.py
Last active April 29, 2024 15:25
Python exercises for Python Tutorial - https://youtu.be/f1E1NvcRvdc
# Install and Setup
# REPL
# VSCode & Extension
# 1. Variables / Types
@simc
simc / indexable_skip_list.dart
Created August 2, 2023 09:53
Fast indexable skip list for Dart. All operations (except clear) are O(log n)
import 'dart:collection';
import 'dart:math';
class IndexableSkipList<K, V> {
static const _maxHeight = 12;
final _Node<K, V> _head = _Node(
null,
null,
List.filled(_maxHeight, null),
@hl
hl / repo.ex
Last active April 29, 2024 15:12
defmodule MyApp.Repo do
use Ecto.Repo,
otp_app: :my_app,
adapter: Ecto.Adapters.Postgres
require Ecto.Query
@spec fetch_one(Ecto.Queryable.t(), Keyword.t()) ::
{:ok, struct()} | {:error, :not_found}
def fetch_one(queryable, opts \\ []) do
@lavantien
lavantien / modern-software-engineering-resources.md
Last active April 29, 2024 15:25
Modern Software Engineering Resources

Modern Software Engineering

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wayback Machine (archive of the internet), Anna's Archive (open ebooks/papers library), 1337x (archive of all media).

  • Z. (down) Notes below. Avoid funnel sales, if you spent money, there's something wrong. Also don't forget good OpSec, self defense gears, and physical/mental strength.
  • A. (go) Development Environment (10 items) (Linux, Neovim, Dev Tools, Languages, Configs, Security, and Dotfiles).
  • B. (go) Complementary Subjects (283 items) (Linguistics, English, Security, OpSec, Psychology, Anthropology, History, Philosophy, Economics, Business, Cooking, Xenology, and Self Defense).
  • C. (go) Fundamentals of Science and Technology (131 items) (Logic, Ph
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@superseb
superseb / rke2-commands.md
Last active April 29, 2024 15:05
RKE2 commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server