Skip to content

Instantly share code, notes, and snippets.

View qodirovshohijahon's full-sized avatar
🇺🇿
Focusing

Shokhijakhon Kodirov qodirovshohijahon

🇺🇿
Focusing
View GitHub Profile
@yetimdasturchi
yetimdasturchi / mailq_cleaner.sh
Created January 28, 2025 16:11
Mail queue cleaner script for antispam.
#!/bin/bash
CURRENT_TIME=$(date +%s)
mailq | awk '/^[A-F0-9]/ {print $1, $3, $4, $5}' | while read -r ID MONTH DAY TIME; do
MESSAGE_DATE="$MONTH $DAY $TIME $(date +%Y)"
MSG_TIMESTAMP=$(date -d "$MESSAGE_DATE" +%s 2>/dev/null)
if [ $? -ne 0 ]; then
@angelabauer
angelabauer / index.html
Created September 23, 2020 11:10
Simple HTML Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form>
<label>Name</label>
<input type="text" placeholder="name">
@shiveshabhishek
shiveshabhishek / keyboard-shortcuts.md
Last active October 20, 2021 06:57
Vokoscreen keyboard shortcuts in Ubuntu

VokscreenNG is a user friendly Open Source screencaster for Linux and Windows. Github: VokoscreenNG

  • Ctrl+Shift+f10 --> Start recording
  • Ctrl+Shift+f11 --> Stop recording
  • Ctrl+Shift+f12 --> Pause recording

If you pause the recording, then you'll have to first start the recording before you can stop it.

@pamelafox
pamelafox / astronauts.sql
Created March 20, 2020 18:24
NASA astronauts, 1959-Present
/* Source:
https://www.kaggle.com/nasa/astronaut-yearbook
*/
CREATE TABLE astronauts(
Name TEXT PRIMARY KEY,
Year INTEGER,
GroupNum INTEGER,
Status TEXT,
Birth_Date TEXT,
Birth_Place TEXT,
@mpneuried
mpneuried / Makefile
Last active April 29, 2025 08:09
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@pamelafox
pamelafox / countries_and_territories.sql
Last active April 13, 2025 10:45
countries_and_territories.sql
/*
Countries and dependent territories, 2020
Data adapted from
http://www.worldometers.info/world-population/population-by-country/
Does not include rows which had "N.A." values, so some territories are missing.
*/
CREATE TABLE countries(
name TEXT PRIMARY KEY,
population INTEGER,