Skip to content

Instantly share code, notes, and snippets.

View owenselles's full-sized avatar
😃
Working

Owen Selles owenselles

😃
Working
View GitHub Profile
override fun getShiftsMonth(month: Calendar, listener: CompanyConnection.ConnectionListener,
identifier: String) {
month.set(Calendar.DAY_OF_MONTH, 1)
val start = month.clone() as Calendar
month.add(Calendar.MONTH, 1)
month.add(Calendar.DAY_OF_MONTH, -1)
val period = Period(start, month)
if (login_cookies.size == 0) {
Log.println(Log.ERROR, "TAG", "NO LOGIN COOKIES!")
@owenselles
owenselles / StartScreen.java
Created January 22, 2019 11:55
AH Werkplanner code snippet
package owenselles.com.werkplanner;
import android.app.DatePickerDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import java.util.Calendar;
@owenselles
owenselles / Pokemon.java
Created January 22, 2019 11:51
Pokemon Game Example
package nl.delphinity.pokemon.model.general;
import nl.delphinity.pokemon.model.battle.Attack;
import nl.delphinity.pokemon.model.trainer.Trainer;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Pokemon {
package nl.delphinity.pokemon.model.trainer;
import nl.delphinity.pokemon.model.area.Area;
import nl.delphinity.pokemon.model.area.Pokecenter;
import nl.delphinity.pokemon.model.battle.Battle;
import nl.delphinity.pokemon.model.general.Pokemon;
import nl.delphinity.pokemon.model.general.PokemonData;
import nl.delphinity.pokemon.model.general.PokemonType;
import nl.delphinity.pokemon.model.item.Inventory;
import nl.delphinity.pokemon.model.item.ItemType;
========= RESTART: /Users/gebruiker/Documents/Python/Flipp3rrrBot.py =========
SSL handshake failed on verifying the certificate
protocol: <asyncio.sslproto.SSLProtocol object at 0x10a52ad68>
transport: <_SelectorSocketTransport fd=14 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 625, in _on_handshake_complete
raise handshake_exc
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 763, in do_handshake
@owenselles
owenselles / whatsapp_phone_enumerator_floated_div.js
Last active November 2, 2019 18:21
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
from discord.ext import commands
from .utils import checks
class Tomanybots:
def __init__(self, bot):
self.bot = bot
@commands.command()
@checks.is_owner()
async def tomanybots(self):