Skip to content

Instantly share code, notes, and snippets.

{
"scanning_data": {
"admin": -1,
"fleet_speed": 0.041666666666666664,
"fleets": {
"15": {
"l": 0,
"lx": "2.78190182",
"ly": "0.75419964",
"n": "Pherkard I",
@oculushut
oculushut / gist:e5e332a47988cd6c40d7b32f11073d70
Created March 18, 2018 22:09
GMAIL API 3.x Python Example
https://pastebin.com/aCQaVavQ
@oculushut
oculushut / MvgMvs_Pipeline.py
Created December 18, 2016 21:13
MvgMvs_Pipeline.py with adjustments to stop it hanging - just specify start step, finish step, input and output folders
#!/usr/bin/python
#! -*- encoding: utf-8 -*-
#
# Created by @FlachyJoe
#
# this script is for easy use of OpenMVG and OpenMVS
#
#usage: SfM_MyPipeline.py input_dir output_dir
# [-h] [-f FIRST_STEP] [-l LAST_STEP] [--0 0 [0 ...]]
# [--1 1 [1 ...]] [--2 2 [2 ...]] [--3 3 [3 ...]]
//default is port 3000
meteor --port 8080
http://vim.wikia.com/wiki/VimTip83
Makes tabs 2 spaces in width:
set expandtab
set shiftwidth=2
set softtabstop=2
@oculushut
oculushut / Chef Cheat Sheet
Last active March 18, 2016 17:39
Chef Cheat Sheet
RUN LOCAL RECIPE BOOK
chef-client --local-mode [recipe book filename
REFERENCE FOR FILE RESOURCE
https://docs.chef.io/resource_file.html
DELETE A FILE RECIPE
file 'C:\Users\Administrator\chef-repo\settings.ini' do
action :delete
end
@oculushut
oculushut / PowerShell Cheat Sheet
Last active March 18, 2016 17:10
PowerShell Cheat Sheet
CREATE NEW FILE:
New-Item [filename/path] type=file
SEE IF FILE EXISTS
Test-Path [filename/path]
SEE FILE CONTENT
Get-Content [filename/path]
WRITE DATA IN FILE
@oculushut
oculushut / JGit
Last active March 20, 2020 19:25
Using JGit in Windows
1. Download jgit.sh from here: https://eclipse.org/jgit/download/
(Yes -> it's a file with a .sh extension and we want to work in Windows, but download it!)
2. Rename the downloaded file to something easier to deal with. E.g. "jgit.sh"
3. Create a new file called jgit.bat and stick it in the same folder as jgit.sh.
4. Type the following into the jgit.bat file:
@oculushut
oculushut / AWS Command Line
Created March 13, 2016 00:17
AWS Command Line Tips for Windows
1. Install Command Line Tool here: http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-msi-on-windows
2. Setup environmental variable: [DRIVE LETTER]:\Program Files\Amazon\AWSCLI
3. Command line examples:
//get some general help!
aws help
//setup credentials (get your credentials for the user from AWS Identity and Access Management
@oculushut
oculushut / soundTest.py
Created March 6, 2016 18:55
Python beep example
import winsound
def finishSound():
for i in range(1, 10):
winsound.Beep(i*100, 200)
for i in range(9, 0, -1):
winsound.Beep(i*100, 200)
finishSound()