Skip to content

Instantly share code, notes, and snippets.

View walchko's full-sized avatar

Kevin walchko

View GitHub Profile
@walchko
walchko / js.py
Last active October 18, 2020 18:04
python Linux PS4 joystick
#!/usr/bin/env python
#-----------------------------------------
# MIT License
# Taken from: https://github.com/autorope/donkeycar/blob/dev/donkeycar/parts/controller.py
# 3 Jan 2020
# all of the button/axes names were wrong, but it did work
# I am using the USB cable and the touch pad/button dives my mouse ...
# maybe if I fix that, then the buttons will go back to what they were?
#------------------------------------------
# kernel doc: https://www.kernel.org/doc/Documentation/input/joystick-api.txt
@walchko
walchko / go.sh
Created May 25, 2020 01:59
Download music from youtube
#!/bin/bash
youtube-dl -x --embed-thumbnail --add-metadata --audio-format m4a $1
@walchko
walchko / buildtools.py
Created January 20, 2020 03:40
My build tools
#!/usr/bin/env python
##############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2017 Kevin J. Walchko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@walchko
walchko / joystick.c
Created January 3, 2020 22:51 — forked from jasonwhite/joystick.c
Reads joystick/gamepad events on Linux and displays them.
/**
* Author: Jason White
*
* Description:
* Reads joystick/gamepad events and displays them.
*
* Compile:
* gcc joystick.c -o joystick
*
* Run:
@walchko
walchko / bibtex.png
Created July 27, 2019 12:57 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@walchko
walchko / nodejs-cheatsheet.js
Created July 7, 2019 18:47
node cheatsheet
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@walchko
walchko / adafruit_gps.py
Created July 7, 2019 17:01
Adafruit Ultimate GPS Example
# The MIT License (MIT)
#
# Copyright (c) 2017 Tony DiCola for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@walchko
walchko / cpp17.cpp
Last active June 22, 2019 13:25
Some cool things from C++17
#include <iostream>
#include <vector>
#include <map>
#include <stdint.h>
#include <optional>
#include <any>
using namespace std;
optional<int> convert(const string& s) {
@walchko
walchko / git_submodules.md
Created June 9, 2019 10:53 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@walchko
walchko / temporary-email-address-domains
Created June 9, 2019 10:50 — forked from gitaarik/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0845.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
10minutemail.net
12houremail.com
12minutemail.com