Instantly share code, notes, and snippets.


Sanjeev Kumar sanfx

View GitHub Profile
View rest_api_structure.txt
| |
| |____base
| | |
| | |
| |____hello
| | |
| | |
sanfx / vuetify-datepicker.vue
Created Jul 11, 2018
single file component vuetify date picket
View vuetify-datepicker.vue
<v-layout row wrap>
<v-flex xs12 sm6 md4>
sanfx / devpi.json
Created May 29, 2018
devpi json result of new index
View devpi.json
"result": {
"bases": [
"pypi_whitelist": [],
"volatile": true,
"acl_upload": [
sanfx /
Created May 28, 2018 — forked from chronossc/
Article/how to about how install devpy-server (not finished yet)

dev-pi install howto

This guide follow instructions in the devpi quickstart server guide. We will install in own user home using virtualenvs, than, will setup a nginx instance. Server used here is Ubuntu Server 12.04 LTS in one virtualbox instance.

Create devpi user

root ~ # useradd -m -U -s /bin/bash devpi
root ~ # passwd devpi
sanfx / vue_component.vue
Created Mar 11, 2018
standard template, script, and style sections along with the code example
View vue_component.vue
<h3>I'm a Survey Component</h3>
export default {
data() {
return {
sanfx / Galaxy Of Tutorial Torrents
Created Sep 25, 2017 — forked from iHassan/Galaxy Of Tutorial Torrents
Ultimate Galaxy Of Tutorial Torrents
View Galaxy Of Tutorial Torrents
sanfx /
Created Jul 31, 2017 — forked from pamelafox/
Geonames Python wrapper
import sys
import urllib
import urllib2
import json
import logging
class GeonamesError(Exception):
def __init__(self, status):
sanfx /
Last active Jul 25, 2017 — forked from fredrikaverpil/
Create custom PySide GUI and dock it into Nuke UI
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from nukescripts import panels
class PanelTest(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
sanfx / docker commands
Created Jun 10, 2017
useful docker commands
View docker commands
# will forcibly remove the docker container by stopping it and then build new from current location
docker rm -f `docker ps -q -a` ; docker build -t armin:v1 .
# will run the newly built container and then enter container's bash shell of container.
docker exec -it `docker run -itd armin:v1` bash
sanfx /
Created Jun 9, 2017 — forked from jvkersch/
Python wrapper around to rsync to facilitate backup
#!/usr/bin/env python
A simple wrapper around rsync for backup.
Usage: create a text file with on each line a resource that you wish to
backup. Paths should be relative to the user's home directory. Entries
starting with '#' are ignored, as are blank lines. Call this script via
python -i [backup_files.txt] [rsync_target_folder]