Skip to content

Instantly share code, notes, and snippets.

View james-see's full-sized avatar
🍀
make your own luck

JC james-see

🍀
make your own luck
View GitHub Profile
@james-see
james-see / redirect_onion.js
Created February 2, 2017 21:51
redirect to onion if possible
<script type="text/javascript"> var onion = 'https://dua6u3dsufohrnsz.onion'; var query = new XMLHttpRequest(); if (window.location.protocol + "//" + window.location.hostname != onion) { query.onload = function(e) { if (query.status != 200) return else { window.location.assign(onion + window.location.pathname); } }; query.timeout = 5000; query.open('HEAD', onion, true); query.send(); }; </script>
<script type="text/javascript">
var onion = 'https://dua6u3dsufohrnsz.onion';
var query = new XMLHttpRequest();
if (window.location.protocol + "//" + window.location.hostname != onion) {
query.onload = function(e) {
if (query.status != 200) return
else {
window.location.assign(onion + window.location.pathname);
}
};
@james-see
james-see / tesseract_installer.md
Created March 14, 2017 19:45
INSTALL TESSERACT 3.05 MAC OS

sudo pip install pypdfocr
brew cask install xquartz
brew install xpdf
brew install imagemagick
brew install tesseract --with-all-languages

// html
<div id="feedback">
<a href="/feedback_url/">feedback</a>
</div>
// css
#feedback {
height: 104px;
@james-see
james-see / irssi-add-freenode.txt
Created June 20, 2017 01:44
commands to add freenode to irssi
/network add freenode
/server add -auto -net freenode -ssl -ssl_verify chat.freenode.net 6697
@james-see
james-see / pigpen_plaintext_font.json
Created August 6, 2017 20:35
Json dictionary of the pigpen plaintext font for fun ciphering
{
"a":"_|",
"b":"|_|",
"c":"|_",
"d":"]",
"e":"[]",
"f":"[",
"g":"-|",
"h":"|-|",
"i":"|-",
#!/bin/bash
# get ip address
myip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}')
yum update -y
yum install openssl openssl-devel -y
yum install groupinstall "Development Tools" -y
yum install fakeroot devscripts gawk gcc-multilib dpatch
wget http://www.squid-cache.org/Versions/v4/squid-4.0.21.tar.gz
tar -xvzf squid-4.0.21.tar.gz
cd squid-4.0.21
@james-see
james-see / README.md
Created December 11, 2017 03:30 — forked from ahmozkya/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
@james-see
james-see / what-is-a-cto.txt
Created December 20, 2017 03:06
what is a CTO?
Rapid Assessment – Execute
intensive analysis of your technology platforms to identify the
roadblocks to scaling and recommend changes in your platforms and
processes to improve business and technical operations and product
quality. Key deliverables include:
Documentation of current state of your platformsPrioritizing of key technical and product challengesRoadmap for remediating challenges and implementing new functionalityEvaluation of current team and organization structureExamination of key technical and product management processesDaily Management – of your technology development and product management teams, Including:
Working with business stakeholders and customers to identify new product needsPrioritizing work based on business need, ability to deliver, and cost.Supervising your technology and product teams.Improving technical and product management processes.Recruiting new talent and cycling out underperformers.Ensuring high-quality, on-time delivery of platform functionality.Working
with cus
@james-see
james-see / hello-rust.sh
Created April 28, 2018 17:58
helloworld rust app example code
#!/bin/bash
# optional step install homebrew first and install rust via brew
# brew install rust
# found and taken from here: https://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-1/
echo 'fn main() {
println!("hello world");
}' > hello_world.rs;
rustc hello_world.rs
./hello_world