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 python | |
| import sys, traceback | |
| def main(): | |
| number = 10 | |
| print(len(number)) | |
| if __name__=="__main__": | |
| try: |
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
| package helper; | |
| import android.graphics.Paint; | |
| import android.graphics.Typeface; | |
| import android.text.TextPaint; | |
| import android.text.style.TypefaceSpan; | |
| public class CustomTypeface extends TypefaceSpan { | |
| private final Typeface newType; | |
| private final float size; |
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 smtplib | |
| gmail_user = 'email@example.com' | |
| gmail_password = 'password' | |
| message='Subject:{}\n\n{}'.format('my subject', 'my text') | |
| server = smtplib.SMTP_SSL('smtp.gmail.com', 465) | |
| server.ehlo() | |
| server.login(gmail_user, gmail_password) | |
| server.sendmail(gmail_user, ['receiver1@example2.com'], message) | |
| server.close() |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <validation validateIntegratedModeConfiguration="false"/> | |
| <modules runAllManagedModulesForAllRequests="true"/> | |
| <handlers> | |
| <add name="ImageHandler" verb="*" path="*.png" type="WebApplication1.Handlers.ImageHandler, WebApplication1"/> | |
| </handlers> | |
| </system.webServer> | |
| <system.web> |
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
| ip.addr == x.x.x.x | |
| ip.dst == x.x.x.x | |
| ip.src == x.x.x.x | |
| tcp.port == x | |
| tcp.dstport == x | |
| tcp.srcport == x | |
| http or tcp.port == x | |
| ip.addr == x.x.x.x && ip.addr == x.x.x.x | |
| http.request |
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 requests | |
| import multiprocessing | |
| import time | |
| import sys | |
| from collections import Counter | |
| def get_uris(uri): | |
| session = requests.Session() | |
| try: | |
| response = str(session.get(uri).status_code) |
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 os | |
| import sys | |
| def search(p, s, ff): | |
| try: | |
| dirs = os.listdir(p) | |
| for item in dirs: | |
| if '.' in item: | |
| if item.endswith('.{}'.format(ff)): |
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 requests | |
| import json | |
| import time | |
| import pandas as pd | |
| import random | |
| import sys | |
| def send_notif(message): |
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
| git checkout --orphan latest_branch | |
| git add -A | |
| git commit -am "first commit" | |
| git branch -D main | |
| git branch -m main | |
| git push -f origin main | |
| git gc --aggressive --prune=all |
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
| select t2.* from (select json_extract(replace(value, "'",'"'),'$[*]') as arr from rh23_game_session inner join rh23_property_instance on rh23_game_session.id=rh23_property_instance.game_session where property_tk='PPG_LOG') as t1, | |
| JSON_TABLE(cast(t1.arr as NCHAR), '$[*]' COLUMNS ( | |
| li INT PATH '$.li', ts BIGINT PATH '$.ts') | |
| ) t2 |
OlderNewer