Skip to content

Instantly share code, notes, and snippets.

@alexdlaird
alexdlaird / pyngrok-colab-ssh-example.ipynb
Last active May 17, 2021
pyngrok - Colab SSH Example.ipynb
View pyngrok-colab-ssh-example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamesr2323
jamesr2323 / heroku_env_copy.sh
Created May 24, 2017 — forked from nabucosound/heroku_env_copy.sh
Script to copy environment variables from an existing heroku app to another one
View heroku_env_copy.sh
#!/bin/bash
# Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/
set -e
sourceApp="$1"
targetApp="$2"
config=""
@mandiwise
mandiwise / Sync gh-pages + master branches
Last active May 17, 2021
Keep gh-pages up to date with a master branch
View Sync gh-pages + master branches
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
View deck.csv
face suit value
king spades 13
queen spades 12
jack spades 11
ten spades 10
nine spades 9
eight spades 8
seven spades 7
six spades 6
five spades 5
@moodoki
moodoki / exportgraph.py
Last active May 17, 2021
Freeze and export Tensorflow graph from checkpoint files
View exportgraph.py
import os, argparse
import tensorflow as tf
from tensorflow.python.framework import graph_util
dir = os.path.dirname(os.path.realpath(__file__))
def freeze_graph(model_folder, output_nodes='y_hat',
output_filename='frozen-graph.pb',
rename_outputs=None):
@jhaddix
jhaddix / all.txt
Last active May 17, 2021
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
View all.txt
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@MrChuffmanSnippets
MrChuffmanSnippets / index.html
Created Mar 15, 2012
HTML5: Blank Template
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
@gh0st026
gh0st026 / docker_export_postgre_table.sh
Last active May 17, 2021
Dump PostgreSQL Table in docker container as CSV file
View docker_export_postgre_table.sh
CONTAINER="name"
DB="Db name"
TABLE="Table Name"
FILE="file.csv"
sudo docker exec -u postgres ${CONTAINER} psql -d ${DB} -c "COPY ${TABLE} TO STDOUT WITH CSV HEADER " > ${FILE}
@ejmejm
ejmejm / pytorch_tips_yt_follow.ipynb
Created May 9, 2021
pytorch_tips_yt_follow.ipynb
View pytorch_tips_yt_follow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deltronzero
deltronzero / bh_split.py
Last active May 17, 2021
split one large bloodhound file into multiple smaller files to work around memory limitations
View bh_split.py
import json
file_name = "20210312152708_computers.json"
type = "computers"
object_limit = 10000
print(f"[*] loading {file_name}")
data = json.loads(open(file_name,'r').read().encode().decode('utf-8-sig'))
total_objects = data['meta']['count']