Skip to content

Instantly share code, notes, and snippets.

View Ochuwa-sophie's full-sized avatar
Available to collaborate on asp.net projects.

Sophie Obomighie Ochuwa-sophie

Available to collaborate on asp.net projects.
View GitHub Profile
@ginkoid
ginkoid / writeup.md
Created July 18, 2022 22:53
GPUShop2 Writeup

GPUShop2 Writeup

We're given two websites:

  • gpushop2: a shop built with Laravel where customers can buy the flag using ETH.
  • paymeflare: the shop's reverse proxy and payment processor, built with Laravel and HAProxy.

The flag costs 1337 ETH. At current prices, that's about 2 million US dollars. We unfortunately aren't that rich, so we'll need to find another way to pay for our flag.

Flag item

/* CHAT STYLES */
* {
font-family: Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
letter-spacing: 0.5px;
}
.ce-chat-list {
background-color: rgb(240, 240, 240) !important;
import java.util.ArrayList;
/**
Given a sum, and a list of non-unique integer, find a combo that sums up to that target, or the closest.
Eg [2, 3, 3, 4], target = 5
O/p = [2, 3]
[2, 3, 3, 4], target = 8
O/p = [2, 3, 3]
[2, 3, 3, 4], target = 15
O/p = [2, 3, 3, 4]
@abakam
abakam / .cs
Last active October 30, 2020 13:17
Helper methods for decrypting Cipher (hex encoded string) given the IV and key for the Find Treasure Game using C#
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace FindTreasureApp.Services
{
public class Decryption
{
const string keyString = "57067125438768260656188878670043";
@mhfaisalbd
mhfaisalbd / SFSDOTNETDCP.md
Last active September 5, 2023 21:49
Steps for Full Stack .NET Developer | Career Path

Steps for Full Stack .NET Developer | Career Path

  1. Software Development Lifecycle (SDLC):

    Hint: Complete through Software Engineering theories. Select Agile as the targeted model from the 6 basics.

  2. Software Development Methodology:

    • Agile (SCRUM)
    • Sprint Event Board
  • Jira
import * as React from 'react';
import styles from './HelloTeams.module.scss';
import { IHelloTeamsProps } from './IHelloTeamsProps';
import { useEffect, useState } from 'react';
const HelloTeams: React.FunctionComponent<IHelloTeamsProps> = (props: IHelloTeamsProps) => {
const [themeState, setThemeState] = useState<string>(props.teamsTheme || "default");
const [styleState, setStyleState] = useState<string>(styles.containerdefault);
@swyxio
swyxio / 1.md
Last active February 8, 2024 22:30
Learn In Public - 7 opinions for your tech career

2019 update: this essay has been updated on my personal site, together with a followup on how to get started

2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos

@vman
vman / spfxPOST.ts
Last active September 19, 2022 15:48
Making a POST request to SharePoint from an SPFx webpart
private _makePOSTRequest(): void {
const spOpts: ISPHttpClientOptions = {
body: `{ Title: 'Developer Workbench', BaseTemplate: 100 }`
};
this.context.spHttpClient.post(`${this.context.pageContext.web.absoluteUrl}/_api/web/lists`, SPHttpClient.configurations.v1, spOpts)
.then((response: SPHttpClientResponse) => {
// Access properties of the response object.
console.log(`Status code: ${response.status}`);
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />