Skip to content

Instantly share code, notes, and snippets.

Avatar
😈
On sourcehut!

Anjan Momi anjandev

😈
On sourcehut!
View GitHub Profile
View openpgp.md
View pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC55OVklv6JJ8TxHqA2yARBdIQFhO8RR0uqoUbYdat4MoMGs95XT6t+SLpqsC2PYwZrtRa4WQ/1x30WvwG/GpmTCih42ec9PnvhZjFB3FAc0Zaxj+YuGotwnHxEiWHp6QAH+L9GCbkljkKh5zb56em+mWaIsWFneJpzcw/Emwho8QvIWkIOh89/s+g6AsBSiDDsSZ2NQ74mUr5XmCA/cCKbS46kXRvrcIp+GDqyZk+9H8DgmOwgmUpvM55M4y6xLJvGhJLpYG4T1GML/jRAJbcaJOrbmVG3qdfoY3/2DTroLE8z/lO9Z030y4C06choVimu+SR1gys5dhDYiAsOOxa1jfyiWECvQhJM4/NYI/xNUPETI3rkyHxbXiFKYzO+4+iSHRmopSu16VnkyowjtVm86xVlVvJtOARI1SZY/l1UlOVUlr27jW7U82MknuUi/nlSKFr9lxh71yE4lOPoKHDgG1ukhzJcAffOfLS/2A/VkUErCIcFIYngL1ZQrUioCZK0O9Q7ANYom5G0xL3wJoCBBGwRCfBFHqDrVtnkbDYc4jhQqH6n6qa3YFESJ/jIsncz3PVuD4i5gfo/O20r5fdr7DEU+VeG+ea71VeZzcvfpyXVxZZwHwcPGtolcbTDeJMdj26zVp79ZVdekWQ0iCCaM5ohlqEhY7GWif1EKH6o9Q== anjan@momi.ca
View README.org

Introduction to Git

Why Git

View blagh-conf_max_lines_per_post.diff
diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc
index 71bcef6..5707ccd 100644
--- a/apps/blagh/app.rc
+++ b/apps/blagh/app.rc
@@ -10,6 +10,9 @@ fn conf_enable_blog {
if(~ $"conf_max_posts_per_page '')
conf_max_posts_per_page=32
+
+ if(~ $"conf_max_lines_per_post '')
View keybase.md

Keybase proof

I hereby claim:

  • I am anjandev on github.
  • I am anjanmomi (https://keybase.io/anjanmomi) on keybase.
  • I have a public key whose fingerprint is A063 3B86 87E0 3D9D 2DA6 858F BF5C D782 3BA2 B218

To claim this, I am signing this object:

View protonmail template
# Template file for 'protonmail-bridge'
pkgname=protonmail-bridge
version=1.0.1
_revision=4
revision=1
#wrksrc=
#create_wrksrc=yes
#only_for_archs="i686 x86_64"
# build_style=gnu-configure
#configure_args=""
View .wallpaper.sh
#!/bin/sh
while true; do
feh --bg-fill -z ~/Pictures/Wallpapers/
sleep 30m
done
@anjandev
anjandev / NthLineCopy.m
Created Aug 16, 2017
Copy every Nth line algorithm (octave)
View NthLineCopy.m
clear all
function newFinal = addAndConcat(oldFinal, newEnding)
% Copy every 30th line
N=30;
fid = newEnding;
% Delete top 3 lines
C = textread(fid, '%s', 'Delimiter', '\n', 'HeaderLines',3);
C = C(1:N:length(C));
View laptopKernel
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.34-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
View sr.ht.service
# Save this to /home/USER/.config/systemd/user/sr.ht.service
[Unit]
Description=Sr.ht Files Server
[Service]
Type=simple
# Remember to change these values to your user name
ExecStart=/usr/bin/python /home/anjan/sr.ht/app.py