This file contains hidden or 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
| <html> | |
| <head></head> | |
| <body> | |
| <script> | |
| var YOUR_CLIENT_ID = 'YOUR_CLIENT_ID'; | |
| var YOUR_REDIRECT_URI = 'YOUR_REDIRECT_URI'; | |
| var fragmentString = location.hash.substring(1); | |
| // Parse query string to see if page request is coming from OAuth 2.0 server. | |
| var params = {}; |
This file contains hidden or 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
| import re | |
| import statistics | |
| import subprocess | |
| import typing | |
| SHOW_LOG = 'git rev-list --all --pretty=oneline' | |
| SHOW_COMMIT = 'git log -1 --stat {commit_id}' | |
| FILES_REG = re.compile(r'(\d+) files? changed') | |
| INSERTIONS_REG = re.compile(r'(\d+) insertions?\(\+\)') |
This file contains hidden or 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/env sh | |
| yum install gcc gcc-c++ | |
| yum -y install svn texinfo-tex flex zip libgcc.i686 glibc-devel.i686 | |
| mkdir ~/sourceInstallations | |
| cd ~/sourceInstallations | |
| svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_4_7_3_release/ | |
| cd gcc_4_7_3_release/ | |
| ./contrib/download_prerequisites | |
| cd .. |
This file contains hidden or 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/env python3 | |
| # I wrote this for assignment in 2016. | |
| # It provided AS IS without any changes. | |
| class CommandUsageError(Exception): | |
| """Исключение, обозначающее неверное использование команды""" | |
| pass |
This file contains hidden or 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
| /* | |
| Usage: | |
| 1. Paste script in the borwser console | |
| 2. Open instagram photo | |
| 3. Call `save()` | |
| */ | |
| function _download(src, filename) { | |
| /* kudos to https://stackoverflow.com/a/9970672/11717191 */ |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <script type = "text/javascript"> | |
| function WebSocketTest() { | |
| if !("WebSocket" in window) { | |
| alert("WebSocket NOT supported by your Browser!"); | |
| return; | |
| } |
This file contains hidden or 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
| { | |
| "manifest_version": 2, | |
| "name": "No Age Verification", | |
| "description": "Hides age verification block", | |
| "version": "1.0", | |
| "content_scripts": [{ | |
| "matches": ["https://servername/*"], | |
| "js": ["no-age-verification.js"] | |
| }], | |
| "permissions": ["activeTab", "https://servername/*"] |
This file contains hidden or 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
| module default { | |
| type File { | |
| required property path -> str; | |
| single link parent -> File { | |
| on target delete DELETE SOURCE; | |
| }; | |
| constraint exclusive on (.path); | |
| } |