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
$File = "securestring.txt"; $Key = [byte]1..16; $Password = Get-Content $File | ConvertTo-SecureString -Key $Key | |
$BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($Password); $UnsecurePassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR); Write-Host $UnsecurePassword |
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
alert(`xss on ${document.domain}`); |
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
import 'package:frugal/frugal.dart'; | |
import 'package:messaging_sdk/messaging_sdk.dart'; | |
import 'package:w_session/w_session.dart'; | |
import 'package:grc_services_frugal/grc_service.dart'; | |
import 'package:grc_services_frugal/pbc_data_types.dart'; | |
const String _iamHost = 'https://olympus.wdesk.com'; | |
const String _messagingHost = 'https://messaging.olympus.wdesk.com'; | |
main() async { |
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
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" |
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/env python | |
import json | |
if __name__ == '__main__': | |
title = input('Title: ') | |
author_name = input('Author name: ') | |
num_pages = int(input('Number of pages: ')) | |
dict_ = { |
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/env python3 | |
""" | |
Sample script to convert an xml file into a csv file. | |
Dependencies: | |
http://pypi.python.org/pypi/beautifulsoup4 | |
http://pypi.python.org/pypi/lxml | |
""" |
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
>>> import sys | |
>>> sys.path.append('/usr/local/google_appengine/') | |
>>> from dev_appserver import fix_sys_path | |
>>> fix_sys_path() | |
>>> from google.appengine.api.croninfo import GrocValidator | |
>>> GrocValidator().Validate('invalidsyntax') | |
Traceback (most recent call last): | |
File "<input>", line 1, in <module> | |
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/croninfo.py", li | |
ne 78, in Validate |
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
/Users/mgbelisle/code/aggregator/aggregator/lib/_pytest/core.py:147: UserWarning: Module py was already imported from /Users/mgbelisle/code/aggregator/aggregator/lib/py/__init__.pyc, but /Users/mgbelisle/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages is being added to sys.path | |
from pkg_resources import iter_entry_points, DistributionNotFound | |
/Users/mgbelisle/code/aggregator/aggregator/lib/_pytest/core.py:147: UserWarning: Module _pytest was already imported from /Users/mgbelisle/code/aggregator/aggregator/lib/_pytest/__init__.pyc, but /Users/mgbelisle/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages is being added to sys.path | |
from pkg_resources import iter_entry_points, DistributionNotFound | |
/Users/mgbelisle/code/aggregator/aggregator/lib/_pytest/core.py:147: UserWarning: Module pytest was already imported from /Users/mgbelisle/code/aggregator/aggregator/lib/pytest.pyc, but /Users/mgbelisle/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages is being added to sys.path | |
f |
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
File "/Users/mgbelisle/code/aggregator/aggregator/session.py", line 17, in <module> | |
engine = create_engine('mysql+gaerdbms:///wf_warehouse', connect_args={"instance":"webfilings.com:wf-xbrl-wh:wf-xbrl-wh-dev"}) | |
File "/Users/mgbelisle/code/aggregator/aggregator/lib/sqlalchemy/engine/__init__.py", line 338, in create_engine | |
return strategy.create(*args, **kwargs) | |
File "/Users/mgbelisle/code/aggregator/aggregator/lib/sqlalchemy/engine/strategies.py", line 69, in create | |
dialect = dialect_cls(**dialect_args) | |
File "/Users/mgbelisle/code/aggregator/aggregator/lib/sqlalchemy/dialects/mysql/base.py", line 1848, in __init__ | |
default.DefaultDialect.__init__(self, **kwargs) | |
File "/Users/mgbelisle/code/aggregator/aggregator/lib/sqlalchemy/engine/default.py", line 129, in __init__ | |
self.paramstyle = self.dbapi.paramstyle |
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
def get_resource(resource_id=None): | |
for w in watchlist_list: | |
if (w.resource_id == resource_id and | |
w.user == get_current_user().resource_id): | |
return w | |
raise ResourceNotFound() |
NewerOlder