Skip to content

Instantly share code, notes, and snippets.

Bola E.Nasr BolaNasr

Block or report user

Report or block BolaNasr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BolaNasr
BolaNasr / dns_manager.py
Last active Jun 19, 2019
acl for users
View dns_manager.py
from Jumpscale import j
def main(self):
"""
to run:
kosmos 'j.data.bcdb.test(name="dns_manager")'
test around acls
View BuilderGoLang.py
from Jumpscale import j
builder_method = j.builder.system.builder_method
class BuilderGolang(j.builder.system._BaseClass):
NAME = 'go'
STABLE_VERSION = '1.12'
DOWNLOAD_URL = 'https://dl.google.com/go/go{version}.{platform}-{arch}.tar.gz'
View startup.toml
[startup.wiki]
name = "bash"
protected = true #set protected to true to respawn the container if it crashed
[startup.wiki.args]
script = """
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
export HOME=/root
export LANG=en_US.UTF-8
View car wash
firebase : da 3shan database ( Get w set w delete ) 3n tre2 API
(car wash GP) project name
t3lem mn new boston
https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl
t3lem mn firebase with android
View fs.lua
------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2013-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-path library.
--
View Jumpscale_simple.sh
#!/bin/bash
set -ex
# make output directory
ARCHIVE=/tmp/archives
FLIST=/tmp/flist
mkdir -p $ARCHIVE
# install system deps (done)
@BolaNasr
BolaNasr / flask-server.py
Created Aug 16, 2018
simple flask server
View flask-server.py
from flask import Flask, render_template, request, jsonify
from pusher import Pusher
import json
# create flask app
app = Flask(__name__)
# index route, shows index.html view
@app.route('/')
You can’t perform that action at this time.