I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
connect25lovylmq.onion <-- blackbook a privacy based social network | |
sejnfjrq6szgca7v.onion <---- Tor mirror of Debian.org | |
pugljpwjhbiagkrn.onion <-- Debian manpages | |
7b42twezybs23hrr.onion <--- linux.sh terminal based file shareing utility | |
74ypjqjwf6oejmax.onion <-- Beneath VT, Exploring Virginia Tech's steam tunnels and beyond |
from collections import defaultdict | |
from heapq import * | |
def dijkstra(edges, f, t): | |
g = defaultdict(list) | |
for l,r,c in edges: | |
g[l].append((c,r)) | |
q, seen, mins = [(0,f,())], set(), {f: 0} | |
while q: |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
-
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
-
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
-
Save that list to some path
-
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. | |
# You can redistribute it and/or modify it under the terms of the Do What The | |
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See |
# The following code and the code generated art works are the intellectrual properities of Hailei Wang. | |
# © 2009 - 2014, Hailei Wang. All rights reserved. | |
from nodebox import geo | |
colors = ximport("colors") | |
# Define Brush | |
def composeimage( x, y, colr, radius, points, diminish ) : | |
nofill() | |
stroke() |
import boto3, json, os, shutil, subprocess | |
from argparse import ArgumentParser | |
""" | |
Big Chalice Deployer deployes Chalice Apps using the "chalice package ..." command and | |
modifies the resulting sam.json template to make use of the Docker deployment process | |
instead of the default, s3 based, process. Additionally, the ability to delete the | |
resulting SAM App is available via the CLI. | |
Usage: |
# app/controllers/users/password_controller.rb | |
class Users::PasswordsController < Devise::PasswordsController | |
def resource_params | |
params.require(:user).permit(:email, :password, :password_confirmation) | |
end | |
private :resource_params | |
end |
import numpy as np | |
def Kittler(im, out): | |
""" | |
The reimplementation of Kittler-Illingworth Thresholding algorithm by Bob Pepin | |
Works on 8-bit images only | |
Original Matlab code: https://www.mathworks.com/matlabcentral/fileexchange/45685-kittler-illingworth-thresholding | |
Paper: Kittler, J. & Illingworth, J. Minimum error thresholding. Pattern Recognit. 19, 41–47 (1986). | |
""" | |
h,g = np.histogram(im.ravel(),256,[0,256]) |
This set of parameters experimentally seems to work the best for macos to linux file transfer. This is ofcourse not secure and is intended for transferring things like machine learning datasets to a workstation from a laptop etc.
rsync -rltv --progress --human-readable --delete -e 'ssh -T -c aes128-gcm@openssh.com -o Compression=no -x'
r
: Recursive. Allow directories to be traversed and copied.