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
.github-corner:hover .octo-arm { | |
animation: octocat-wave 560ms ease-in-out | |
} | |
@keyframes octocat-wave { | |
0%, 100% { | |
transform: rotate(0) | |
} | |
20%, | |
60% { | |
transform: rotate(-25deg) |
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
<!-- modified version of github-corners with transparent octocat --> | |
<a href="https://github.com/cimi/color-automata" class="github-corner" aria-label="View source on Github"> | |
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"> | |
<defs> | |
<mask id="octomask"> | |
<path fill="white" d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path> | |
<path fill="black" d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" style="transform-origin: 130px 106px;" class="octo-arm"></path> | |
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 2 |
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:DependsOn("org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r") | |
import org.eclipse.jgit.api.Git | |
import org.eclipse.jgit.diff.DiffEntry.ChangeType.* | |
import org.eclipse.jgit.lib.AbbreviatedObjectId | |
import org.eclipse.jgit.lib.Constants | |
import org.eclipse.jgit.lib.ObjectReader | |
import org.eclipse.jgit.lib.Repository | |
import org.eclipse.jgit.revwalk.RevCommit | |
import org.eclipse.jgit.revwalk.RevTree |
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
!ENTRY org.openjdk.jmc.console.ui 4 4 2021-02-11 17:23:03.865 | |
!MESSAGE Could not connect to Connection to be Edited : Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: | |
java.net.ConnectException: Connection refused: connect] | |
!STACK 0 | |
org.openjdk.jmc.rjmx.ConnectionException caused by java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: | |
java.net.ConnectException: Connection refused: connect] | |
at org.openjdk.jmc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:344) | |
at org.openjdk.jmc.rjmx.internal.ServerHandle.doConnect(ServerHandle.java:116) | |
at org.openjdk.jmc.rjmx.internal.ServerHandle.connect(ServerHandle.java:106) | |
at org.openjdk.jmc.console.ui.editor.internal.ConsoleEditor$Conn |
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 pwn import * | |
TICKET="ticket{charlie13078november:GKoPacNtB4q3dptlAjUMQlHHdNvsJxdmyjs1ABiR05oAFVa8guB34bd-hSYtx0glKQ}" | |
HOST="intro2.satellitesabove.me" | |
PORT=5001 | |
ANSWER="1789224188" | |
p = remote(HOST, PORT) |
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
# docker build -t ctf:ubuntu19.10 . | |
# docker run --rm -v $PWD:/pwd --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name ctf -i ctf:ubuntu19.10 | |
# docker exec -it ctf /bin/bash | |
FROM ubuntu:19.10 | |
ENV LC_CTYPE C.UTF-8 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update && \ | |
apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools vim gdb gdb-multiarch \ |
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 ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"strconv" | |
"strings" |
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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> | |
<script> | |
window.onload = function () { | |
var flag = "fb{cr055_s173_l34|<5_4r4_c00o"; | |
//var flag = "fffff"; | |
var cur_flag = flag; | |
var cur_char = ""; |
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
// https://leetcode.com/problems/median-of-two-sorted-arrays/ | |
import ( | |
"fmt" | |
"sort" | |
) | |
func findMedianSortedArrays(nums1 []int, nums2 []int) float64 { | |
total := len(nums1) + len(nums2) | |
mid1, mid2 := total / 2, total / 2 | |
if total % 2 == 0 { |
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 Benchmark from "benchmark"; | |
import benchmarks from "beautify-benchmark"; | |
import polyfill from "text-encoding"; | |
import murmurhash3jsOriginal from "murmurhash3js"; | |
import murmurhash3jsModified from "@cimi/murmurhash3js"; | |
test.only( | |
"benchmark example", | |
() => { |
NewerOlder