Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View anjandev's full-sized avatar
😈
On sourcehut!

Anjan Momi anjandev

😈
On sourcehut!
View GitHub Profile
@anjandev
anjandev / Config.ini
Created February 7, 2015 21:32
Black Bug.n Config
; bug.n - tiling window management
; @version 9.0.0
;;Status bar
Config_showBar=1
Config_horizontalBarPos=left
Config_verticalBarPos=top
Config_barWidth=100%
Config_singleRowBar=1
Config_spaciousBar=0
@anjandev
anjandev / phonesync.sh
Last active February 15, 2016 08:39
sync playlist files to phone
#! /bin/bash
#sync playlist files to phone
#MAKE SURE THIS FILE IS RAN FROM ~/Scripts
# add save_absolute_paths_in_playlists "yes" to your mpd.conf and regenerate playlists
cat ~/.mpd/playlists/phone.m3u | grep -v '#' | \
while read i; do cp -vu "${i}" /var/run/user/1000/gvfs/*/*/Music; done
BASEDIR=/var/run/user/1000/gvfs/
cd $BASEDIR`ls $BASEDIR | head -n 1`/Internal\ storage/Music
# 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
#
# 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
@anjandev
anjandev / NthLineCopy.m
Created August 16, 2017 22:31
Copy every Nth line algorithm (octave)
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));
#!/bin/sh
while true; do
feh --bg-fill -z ~/Pictures/Wallpapers/
sleep 30m
done
# 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=""
@anjandev
anjandev / keybase.md
Created April 25, 2018 06:01
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:

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 '')

Introduction to Git

Why Git