Skip to content

Instantly share code, notes, and snippets.

Pascal Brokmeier pascalwhoop

View GitHub Profile
@pascalwhoop
pascalwhoop / custom_style_youtube_distract_free.css
Created Jan 21, 2019
A quick gist that removes all the noise from youtube
View custom_style_youtube_distract_free.css
.ytd-browse{
display: none;
}
.ytd-watch-next-secondary-results-renderer{
display:none;
}
.ytd-comments{
display:none;
}
View oe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ohe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View le.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View le.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View le.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:1c34d21276bb42cdd57d71c7b292d3b3
su
cd /mnt
mkdir nvme extssd
mount /dev/nvme0n1p2 nvme
mount /dev/sda2 extssd
rsync --delete -avhPHAX extssd nvme
# rsync parameters explained
# -a = archive, same as -rlptgoD
# -v = verbose
# -h = human readable numbers
@pascalwhoop
pascalwhoop / smart_playlist_mpd.sh
Created Jun 20, 2018
Small snippet that is useful for generating smart playlists based on time added to library. I usually listen to newly added music more regularly and this is a nice help
View smart_playlist_mpd.sh
#!/bin/bash
cd ~/Music/
find ./ -type f -mtime -31 | sed 's/\.\///g' > ~/.config/mpd/playlists/New_Last_Month.m3u
find ./ -type f -mtime -7 | sed 's/\.\///g' > ~/.config/mpd/playlists/New_Last_Week.m3u
find ./ -type f -mtime -365 | sed 's/\.\///g' > ~/.config/mpd/playlists/New_Last_Year.m3u
@pascalwhoop
pascalwhoop / ComponentInfo.txt
Last active Jun 11, 2018
A list of a lot of ComponentInfo strings for some 10k+ applications on the Google Play Market
View ComponentInfo.txt
AutomateIt.mainPackage/AutomateIt.mainPackage.AutomateItMainActivity
AutomateIt.mainPackage/automateItLib.mainPackage.AutomateItMainActivity
AutomateItPro.mainPackage/automateItLib.mainPackage.AutomateItMainActivity
AutomateItPro.mainPackage/automateItLib.mainPackage.MainActivity
Com.sktelecom.minit/Com.sktelecom.minit.IntroActivity
HinKhoj.Dictionary/com.hinkhoj.dictionary.activity.ConfigureActivity
PSB.Droid/md537cd9a14833c7ae877f7f1aebf31611f.SplashScreenActivity
accky.kreved.skrwt.skrwt/accky.kreved.skrwt.skrwt.LaunchScreenActivity
accky.kreved.skrwt.skrwt/accky.kreved.skrwt.skrwt.activity.LaunchScreenActivity
ace.jun.simplecontrol/ace.jun.simplecontrol.MainActivity
@pascalwhoop
pascalwhoop / TestMultipleCoroutines.py
Created Jun 8, 2018
shows how multiple coroutines can be used in parallel
View TestMultipleCoroutines.py
import unittest
class TestMultipleCoroutines(unittest.TestCase):
def test_multiple_coroutines(self):
"""A test for myself. Learning how to use coroutines."""
cr = []
received = []
#creating two callables and calling one from other
def callable2():
observation = (yield)
You can’t perform that action at this time.