Skip to content

Instantly share code, notes, and snippets.

Avatar
📖
Always Learning...

Mohammad Javad Naderi mjnaderi

📖
Always Learning...
View GitHub Profile
@mjnaderi
mjnaderi / django-syslog.md
Created May 29, 2018
Logging to Syslog in Django
View django-syslog.md
@mjnaderi
mjnaderi / install-arch.md
Last active Dec 5, 2021 — forked from mattiaslundberg/arch-linux-install
Install Arch Linux with Full Disk Encryption (LVM on LUKS)
View install-arch.md
@mjnaderi
mjnaderi / queval.js
Created Sep 26, 2015
Simple math expression evaluator based on jsep
View queval.js
var jsep = require('jsep');
(function (root) {
var COMPOUND = 'Compound',
IDENTIFIER = 'Identifier',
MEMBER_EXP = 'MemberExpression',
LITERAL = 'Literal',
THIS_EXP = 'ThisExpression',
CALL_EXP = 'CallExpression',
@mjnaderi
mjnaderi / upvpn.sh
Last active Dec 5, 2015
UpVPN (reconnect vpn when disconnected)
View upvpn.sh
#!/bin/bash
VPN="Sharif ID"
trap "exit 0" SIGINT SIGTERM
while true; do
if ! nmcli con status | grep -q "$VPN"; then
echo "[`date`] Disconnected. Trying to reconnect..."
nmcli -p con up id "$VPN"
@mjnaderi
mjnaderi / icedream-eclipse-theme.xml
Last active Aug 29, 2015
My Eclipse Color Theme (based on Schuss) to be used with Eclipse Color Theme Plugin
View icedream-eclipse-theme.xml
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="28852" name="IceDream" modified="2014-07-23 15:43:53" author="Mohammad Javad Naderi">
<searchResultIndication color="#DDDDDD" />
<filteredSearchResultIndication color="#DDDDDD" />
<occurrenceIndication color="#DDDDDD" />
<writeOccurrenceIndication color="#DDDDDD" />
<findScope color="#BCADAD" />
<deletionIndication color="#9b5656" bold="false" />
<sourceHoverBackground color="#EEEEEE" />
<singleLineComment color="#BBBBBB" italic="true" />
View .gtkrc-2.0
style "gtkcompact" {
# font_name="Liberation 8"
GtkButton::defaultborder={0,0,0,0}
GtkButton::defaultoutsideborder={0,0,0,0}
GtkButtonBox::childminwidth=0
GtkButtonBox::childminheigth=0
GtkButtonBox::childinternalpadx=0
GtkButtonBox::childinternalpady=0
GtkMenu::vertical-padding=0
GtkMenuBar::internalpadding=0