Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.
| # Run this in the same directory as the Hangouts.json file generated by Google Takeout / Data Export tool. | |
| # python3 hangouts.py | |
| import json | |
| import datetime | |
| import os | |
| import shutil | |
| import re | |
| chat_dir = "hangouts" |
| ln -s "/Users/`whoami`/Google Drive/alfred/snippets" "/Users/`whoami`/Library/Application Support/Alfred/Alfred.alfredpreferences/snippets" | |
| ln -s "/Users/`whoami`/Google Drive/alfred/themes" "/Users/`whoami`/Library/Application Support/Alfred/Alfred.alfredpreferences/themes" |
| import * as React from "react"; | |
| import { | |
| AuthenticationDetails, | |
| CognitoUserPool, | |
| CognitoUserAttribute, | |
| CognitoUser, | |
| CognitoUserSession, | |
| } from "amazon-cognito-identity-js"; | |
| import moment from "moment"; | |
| /** Utils */ |
| import React, { useState, useEffect } from 'react' | |
| import PropTypes from 'prop-types' | |
| import { checkIsAuthenticated, authSignUp, authLogin, authLogout } from '../../services/auth' | |
| export const AuthContext = React.createContext({}) | |
| export default function Auth({ children }) { | |
| const [isAuthenticated, setIsAuthenticated] = useState(false) | |
| const [isLoading, setIsLoading] = useState(true) |
| <?php | |
| /* | |
| (in this version, I added support for more message types and offer both plaintext and HTML message format) | |
| This is a function that transforms the JSON you get from Google Takeout when you export your Hangouts history | |
| into a PHP array which can be used to further manipulate the data. | |
| A use case is my hangouts parser at http://hangoutparser.jay2k1.com/ -- a description can be seen at | |
| http://blog.jay2k1.com/2014/11/10/how-to-export-and-backup-your-google-hangouts-chat-history/ |
Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.
| #!/usr/bin/env python3 | |
| ''' | |
| calisuck: index, filter-out smartly and download ebooks from Calibre open directories | |
| Installation: | |
| You need python 3.5 installed | |
| Download the file as a zip and unzip-it and get into the dir |
| node: Platform built on V8 to build network applications | |
| git: Distributed revision control system | |
| wget: Internet file retriever | |
| yarn: JavaScript package manager | |
| python3: Interpreted, interactive, object-oriented programming language | |
| coreutils: GNU File, Shell, and Text utilities | |
| pkg-config: Manage compile and link flags for libraries | |
| chromedriver: Tool for automated testing of webapps across many browsers | |
| awscli: Official Amazon AWS command-line interface | |
| automake: Tool for generating GNU Standards-compliant Makefiles |
| ##################################################### | |
| # dual booting arch linux & macOS | |
| # on a macbook pro 12,1 | |
| # ft. rEFInd | |
| # | |
| # this guide has been smashed together from a variety | |
| # of other awesome guides out there for dual booting | |
| # including but not limited to: | |
| # mark nichols' 5 part guide: https://zanshin.net/2015/02/05/arch-linux-on-a-macbook-pro-part-1-creating-a-usb-installer/ | |
| # the arch linux docs: https://wiki.archlinux.org/index.php/mac#Arch_Linux_with_OS_X_or_other_operating_systems |
| #!/bin/sh | |
| # More Mac setup at https://mac.iamdeveloper.com | |
| # Log file | |
| timestamp=$(date +%s) | |
| logFile="./my-mac-setup-$timestamp.log" | |
| # if true is passed in, things will reinstall | |
| reinstall=$1 |