sh install-docker.sh- log out
- log back in
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
| # -*- coding: utf-8 -*- | |
| import ldap | |
| #Fix persian letters that cause issues in queries like 'ی' | |
| def fixPersianString(text): | |
| if text is None: | |
| return None | |
| text = text.replace('\xd9\xa0', '\xdb\xb0') | |
| text = text.replace('\xd9\xa1', '\xdb\xb1') |
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> | |
| <body> | |
| <script type="text/javascript"> | |
| var mycube = [ | |
| 'qwe12', | |
| 'ret32', | |
| 'fer34', | |
| 'wqe24', | |
| 'ter67', | |
| 'yet56', |
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
| from mechanize import Browser | |
| from bs4 import BeautifulSoup as BS | |
| import argparse, re | |
| class Zebelle : | |
| def __init__(self) : | |
| self.br = Browser() | |
| self.br.set_handle_robots(False) | |
| self.br.set_handle_referer(False) |
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
| #!/bin/bash | |
| for i in {200..250} | |
| do | |
| echo "{"endpoint_param" : $i}" > app/src/main/assets/endpoint.json | |
| ./gradlew assembleRelease | |
| mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/$i.apk | |
| done |
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
| <?php | |
| /** | |
| * Core User API | |
| * | |
| * @package WordPress | |
| * @subpackage Users | |
| */ | |
| /** | |
| * Authenticates and logs a user in with 'remember' capability. |
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
| #!/bin/bash | |
| # diff.sh src_dir dest_dir output_dir | |
| src="6-SP20" | |
| dest="MajorRevision_6_SP20" | |
| outpt="diff_results" | |
| mkdir $outpt | |
| cp -r $src/* $outpt/ | |
| find $src/ -name '*.tex' -print0 | | |
| while IFS= read -r -d $'\0' line; do |
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
| // Visit https://randomwordgenerator.com/ | |
| // Paste JS in console | |
| for(i=0;i<150;i++) { | |
| $('input[type="submit"]').click(); | |
| var text = ''; | |
| $('#result li div span').each(function(){text += $(this).text();}); | |
| console.log(text); | |
| } | |
| // Save results as log file | |
| // Extract domain names |
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
| sudo fallocate -l 1G /swapfile | |
| sudo chmod 600 /swapfile | |
| sudo mkswap /swapfile | |
| sudo swapon /swapfile | |
| echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab |
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
| https://taranjeet.cc/auto-backup-mysql-database-to-google-drive/ | |
| https://github.com/gdrive-org/gdrive/issues/426 |
OlderNewer