Skip to content

Instantly share code, notes, and snippets.

@learnitall
learnitall / Un-censor Studydotcom.txt
Created March 16, 2016 01:48
Neat little trick to gain access to full lessons on study.com without a paid membership
Uncensoring study.com lessons is actually pretty simple- it only requires devling into the developer-tools in Google Chrome
NOTE: This trick only unblocks the lesson transcripts, I haven't explored getting access to the full lesson video yet.
Here are the steps:
1. Go to a lesson of choice on study.com and open the developer-tools in Chrome (example URL:
http://study.com/academy/lesson/root-cap-function-definition-quiz.html)
2. Use the page inspector tool and select the "Lesson Transcript" text. Confirm that in the Elements tab of the dev tools,
the line "<span>Lesson Transcript</span>" is highlighted (should be under a div that has the id "transcriptHeader")
3. Hit the dropdown triangles of "<div class="transcriptContainer articleContent" data-cname="main_content>" and
<div id="mainArticle" class="transcript" data-cname="lesson_transcript"> (the latter should appear after the contents of
@MightyPork
MightyPork / usb_hid_keys.h
Last active July 18, 2024 08:20
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@schollz
schollz / run.sh
Created October 16, 2017 12:39 — forked from miguelmota/config.sh
IPFS change port
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/9001
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
" Colemak stuff
nnoremap k h
nnoremap n j
nnoremap e k
nnoremap i l
nnoremap d v
nnoremap D V
nnoremap s d
nnoremap S D
@lightrush
lightrush / README.md
Last active September 2, 2023 22:57
Normalize volume level with PulseAudio

Normalize volume level with PulseAudio and simultaneous output

This should work conceptually on any Linux OS with PulseAudio but these particular instructions are for Ubuntu. There are two major reasons for using simultaneous output. The first is self-evident - we can output to say a bluetooth headset and wired headphones at the same time to enable two people to watch a movie with headphones on a single computer. The second reason is a sort of a convenience for setup. We know the simultaneous sink name so the default.pa config would work without modification so long as simultaneous output is enabled. If we were to set this up without that, we'd have to customize the config with our specific device sink name. That's totally doable but personally I always setup simultaneous output. That's why I haven't described the alternative in this gist.

@jlengrand
jlengrand / spotiProxy
Created April 22, 2018 17:45
Activating / Deactivating Spotify proxy settings
#!/bin/sh
ON_OFF=$1
SPOTIFY_PREFS="$HOME/Library/Application Support/Spotify/prefs"
PROXY_ON="network.proxy.mode=2" #HTTP Proxy
PROXY_OFF="network.proxy.mode=1" #No proxy
if [ ! -f "$SPOTIFY_PREFS" ]; then
echo "Spotify preference file not found. Exiting"
exit 1
@DucNgn
DucNgn / PowerlineForTerminal.md
Last active March 29, 2024 03:28
Powerline style for terminal OSX

Installing and configuring Powerline-style command line tools for developers (OSX)

Intro:

For every developer, terminal is their weapon, so why don't you customize it to become a powerful, and a beautiful weapon?

Powerline style refers to a terminal style that helps developer to keep track of their workflow easily, allows them to have perfect visual on current directories and new changes. It is also git recognizable, and failure detector that will help your development process becomes more interact and much faster.

In this guideline, I will introduce you with 2 smart shells: Zsh and Fishshell. Both are perfect for the development jobs due to its rich of resources, and user-friendly.

Note:

@samuelsmal
samuelsmal / how-to-enable-notes-export-from-kobo.md
Last active July 15, 2024 12:04
how to export notes and highlights from kobo

Steps

  1. connect kobo to your device
  2. open a file browser and navigate to the mounted kobo folder
  3. navigate to the hidden folder .kobo/Kobo
  4. open the file Kobo eReader.conf
  5. navigate to the section [FeatureSettings], if it doesn't exist, create it.
  6. add the line ExportHighlights=true and save
  7. disconnect the device
  8. now you can long press on a book and export the note file into a .txt file which will be saved alongside your books. to get it connect your ereader.
@Sebazzz
Sebazzz / ACrealityCR6Issue.md
Last active March 10, 2024 08:46
Creality CR-6 issue list (including listing of motherboard issues)

Creality CR-6 issue list

This is an initiative to create an overview of the issues found with the Creality CR-6 SE.

As of this writing (2020-09-19) the large number of the motherboard issues have not been publicly acknowledged. Hopefully this overview forces Creality to acknowledge the issues with the Creality CR-6 SE leveling free 3d printer.

Update 2021-07-17 from Creality

According to Creality all issues should be resolved in the newer models:

Here are the improvements we did as below:

@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active July 18, 2024 14:58
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.