Skip to content

Instantly share code, notes, and snippets.

View dynamicguy's full-sized avatar
🎯
Focusing

Nurul Ferdous dynamicguy

🎯
Focusing
View GitHub Profile
from django.db import models
from django_countries.fields import CountryField
from model_utils import FieldTracker
import datetime
from django.utils import timezone
from rtt.users.admin import User
class Industry(models.Model):
name = models.CharField(max_length=200)
from twisted.internet import reactor
from scrapy.crawler import CrawlerRunner
from scrapy.utils.project import get_project_settings
from my_project.spiders.deals import DealsSpider
def crawl_job():
"""
Job to start spiders.
@dynamicguy
dynamicguy / 1-contacttracing-import.cql
Created May 20, 2020 16:50 — forked from rvanbruggen/1-contacttracing-import.cql
Contact tracing example #cypher #neo4j
//environment: Neo4j Desktop 1.2.7, Neo4j Enteprise 3.5.17, apoc 3.5.0.9, gds 1.1.0
//or: Neo4j Enterprise 4.0.3, apoc 4.0.0.6 (NOT later! a bug in apoc.coll.max/apoc.coll.min needs to be resolved)
//contact tracing data import
//full spreadsheet with synthetic data
//https://docs.google.com/spreadsheets/d/1R-XVuynPsOWcXSderLpq3DacZdk10PZ8v6FiYGTncIE/edit#gid=0
// person sheet˝
// https://docs.google.com/spreadsheets/u/0/d/1R-XVuynPsOWcXSderLpq3DacZdk10PZ8v6FiYGTncIE/export?format=csv&id=1R-XVuynPsOWcXSderLpq3DacZdk10PZ8v6FiYGTncIE&gid=0
{
"_index": "bubing",
"_type": "_doc",
"_id": "http://www.folklore.org/StoryView.py?project=Macintosh&story=Too_Big_For_My_Britches.txt&sortOrder=Sort by Date&topic=Personality Clashes",
"_score": 1,
"_source": {
"date": "2019-11-14T11:12:41+00:00",
"plain_text": "Apple's HR policy dictated that each employee was supposed to receive a performance review from their manager every six months, which helped to determine your salary increase or possibly an award of additional stock options. But as the end of 1982 approached, I hadn't received my review for more than eight months. This wasn't very surprising, since Bob Belleville, who was my boss and our software manager, was not getting along very well with the software team. He thought that some of us were intrinsically unmanageable, and that we didn't sufficiently respect him. Bob had replaced Rod Holt as the overall engineering manager in August, responsible for both hardware and software, and had just hired a new software manager, Jerome Coone
{
"_index": "bubing",
"_type": "_doc",
"_id": "http://www.folklore.org/ProjectView.py?project=Macintosh&author=Caroline%20Rose",
"_score": 1,
"_source": {
"date": "2019-11-14T08:54:14+00:00",
"plain_text": "“An invincible determination can accomplish almost anything and in this lies the great distinction between great men and little men.” -- Thomas Fuller Caroline Rose: (3) Caroline started working on the Mac Team in June 1982. She wrote most of (and edited all of) the first three volumes of Inside Macintosh, the Mac developer documentation. After leaving Apple in 1986, she managed the publications group at NeXT and later returned to Apple to become the editor of \"develop,\" Apple's technical journal for Mac developers. Since 1997, Caroline has been a successful independent technical writer and editor. My interview with Chris Espinosa Date: May 1982 Author: Caroline Rose Topics: Recruiting Rating: (3.94) The Inside Mac cover you never saw Date: October 1985 Author: Caroline Rose Topics: Doc
{
"_index": "bubing",
"_type": "_doc",
"_id": "http://www.folklore.org/ProjectView.py?project=Macintosh&topic=Recruiting",
"_score": 1,
"_source": {
"date": "2019-11-14T06:59:25+00:00",
"plain_text": "A shakeup in Apple II engineering frees me up to work on the Macintosh Date: February 1981 Author: Andy Hertzfeld Topics: Origins,Apple II,Management,Recruiting Rating: (4.65) The Reality Distortion Field changes Bruce's mind about working at Apple Date: September 1981 Author: Bruce Horn Topics: Reality Distortion,Apple Spirit,Recruiting Rating: (4.26) My interview with Chris Espinosa Date: May 1982 Author: Caroline Rose Topics: Recruiting Rating: (3.94) We cook up a special demo for John Sculley Date: March 1983 Author: Andy Hertzfeld Topics: Software Design,Recruiting,Early Programs Rating: (3.64) Steve gives the troops a pep talk Date: September 1983 Author: Tom Zito Topics: Apple Spirit,Management,Recruiting Rating: (4.05)",
"html_with_utf8": "<html>\n <head>\n <meta charset=\"utf-8
@dynamicguy
dynamicguy / mysql-workbench-export-laravel-5-migrations.py
Created July 10, 2019 09:17
mysql-workbench-export-laravel-5-migrations
# -*- coding: utf-8 -*-
# MySQL Workbench module
# A MySQL Workbench plugin which exports a Model to Laravel 5 Migrations
# Written in MySQL Workbench 6.3.6
# Support for MySQL Workbench 8.0 added
import cStringIO
import glob
import grt
#!/usr/bin/env sh
# OS settings
sudo sysctl -w kern.sysv.shmmax=2147483648
sudo sysctl -w kern.sysv.shmmin=1
sudo sysctl -w kern.sysv.shmmni=64
sudo sysctl -w kern.sysv.shmseg=16
sudo sysctl -w kern.sysv.shmall=524288
sudo sysctl -w net.inet.tcp.msl=60
@dynamicguy
dynamicguy / UserAgentInterceptor.java
Created March 16, 2019 11:18 — forked from twaddington/UserAgentInterceptor.java
Injects a User-Agent header into outgoing OkHttp requests.
package com.enlighthq.mobile.http;
import android.os.Build;
import java.io.IOException;
import java.util.Locale;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
#!/bin/bash
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
if [ ! -d ~/.vim/bundle/nerdtree ]; then
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
fi
touch proper.vimrc