Skip to content

Instantly share code, notes, and snippets.

View timurgen's full-sized avatar
🐷
...

Tim Sam timurgen

🐷
...
View GitHub Profile
@timurgen
timurgen / go-os-arch.md
Created November 10, 2019 08:33 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.8.3 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • android
  • darwin
@timurgen
timurgen / pros_are_nice.md
Created May 27, 2019 09:25 — forked from morcefaster/pros_are_nice.md
Did anyone say drama?

Preface

Hello everyone. With Ceb drama getting so much traction, I decided to do what any rational person would do in this situation - download all public matches of all professional dota 2 players and then scan the all-chat for any racism or naughty naughty words, so the j͇͕͙ͣu͒͆s̼̠͍̖̮̳ͮ̃t̫̙̯͎ͬ̇̊̄iͨć̼͓ͬͨ͑ͣe͉̜̫̱̠̘̋̒ͅ can be upheld once and for all.

There are several nuances that stood in my way.

  1. Many professionals' pubs are kept private.
  2. Most of the trashtalk happens in ally chat, which isn't saved.
  3. Some of the trashtalk happens over mic... which again, isn't saved.
  4. Lots of horrible racism happens in non-English, making it hard to look for.
25 sjekkpunkter for IT-ansvarlige
Før et angrep:
Opprett en kill-switch
Ha beredskapsplanen klargjort, testet og utskrevet
Roller og ansvar må være definert i en utskrevet versjon
Et beredskapsrom må etableres og nøkkelpersonell må kjenne til dets funksjon
Sørg for å ha redundante telefonsystemer
@timurgen
timurgen / service.py
Created November 13, 2018 12:10
Sesam http transform app template
import json
import os
from flask import Flask, request, Response
APP = Flask(__name__)
def generate(entities: list):
@timurgen
timurgen / gist:d970f4da98362254b74c34bd3a710fd0
Created September 27, 2018 08:50
Embedded MVn jetty debug
MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
and so jetty:run
@timurgen
timurgen / measure-opens-and-closes.d
Created September 3, 2018 12:48 — forked from szaydel/measure-opens-and-closes.d
Dtrace snippets for observing the syscall interaction.
dtrace -qn '
/* Result is a CSV with three columns:
1) path,
2) count of open(s) without matching close(s)
3) number of times opened*/
int self fd[int];
string self path;
BEGIN {
start = timestamp;
}
@timurgen
timurgen / docker-clear.bat
Created August 27, 2018 07:13 — forked from daredude/docker-clear.bat
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
@timurgen
timurgen / pom.xml
Created August 9, 2018 13:42
Maven code analysis
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
@timurgen
timurgen / mw_esm.txt
Created May 7, 2018 09:16
Format of Morrowind's ESM Plug-In File
Format of Morrowind's ESM Plug-In File
Provided As-Is by Dave Humphrey - uesp@sympatico.ca
10 May 2003
Basic Overall Format:
The ESM/ESP/ESS files are composed entirely of records with the following format:

Installing the Oracle Java 8 JDK on SmartOS

  1. Go to: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. Download the "Solaris x64 XX.X MB jdk-8u66-solaris-x64.tar.gz" tarball from the Oracle Java SE site. You won't be able to paste the URL into curl on your SmartOS instance unless you click it first to get the authentication parameter. Regardless, get the tarball any way that you prefer and copy it onto your SmartOS instance.
  3. Extract the tarball and copy it to the location of your choosing.
  4. Globally set the value of the environment variable JAVA_HOME to the path of the JVM.
  5. Update your PATH to include the Java bin directory by setting it to PATH=$PATH:$JAVA_HOME/bin