Skip to content

Instantly share code, notes, and snippets.

View gauravsaini964's full-sized avatar

pretentiousUsername gauravsaini964

View GitHub Profile
@gauravsaini964
gauravsaini964 / mysqlclient, mysql-python installation on Mac
Last active July 24, 2020 09:37
mysqlclient, mysql-python installation on Mac
-----Install brew---------------------------------
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
--------------------------------------------------
------ Remove existing installations ----------------
brew remove mysql
brew remove mysql-connector-c
brew remove mysql-client
{
"folders": [
{
"path": "react-admin-panel"
},
{
"path": "admin_panel"
},
{
"path": "avycustomerrepo"
{
"folders": [
{
"path": "gamified_learning"
},
{
"path": "self_service"
},
{
"path": "points_badges"
{
"terminal.integrated.fontFamily": "Menlo for Powerline",
"files.autoSave": "afterDelay",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.pyc": true,
# REST Imports.
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from django.http import HttpResponse
import jwt
from rest_framework_jwt.authentication import api_settings
jwt_decode_handler = api_settings.JWT_DECODE_HANDLER
Django Imports
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.status import (HTTP_201_CREATED, HTTP_200_OK, HTTP_404_NOT_FOUND, HTTP_400_BAD_REQUEST,
HTTP_500_INTERNAL_SERVER_ERROR)
from rest_framework_jwt.authentication import api_settings
from django.db.models import Sum, Count
from django.db.models.functions import Coalesce
# Misc Imports
friends = []
def start_chat (spy):
print "Authentication complete ! Welcome %s of age %d. You have spy rating of %.2f" % (spy['name'], spy['age'],
spy['rating'])
status_rn = None
show_menu = True
while show_menu:
menu_choices = menu_choices = "What do you want to do? " \
"\n 1. Add a status update " \
"\n 2. Add a friend " \
import startchat
from spydetails import spy
question = "Continue as guest Y/N"
existing = raw_input(question)
if existing.upper() == "Y":
print "Welcome %s.%s of age:%d has rating of %.2f" %(spy['salutation'],spy['name'],
spy['age'],spy['rating'])
if spy['is_online'] == True:
In file included from /home/demon/android/aospa/kernel/oneplus/msm8974/arch/arm/mach-msm/include/mach/camera2.h:17:0,
from /home/demon/android/aospa/kernel/oneplus/msm8974/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_io_util.h:21,
from /home/demon/android/aospa/kernel/oneplus/msm8974/drivers/media/platform/msm/camera_v2/isp/msm_isp_util.c:21:
/home/demon/android/aospa/kernel/oneplus/msm8974/include/media/msm_cam_sensor.h:706:25: error: 'MAX_LED_TRIGGERS' undeclared here (not in a function)
uint32_t torch_current[MAX_LED_TRIGGERS];
^
/home/demon/android/aospa/kernel/oneplus/msm8974/include/media/msm_cam_sensor.h:719:48: error: 'MAX_I2C_REG_SET' undeclared here (not in a function)
struct msm_camera_i2c_reg_array reg_setting_a[MAX_I2C_REG_SET];
^
/home/demon/android/aospa/kernel/oneplus/msm8974/drivers/media/platform/msm/camera_v2/isp/msm_isp_util.c: In function 'msm_isp_util_get_bandwidth_
[ 72.229984][1000,WifiStateMachin ]wlan: module is from the staging directory, the quality is unknown, you have been warned.
[ 72.248637][1000,WifiStateMachin ]wlan: loading driver v3.8.20.24
[ 72.249914][1000,WifiStateMachin ]wlan: [1000:F :HDD] hdd_parse_config_ini: request_firmware failed -2
[ 72.250012][1000,WifiStateMachin ]wlan: [1000:F :HDD] hdd_wlan_startup: error parsing wlan/prima/WCNSS_qcom_cfg.ini
[ 72.250099][1000,WifiStateMachin ]wlan: [1000:F :HDD] hdd_driver_init: WLAN Driver Initialization failed
[ 72.261854][1000,WifiStateMachin ]wlan: driver load failure
[ 73.503461][1000,WifiStateMachin ]wlan: module is from the staging directory, the quality is unknown, you have been warned.
[ 73.514846][1000,WifiStateMachin ]wlan: loading driver v3.8.20.24
[ 73.516091][1000,WifiStateMachin ]wlan: [1000:F :HDD] hdd_parse_config_ini: request_firmware failed -2
[ 73.516176][1000,WifiStateMachin ]wlan: [1000:F :HDD] hdd_wlan_startup: error parsing w