Skip to content

Instantly share code, notes, and snippets.

View scholtzm's full-sized avatar
:shipit:
Howdy!

Michael Scholtz scholtzm

:shipit:
Howdy!
View GitHub Profile
@scholtzm
scholtzm / inject-jquery-bookmarklet.md
Last active October 18, 2017 17:14
[Inject jQuery] Inject jQuery into any website via developer console #inject #jquery #bookmarklet

As a bookmarklet:

javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'//code.jquery.com/jquery-latest.min.js')

Source: https://stackoverflow.com/a/7474386/7494817

@scholtzm
scholtzm / list.md
Last active January 21, 2022 18:01
[IT / Programming / Software Engineering Books to Read] List of influential books on programming and software engineering #list #books #programming

❌ Code Complete (2nd edition) by Steve McConnell

✅ The Pragmatic Programmer

❌ Structure and Interpretation of Computer Programs

❌ The C Programming Language by Kernighan and Ritchie

❌ Introduction to Algorithms by Cormen, Leiserson, Rivest & Stein

@scholtzm
scholtzm / best-audio.sh
Created September 23, 2017 13:35
[Download best audio from YouTube and convert to mp3] #youtube #audio #youtube-dl
youtube-dl -f bestaudio "<YOUTUBE VIDEO URL>" --exec "ffmpeg -i {} -codec:a libmp3lame -qscale:a 0 {}.mp3 && rm {}"
@scholtzm
scholtzm / keybase.md
Last active September 23, 2017 13:42
[Keybase Proof] #keybase

Keybase proof

I hereby claim:

  • I am scholtzm on github.
  • I am scholtzm (https://keybase.io/scholtzm) on keybase.
  • I have a public key whose fingerprint is 249E 3D3B C4D2 283C 6244 57B1 36E6 874B 76A4 9D4E

To claim this, I am signing this object:

@scholtzm
scholtzm / README.md
Last active September 23, 2017 13:42
[Enable 2FA on your Steam account] #steam

Simple script to enable 2FA on your Steam acocunt

  1. Add a valid phone number to your Steam account via store.steampowered.com account settings panel.
  2. Copy this code from this gist into a enable-2fa.js file and install the dependencies listed at the top.
  3. Start with VAPOR_ADMIN=7657xxx VAPOR_USER=username VAPOR_PASS=password node enable-2fa.js.
  4. Send chat message enable to your bot to enable 2FA.
  5. Wait for the response from Steam servers. Full response which will include your shared_secret and identity_secret will be printed to console as well as saved to a file.
  6. You will receive a text message.
  7. Send chat message confirm CODE to your bot.
  8. You will see a confirmation in the console. You can now press Ctrl+C to kill the script.
@scholtzm
scholtzm / idler.js
Last active October 31, 2015 21:11
Simple Vapor-based idler
var vapor = require('vapor');
var idler = require('vapor-idler');
// Create our config object
var config = {
username: username, // Steam login
password: password, // Steam password
displayName: 'My Cool Name', // This will show up in other users' friendslists
// Admins can issue "!idle" command (via regular chat messages) to start/stop the idling process
@scholtzm
scholtzm / cookie-test.js
Last active September 23, 2017 13:40
[Steam cookies expiration test] #steam
@scholtzm
scholtzm / receiver.js
Last active September 23, 2017 13:41
[Disappearing trade offer test] #steam
var vapor = require('vapor');
var storehouse = require('vapor-storehouse');
var bot = vapor();
bot.init({
username: process.env.USER,
password: process.env.PASS,
//admins: [ process.env.ADMIN ], /* we don't set admin so the offers are automatically declined */
displayName: 'Vapor Receiver'