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
/** @param {NS} ns */ | |
/**** | |
runs on any server to hack every server. | |
weakens until they are minimum security | |
for a long time all you'll do is weaken but once they're all weakened it will hack/grow | |
****/ | |
export async function main(ns) { | |
while (true) { | |
let hostName = ns.getHostname(); | |
let servers = scan(ns,ns.getHostname(),[hostName]); |
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
/** @param {NS} ns **/ | |
/* | |
Inspired by https://www.reddit.com/user/pwillia7/ | |
but i wanted to use my own hack script and i didn't want to pass args | |
https://www.reddit.com/r/Bitburner/comments/rjkn4q/improved_hack_all_servers_script/ | |
*/ | |
export async function main(ns) { | |
//if no arguments provided tell the user how to use script. | |
ns.toast('Running worm on ' + ns.getHostname()); |
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
$url = "https://your devops url" | |
$username = "[email protected]" | |
$password = "access token" | |
# Retrieve list of all repositories | |
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password))) | |
$headers = @{ | |
"Authorization" = ("Basic {0}" -f $base64AuthInfo) | |
"Accept" = "application/json" | |
} |
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 jira import JIRA | |
import secrets | |
import urllib3 | |
import requests | |
urllib3.disable_warnings() # deleting warnings about ssl. i'm local and can check before i run this, so i don't care. | |
# By default, the client will connect to a JIRA instance started from the Atlassian Plugin SDK | |
# (see https://developer.atlassian.com/display/DOCS/Installing+the+Atlassian+Plugin+SDK for details). | |
# Override this with the options parameter. |
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 quickstart https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example | |
*/ | |
const axios = require('axios') | |
const qs = require('querystring'); | |
const main = async function () { | |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Timers; | |
using Confluent.Kafka; | |
using Confluent.Kafka.Serialization; | |
using Newtonsoft.Json; |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace AsyncAwaitStuff | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public class Example | |
{ | |
public static void Main() | |
{ | |
// Execute the antecedent. | |
Task<string> taskA = Task.Run(() => |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using Amazon; | |
using Amazon.KinesisFirehose; | |
using Amazon.KinesisFirehose.Model; | |
using Amazon.Runtime.CredentialManagement; | |
using Amazon.SQS; | |
using Amazon.SQS.Model; |