Skip to content

Instantly share code, notes, and snippets.

@sbinlondon
sbinlondon / synthwaveglow.md
Last active February 22, 2024 22:40
Get the synth wave glow theme working for VS Code on Mac

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"

@michaelerobertsjr
michaelerobertsjr / react.md
Last active June 30, 2017 03:40
Resources to learn React

Resources for Learning React

Course

Complete the React Basics course on Team Treehouse, or the equivelant on CodeSchool, PluralSight, etc.

Read

Read Thinking in React and quickly review the React docs.

Watch

Watch Thinking in React follow along carefully and if time permits build the project along side watching.

@simonw
simonw / recover_source_code.md
Last active January 16, 2024 08:13
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@kpn-advanced-analytics
kpn-advanced-analytics / what_is_model_factory.md
Last active June 17, 2023 17:45
What is Model Factory?

As today’s companies strive to become more data driven, reliable analytics and data science has become an essential part of staying competitive and keeping costs under control. Because of this most mid to large companies have created their own analytics or data science teams, or roles, that focus on producing, maintaining and scoring models. These models are essentially pieces of code that use raw data to produce insights or strategies that other teams and management rely on. Because most analytics and data scientist teams create and tune these models by hand, this work is more of a R&D field rather than a bookkeeping one. For this reason, like most R&D products, the models need to be made ready to be run in a stable, reliable and auditable fashion as fast as possible.

What is Model Factory?

Model factory is a framework that helps analytics and data science teams go from a development model to a stable, reliable and auditable production model faster and with less guess work. A model factory is not one so

@Mistobaan
Mistobaan / tensorflow_cuda_osx.md
Last active July 25, 2023 18:54
How to enable cuda support for tensor flow on Mac OS X (Updated on April:2016 Tensorflow 0.8)

These instructions will explain how to install tensorflow on mac with cuda enabled GPU suport. I assume you know what tensorflow is and why you would want to have a deep learning framework running on your computer.

Prerequisites

Make sure to update your homebrew formulas

brew update
@Media = new Meteor.Collection('media')
Media.allow
insert: (userId, doc) ->
return userId && (doc.user == userId)
update: (userId, doc, fields, modifier) ->
return userId == doc.user
remove: (userId, doc) ->
@jefftriplett
jefftriplett / tor.py
Last active May 22, 2023 09:10
Python Requests + Tor (Socks5)
"""
setup:
pip install requests
pip install requests[socks]
super helpful:
- http://packetforger.wordpress.com/2013/08/27/pythons-requests-module-with-socks-support-requesocks/
- http://docs.python-requests.org/en/master/user/advanced/#proxies
"""
@UtahDave
UtahDave / iptables
Created March 21, 2013 22:38
An example of using the Salt peer interface to query web server IP addresses and add them to an iptables config.
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"