Usage
./kill-vm.sh <vm_id>
./kill-vm.sh <vm_id>
#!/usr/bin/env bash | |
curl 'https://redirect1.bbportal.bsnl.co.in/portal/fetchUserQuotaPM.do' \ | |
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36' \ | |
--data-raw \ | |
'actionName=manual&_search=false&rows=4&page=1&sidx=&sord=asc' \ | |
--silent | /usr/local/bin/jq --raw-output '.rows[0] | "\(.totalUsage)\n---\nToday \(.dailyTotalUsage)"' |
name: Release Image | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish-image: | |
name: Publish Image | |
runs-on: ubuntu-latest |
import PyPDF2 | |
input_pdf = PyPDF2.PdfFileReader(open("document.pdf", "rb")) | |
num_of_pages_per_file = 10 | |
doc_counter = 1 | |
counter = 0 | |
output = PyPDF2.PdfFileWriter() | |
for split_range in [range(input_pdf.numPages)[x:x + num_of_pages_per_file] for x in | |
range(0, input_pdf.numPages, num_of_pages_per_file)]: |
I hereby claim:
To claim this, I am signing this object:
import requests | |
import threading | |
import os | |
import random | |
pastebinurl = "https://pastebin.com/u/gautamkrishnar" | |
def loaduseragents(): | |
""" | |
Loads the list of user agents from user_agents.txt | |
:return: | |
""" |
import threading | |
x=0 #to get a random number | |
killswitch = False # To kill thread after use | |
def threaded_return(que): | |
""" | |
Returning data from thread safely (Returns current value of x) | |
:param que: | |
:return: | |
""" | |
global x |
import multiprocessing as mp | |
process_list = [] | |
def pr1(test,test1): | |
""" | |
@:param: test,test1 (Integer) | |
process 1 | |
""" | |
print("Pr 1 prining... '"+str(test)+"','"+str(test1)+"' recieved...") |
from nltk.corpus import wordnet #Using Natural language toolkit (http://www.nltk.org/) | |
import codecs | |
def check(str): | |
if not wordnet.synsets(str): | |
return 1 | |
else: | |
return 0 | |
a=0 | |
if __name__ == '__main__': |
package sri | |
import ( | |
"crypto/sha256" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
) | |
func Generate256(file string) (string, error) { |