Skip to content

Instantly share code, notes, and snippets.

View dezashibi's full-sized avatar
🎯
Focusing on my targets

Navid Dezashibi dezashibi

🎯
Focusing on my targets
View GitHub Profile
@dezashibi
dezashibi / neomuttrc
Created March 28, 2022 11:03 — forked from VladimirPal/neomuttrc
Minimal neomutt config for gmail imap
set imap_user="[email protected]"
set imap_pass=`/usr/bin/security find-generic-password -w -a '[email protected]' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@dezashibi
dezashibi / urlshort.nim
Created March 18, 2022 14:30 — forked from xmonader/urlshort.nim
urlshort.nim
# nimshorturl
# Copyright xmonader
# nim url shortening service
import jester, asyncdispatch, htmlgen, json, os, strutils, strformat, db_sqlite
# hostname can be something configurable "http://ni.m:5000"
let hostname = "localhost:5000"
var theDb : DbConn
if not fileExists("/tmp/mytest.db"):
theDb = open("/tmp/mytest.db", "", "", "")
theDb.exec(sql("""create table urls (
@dezashibi
dezashibi / wclwn.md
Created March 9, 2022 09:57 — forked from zacharycarter/wclwn.md
Binding to C Libraries with Nim
@dezashibi
dezashibi / make_exe.bat
Last active January 15, 2022 09:10
make_exe.bat C release mode compiler for gcc in windows
@ECHO OFF
IF "%~1"=="" GOTO noargs
mingw32-gcc.exe -Wall -O2 -c %1.c -o %1.o
mingw32-g++.exe -o %1.exe %1.o -s
PAUSE
GOTO endprogram