Skip to content

Instantly share code, notes, and snippets.

🐒
trying to code his way out of it

Sebastian Gfeller sebug

🐒
trying to code his way out of it
Block or report user

Report or block sebug

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Main
module Main where
import Debug.Trace
import Network.XHR
import qualified Thermite as T
import qualified Thermite.Html as T
import qualified Thermite.Html.Elements as T
import qualified Thermite.Action as T
import qualified Thermite.Types as T
View gist:ddd82f3a14d152404c46
using System;
using System.IO;
using System.Collections.Generic;
using System.Security.Cryptography;
namespace Base64
{
public class Base64Stream
{
public static int Main(string[] args)
View APIServiceRedacted.swift
import Foundation
struct APIService {
let baseUrl = "redacted"
let applicationId = "redacted"
let eventCode = "redacted"
let token: String?
func login(c: Credentials, andThen: APIService -> ()) -> () {
View sample_get_GPO.ps1
$AppliedGPOs = $(Get-WmiObject -Namespace 'ROOT\RSOP\Computer' -Class RSOP_GPLink -Filter "AppliedOrder <> 0" | Select @{n='GPO';e={$_.GPO.Replace("RSOP_GPO.","")}} | Select -ExpandProperty GPO)
Get-WmiObject -Namespace 'ROOT\RSOP\Computer' -Class 'RSOP_GPO' -Filter $AppliedGPOs[0]
@sebug
sebug / SmartArt.purs
Created Jul 8, 2016
Canvas schematic arrows
View SmartArt.purs
module SmartArt where
import Prelude (bind, ($), (+), (*), (-), (/), pure)
import Control.Monad.Eff (Eff)
import Graphics.Canvas (CANVAS, fillPath, setFillStyle, moveTo, lineTo, fillText, setFont, measureText, Context2D)
import Data.List (List(..))
drawArrows :: forall eff. Context2D -> Number -> Number -> Number -> List String -> Eff (canvas :: CANVAS | eff) Number
drawArrows ctx dx x y Nil = pure x
drawArrows ctx dx x y (Cons l ls) = do
View setup.py
#!/usr/local/bin/python
from subprocess import call
from subprocess import Popen
from subprocess import PIPE
import re
import winrm
import sys
import time
settings = {
View sample_two_iis.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sampleback
spec:
replicas: 1
template:
metadata:
labels:
app: sampleback
View sample_two_iis_try_two.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sampleback
spec:
replicas: 1
template:
metadata:
labels:
app: sampleback
View test_webkit.py
from selenium.webdriver.common.by import By
from selenium import webdriver
import unittest
import time
class WebKitFeatureStatusTest(unittest.TestCase):
def test_feature_status_page_search(self):
self.driver.get("https://webkit.org/status/")
View Dockerfile
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y \
curl \
firefox \
python2.7 \
python-pip \
&& pip install selenium
RUN curl -L -O "https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz" && tar zxf geckodriver-v0.19.1-linux64.tar.gz
You can’t perform that action at this time.