Skip to content

Instantly share code, notes, and snippets.

😆
What should I write here?

Philippe Rémy philipperemy

😆
What should I write here?
Block or report user

Report or block philipperemy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philipperemy
philipperemy / pickle_view.py
Created Mar 14, 2017
Pickle viewer in command line! Put it here /usr/bin/pickle_view.py
View pickle_view.py
#!/usr/bin/env python
import pickle
import sys
if __name__ == '__main__':
argv = sys.argv
if len(argv) <= 1:
print 'Specify pickle file as parameter.'
View lstm.py
from __future__ import print_function
import numpy as np
from keras.callbacks import Callback
from keras.layers import Dense
from keras.layers import LSTM
from keras.models import Sequential
from numpy.random import choice
from utils import prepare_sequences
@squadbox
squadbox / cool_gpu2.sh
Last active Jan 17, 2020
A script to control Nvidia GPU fan speed on headless (non-X) linux nodes
View cool_gpu2.sh
#!/bin/bash
# cool_gpu2.sh This script will enable or disable fixed gpu fan speed
#
# Description: A script to control GPU fan speed on headless (non-X) linux nodes
# Original Script by Axel Kohlmeyer <akohlmey@gmail.com>
# https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness
#
# Modified for newer drivers and removed old work-arounds
@stanzheng
stanzheng / google-tips
Last active Aug 12, 2019
Google Recruiter Candidate Tips ..
View google-tips
xxx,
Thanks again for taking the time to speak with me and for sending me your information. I'm excited to tell you that we would like to move forward in the process!
One of our coordinators will be emailing you within the next week from an @google.com domain with the date and time of your phone interview. In the meantime, I've included some preparation materials (below.)
Please note this will be a technical interview that will last for approximately 45 minutes. Google takes an academic approach to the interviewing process. This means that we are interested in your thought process, your approach to problem solving as well as your coding abilities. You may be asked questions that relate to technical knowledge, algorithms, coding, performance, how to test solutions, and perhaps your interest in Google products. The best advice that I can give you is to treat the interview like a conversation, talk through the problems, and please feel free to ask the interviewer if you are not clear with any of the questio
View git_bible.md

Note: this is a summary of different git workflows putting together to a small git bible. references are in between the text


How to Branch

try to keep your hacking out of the master and create feature branches. the [feature-branch workflow][4] is a good median between noobs (i have no idea how to branch) and git veterans (let's do some rocket sience with git branches!). everybody get the idea!

Basic usage examples

@victorreyesh
victorreyesh / Aircrack Commands
Created Sep 12, 2013
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
View Aircrack Commands
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
@stephenhardy
stephenhardy / git-clearHistory
Created Apr 26, 2013
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@bwall
bwall / asciiclean.py
Created Mar 24, 2013
Python script to force a file to readable ascii(new line and normal characters)
View asciiclean.py
import os
import sys
def CleanFile(fileA, fileB):
f = open(fileA, "rb")
w = open(fileB, "wb")
try:
byte = f.read(1)
while byte != "":
if ord(byte) == 10:
You can’t perform that action at this time.