Skip to content

Instantly share code, notes, and snippets.

View maqboolkhan's full-sized avatar
:octocat:
Work, work, work

maq maqboolkhan

:octocat:
Work, work, work
View GitHub Profile
@maqboolkhan
maqboolkhan / ctrl.java
Created May 7, 2019 23:21
SPARQL CRUD (USING APACHE JENA FUSEKI)
package test.fusekitest.controllers;
import org.apache.jena.query.QueryExecution;
import org.apache.jena.query.ResultSet;
import org.apache.jena.query.ResultSetFormatter;
import org.apache.jena.rdfconnection.*;
import org.apache.jena.update.UpdateFactory;
import org.apache.jena.update.UpdateRequest;
import org.springframework.web.bind.annotation.*;
{
"editor.cursorBlinking": "phase",
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.lineHeight": 25,
"editor.minimap.enabled": false,
"editor.fontFamily": "Monaco, 'Courier New', monospace",
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
"terminal.integrated.fontSize": 14,
"editor.formatOnSave": true,
@maqboolkhan
maqboolkhan / .bashrc
Created December 19, 2017 19:58
Git branch in Bash Terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Replace Your this block with this one
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\w\[\033[00m\] \[\033[01;34m\]$(parse_git_branch)\[\033[00m\] \n) '
else
PS1='${debian_chroot:+($debian_chroot)}\w $(parse_git_branch) \n) '
@maqboolkhan
maqboolkhan / Preferences.sublime-settings
Last active May 3, 2022 09:39
My Preferences Sublime Text 3
{
"bold_folder_labels": true,
"caret_style": "phase",
"detect_slow_plugins": false,
"font_face": "Operator Mono SSm Lig",
"font_size": 15.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@maqboolkhan
maqboolkhan / perfect-loki.sh
Last active July 23, 2018 06:11
How to install perfect Elementary OS loki
# To run $ sh perfect-loki.sh
# update repositories
sudo apt-get update
# Removing apps
echo '\n[?]Do you want to remove Epiphany Browser? [Y/n] '
read answer
if echo "$answer" | grep -iq "^n" ;then
echo '[>>>>>>>>>>>>>>>>>>>>] Not removing Epiphany Browser'
@maqboolkhan
maqboolkhan / lxml_installer.sh
Created December 16, 2015 20:18
Install lxml on linux (Elementary OS/Ubuntu)
# first install dependecies
sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev build-essential python-dev
# then now time to install lxml
sudo pip install lxml