Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc> | |
NOTE - 2021-05-24 | |
----------------- | |
The script below isn't the fastest way to copy-and-paste from a protected | |
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from | |
the comments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CascadingAuthenticationState> | |
<DynamicRouter AppAssembly="@typeof(Program).Assembly"> | |
<Found> | |
<DynamicPage></DynamicPage> | |
</Found> | |
<NotFound> | |
Sorry no page | |
</NotFound> | |
</DynamicRouter> | |
</CascadingAuthenticationState> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use this to block Spotify ad servers | |
# sources: | |
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/ | |
# https://gist.github.com/teomaragakis/cb187d880c9a3ca2c8a2 | |
# https://gist.github.com/Shujito/b7a8f8f971b22f49b4313d7d3e8e6931 | |
# https://gist.github.com/rifkyekayama/f7c43e470f23878b20416e68f73829dc | |
# https://gist.github.com/shokoylele/8f4160a102480471cb946fbd800bc86a | |
############## Begin manual list | |
# 127.0.0.1 spclient.wg.spotify.com # might block the entire Spotify app from working too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Adapted from https://github.com/sindresorhus/github-markdown-css | |
The MIT License (MIT) | |
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Simple tool to extract local users and passwords from most Huawei routers/firewalls config files. | |
Will extract plain-text passwords and crypted credentials. Huawei config files use DES encryption with | |
a known key. Using this information, the script will decrypt credentials found in the config file. | |
Author: Etienne Stalmans (etienne@sensepost.com) | |
Version: 1.0 (12/01/2014) | |
""" | |
from Crypto.Cipher import DES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
SetBatchLines, -1 | |
#MaxHotkeysPerInterval 200 | |
#Include <VA> | |
; Create the slider window | |
Gui, Add, Progress, w100 h20 x0 y0 Range0-100 vVolSlider, 0 | |
Gui, Add, Text, w100 h20 x0 y0 vVolText BackgroundTrans Center +0x200, 0 | |
Gui, +AlwaysOnTop -Caption +ToolWindow | |
Gui, Show, Hide w100 h20 x0 y0, Volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test.client import RequestFactory | |
from django.http import HttpResponse | |
from django.db import transaction, DatabaseError | |
from django.db.models.sql.compiler import SQLCompiler | |
from django.utils import timezone | |
from silk.collector import DataCollector | |
from silk.config import SilkyConfig | |
from silk.model_factory import RequestModelFactory, ResponseModelFactory | |
from silk.profiling.profiler import silk_meta_profiler |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
NewerOlder