Skip to content

Instantly share code, notes, and snippets.

View pikulet's full-sized avatar
🌴
simple

sushie pikulet

🌴
simple
View GitHub Profile
@pikulet
pikulet / .prettierrc.json
Last active September 1, 2022 10:58
sample-prettier-rc-react-javascript
{
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false
}
@pikulet
pikulet / sirc-modelling.ipynb
Created November 10, 2021 03:49
SIRC Modelling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pikulet
pikulet / vpd.sql
Created October 29, 2021 02:50
example of using oracle virtual private database, including column masking
-- CREATE TABLES
DROP TABLE reviews;
DROP TABLE salary;
DROP TABLE employees;
CREATE TABLE employees (
emp_name VARCHAR(30),
phone VARCHAR(30),
position VARCHAR(30),
@pikulet
pikulet / im-too-slow
Created October 22, 2021 12:11
web clicker macro using selenium
import sys
import json
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
## set loop
@pikulet
pikulet / ncl-port-forward.py
Created December 30, 2020 20:24
port forward to access ncl experiments via rdp
#!/usr/bin/python3
import subprocess
import socket
import argparse
import os
# You may change this to your own ncl account
ncl_username = "username"
@pikulet
pikulet / nashpy_axelrod_example.ipynb
Created September 22, 2020 17:10
nashpy_axelrod_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pikulet
pikulet / findip.c
Created September 22, 2020 12:17
whatsmyip in c (nwtools)
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
@pikulet
pikulet / jotto-starters.py
Created March 6, 2020 19:34
Helper tool to help build your starters for Jotto :)
import string
import enchant
dictionary = enchant.Dict("en-US")
all_letters = string.ascii_lowercase;
def run():
words = list()
current_letters = all_letters;
@pikulet
pikulet / controller.py
Created December 20, 2019 07:37
pox controller example
# Pox controller
# 1. Self-learning switch
# 2. Quality of Service (queues)
# 3. Firewall
import sys
import os
import time
from sets import Set
@pikulet
pikulet / emjoyce.js
Last active April 20, 2024 09:42
emjack edited, with more fun commands :P (original from cub)
// ==UserScript==
// @name emjack
// @version 4.6.3.9
// @description some crap you may find useful
// @match https://epicmafia.com/game/*
// @match https://epicmafia.com/lobby
// @namespace https://greasyfork.org/users/4723
// ==/UserScript==
// welcome back