Skip to content

Instantly share code, notes, and snippets.

@elimence
elimence / bruteforce.py
Created October 1, 2020 07:03
Python script to brute force a 4 digit pass - bandits.overthewire
#!/usr/bin/env python
# coding: utf-8
# Python script to bruteforce a 4 digit pass - bandits.overthewire
import multiprocessing as mp
import socket
import time
import math
import sys
//
// GDWebViewController.swift
// GDWebBrowserClient
//
// Created by Alex G on 03.12.14.
// Copyright (c) 2015 Alexey Gordiyenko. All rights reserved.
//
//MIT License
//
class WillService {
constructor (options) {
this.willData = options.willData
}
getWill (willId) {
return this.willData.getWill(willId)
}
var myFunction = function() {
}
function myFunction() {
}
@elimence
elimence / ripple.js
Last active December 6, 2015 20:14
Ripple code sample
<ripple account-token="xvcwousdl" callback="processResults()">
Click To Upload Photo
</ripple>
@elimence
elimence / BalanceParen.java
Last active August 31, 2015 01:40
Accepts a list of strings containing parentheses, and checks if they are balanced or not
import java.util.*;
public class BalanceParen {
public static void main(String[] args) {
System.out.println(isBalanced(")))))"));
}
private static boolean isBalanced(String input) {
Stack<Character> stack = new Stack<>();
@elimence
elimence / server-vars.yml
Created August 17, 2015 22:37
Edx Ansible configuration script
EDXAPP_PLATFORM_NAME: 'platform-name'
EDXAPP_TIME_ZONE: ''
EDXAPP_TECH_SUPPORT_EMAIL: ''
EDXAPP_CONTACT_EMAIL: ''
EDXAPP_BUGS_EMAIL: ''
EDXAPP_DEFAULT_FROM_EMAIL: ''
EDXAPP_DEFAULT_FEEDBACK_EMAIL: ''
EDXAPP_DEFAULT_SERVER_EMAIL: ''
EDXAPP_BULK_EMAIL_DEFAULT_FROM_EMAIL: ''
EDXAPP_UNIVERSITY_EMAIL: ''
@elimence
elimence / PreFixer.java
Created March 19, 2015 21:28
Function to find the common prefix in a list of strings
public class PreFixer {
public static void main(String[] args) {
if(args.length < 1) {
System.out.println("invalid arguments");
return;
}
String commongPrefix = getCommonPrefix(args);
System.out.println("Common Prefix for list is : " + commongPrefix);
@elimence
elimence / AnagramSort.java
Created February 13, 2015 10:58
AnagramSort.java
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
public class AnagramSort{
public static void main( String[] args ){
HashMap< Integer, ArrayList< String >> hm = new HashMap();

Keybase proof

I hereby claim:

  • I am elimence on github.
  • I am elimence (https://keybase.io/elimence) on keybase.
  • I have a public key whose fingerprint is 844D A549 5C2D 3439 1055 380D 9BCB E2DD 971E 9B66

To claim this, I am signing this object: