Skip to content

Instantly share code, notes, and snippets.

ojas ojas

  • austin, tx
Block or report user

Report or block ojas

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
@ojas
ojas / nginx.txt
Created Jun 7, 2019
uwsgi & nginx
View nginx.txt
server {
listen 80;
server_name tch-activity.apps.sage-iq.com;
root /opt/www/tch-activity;
location / {
return 301 https://$host$request_uri;
}
location /.well-known {
alias /opt/www/tch-activity/.well-known;
}
@ojas
ojas / Truncated.md
Created Oct 23, 2018
Election 2018
View Truncated.md

Partisan Races

U.S. Senate, governor, and other statewide offices, U.S. House of Reps., Texas Legislature, Travis Co. offices, judicial races at all levels

Go ahead and vote straight-ticket Democrat. It's OK. This will be your last chance in any event (straight-ticket voting is going away after this election). Just don't forget to scroll through the ballot to get to the rest of these contests.

Austin City Council

  • Mayor: Steve Adler*
  • District 1: Natasha Harper-Madison and Vincent Harding
@ojas
ojas / review.md
Last active Apr 6, 2018
stanley_meyer_1992_interview_amazing_technology.md
View review.md

0:00-1:30 look at all those buttons! he stole a tectronix o-scope from the local community college and made it his dashboard? when i was a kid, our next door neighbor had a buggy. American flag, "Jesus Christ is Lord" holy cow, OH plates too! I remember those plates.

2:15 look at the "computer system" look at all those signal capture or processing channels. one channel per slot more or less. that's what it looks like.

@ojas
ojas / Chromebook Setup.md
Last active Oct 14, 2017
Chromebook Dev Setup
View Chromebook Setup.md

!very rough notes - a work in progress!

Enable Developer Mode:

  • Hold down esc + refresh + power to restart
  • Press ctrl + d to switch to developer mode (warning: this will basically wipe your machine, so save anything you need to save)
  • fix yourself some coffee. it'll take a while and a few reboots
  • login

Install Chromebrew:

@ojas
ojas / clfu.md
Created Jul 19, 2017
Command Line.md
View clfu.md
pbpaste | perl -e 'use URI::Escape; my $url = <STDIN>; chomp $url; my $url = "https://www.pinterest.com/pin/find/?url=" . uri_escape($url); print($url);' | xargs open
@ojas
ojas / The Path to Freedom.md
Last active Apr 4, 2018
The Path to Freedom - by Carl Sagan & Ann Druyan
View The Path to Freedom.md

The Path to Freedom

We must not believe the many, who say that only free people ought to be educated, but we should rather believe the philosophers who say that only the educated are free. – Epictetus, Roman philosopher and former slave, Discourses

Frederick Bailey was a slave. As a boy in Maryland in the 1820s, he had no mother or father to look after him. ('It is a common custom,' he later wrote, 'to part children from their mothers . . . before the child has reached its twelfth month.') He was one of countless millions of slave children whose realistic prospects for a hopeful life were nil.

@ojas
ojas / chapter23.md
Created Nov 20, 2016
The Demon-Haunted World - Maxwell and the Nerds - Carl Sagan
View chapter23.md

Maxwell and The Nerds

Why should we subsidize intellectual curiosity?

– Ronald Reagan, campaign speech, 1980

There is nothing which can better deserve our patronage than the promotion of science and literature. Knowledge is in every country the surest basis of public happiness.

– George Washington, address to Congress, 8 January 1790

View requests_curl_logger.py
"""
Log your requests activity in curl format and with pretty colors.
import requests
from requests_curl_logger import curl_log
r = requests.get('http://example.com', hooks=dict(response=curl_log))
"""
from json import dumps as json_dumps
@ojas
ojas / trump.py
Created Oct 25, 2016
Trump-ify
View trump.py
#!/usr/bin/env python
def trumpify(x):
return '“Nobody %s more than me.” – Donald Trump' % x
if __name__ == "__main__":
things = ['repects women', 'understands the horror of nuclear', 'reads the Bible', ]
for thing in things:
print(trumpify(thing))
@ojas
ojas / email.html
Last active Oct 24, 2016
Hubspot Email Rendering Issue in iOS Mail
View email.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<title></title>
<meta property="og:title" content="">
<meta name="twitter:title" content="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" id="hs-inline-css">
/*<![CDATA[*/
/* everything in this node will be inlined */
You can’t perform that action at this time.