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
const SANDBOX_URL = "https://api.sandbox.paypal.com"; | |
export class PayPalInterface { | |
async getToken() { | |
if (!this._token || | |
this._token.expires_in + this._token.created >= new Date().getTime()) { | |
const url = SANDBOX_URL + '/v1/oauth2/token' | |
const headers = { | |
'Accept': 'application/json', | |
'Accept-Language': 'en_US', |
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 __future__ import print_function | |
import twitter | |
#delete tweets that follow a known pattern | |
#requires python-twitter | |
CONSUMER_KEY = 'NOPE' | |
CONSUMER_SECRET = 'NOPE' | |
ACCESS_TOKEN = 'NOPE' | |
ACCESS_TOKEN_SECRET = 'NOPE' | |
#gety your keys following this tutorial : https://python-twitter.readthedocs.io/en/latest/getting_started.html |
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
#!/bin/bash | |
#program that decrypts and encrypts a file using des3 | |
#encrypts a file and save it | |
if [ "$1" = "-e" ]; then | |
openssl des3 < $2 > $2.des3 | |
fi | |
#encrypts a file and erase the original | |
if [ "$1" = "-ee" ]; then |