Skip to content

Instantly share code, notes, and snippets.

View ratulotron's full-sized avatar
🎯

Ratul Minhaz ratulotron

🎯
View GitHub Profile
# Symlinks
#rm -f /var/cache/apt/archives
#ln -s /mnt/rest/Ubuntu/apt/archives
# sudo apt-get install dconf-tools
# dconf reset -f /org/compiz/
# setsid unity
# unity --reset-icons
rm -r ~/Downloads ~/Music ~/Videos ~/Public ~/Pictures ~/Documents
@ratulotron
ratulotron / family.pl
Last active June 10, 2016 16:13
Family tree in Prolog
female(pam).
female(liz).
female(pat).
female(ann).
male(tom).
male(bob).
male(jim).
parent(pam, bob).
parent(tom, bob).

Audience:

Purpose:

Rules:

  • Write simple sentences
  • Use words that your reader will understand
  • Use lists
#!/usr/bin/env python
"""Script to get Github info using API"""
import requests
# main URL that doesn't get changed
baseurl = "https://api.github.com/users/"
# add any number of usernames here
users = ['kennethreitz', 'mitsuhiko', 'jkbrzt', 'nvbn', 'donnemartin']
# Which JSON properties we want to catch
#!/usr/bin/env python3
import requests as r
import csv
import re
from pprint import pprint
"""
Code written for Python 3. It has better support for UTF-8.
Get a page access token first, then use the following URL to get a long lived access token. Long lived access tokens are valid for 60 days.
<html>
<head>
<title> Hello World </title>
<style>
body {
background: #112331;
color: #F1E68A;
margin-left: 30%;
margin-top: 10%;
margin-right: 30%;
#!/usr/bin/env python
"""Script to get Github info using API"""
import requests
import dateutil
from datetime import date
def main():
# add any number of usernames here
users = ['kennethreitz', 'mitsuhiko', 'jkbrzt', 'nvbn', 'donnemartin']

Keybase proof

I hereby claim:

  • I am ratulotron on github.
  • I am ratulotron (https://keybase.io/ratulotron) on keybase.
  • I have a public key ASDGsMXc-CgwisESZsKorxaK89pUAfsgR331A4uT3KlQugo

To claim this, I am signing this object:

@ratulotron
ratulotron / .gitignore
Last active August 24, 2019 17:20 — forked from audacioustux/db.env
data