Skip to content

Instantly share code, notes, and snippets.

View deathowl's full-sized avatar
🤖
beepboop

Csergő Bálint deathowl

🤖
beepboop
View GitHub Profile
~/work/TestSlide(requirements*) » docker build -t testslide-dev . deathowl@Therian
Sending build context to Docker daemon 226.5MB
Step 1/13 : FROM python:3.8
---> f5041c8ae6b1
Step 2/13 : WORKDIR /code
---> Using cache
---> db0ee56d907d
Step 3/13 : RUN apt-get update && apt-get install -y make && rm -rf /var/lib/apt/lists/*
---> Using cache
---> bde8fa75c548
### Keybase proof
I hereby claim:
* I am deathowl on github.
* I am deathowl (https://keybase.io/deathowl) on keybase.
* I have a public key whose fingerprint is 1DA4 D89D A6D9 CA5A BB20 92CA DC8A 74F1 A89C 8686
To claim this, I am signing this object:
#include <stdlib.h> // card > aek.ppm
#include <stdio.h>
#include <math.h>
typedef int i;typedef float f;struct v{
f x,y,z;v operator+(v r){return v(x+r.x
,y+r.y,z+r.z);}v operator*(f r){return
v(x*r,y*r,z*r);}f operator%(v r){return
x*r.x+y*r.y+z*r.z;}v(){}v operator^(v r
){return v(y*r.z-z*r.y,z*r.x-x*r.z,x*r.
y-y*r.x);}v(f a,f b,f c){x=a;y=b;z=c;}v
### Keybase proof
I hereby claim:
* I am deathowl on github.
* I am deathowl (https://keybase.io/deathowl) on keybase.
* I have a public key whose fingerprint is 0DAF FFCE C765 A8A4 3F78 FD81 5098 85A4 8631 7979
To claim this, I am signing this object:
@deathowl
deathowl / gist:6587232
Created September 16, 2013 22:02
Js konzolba vele.
setInterval(function(){
document.body.style.background = 'rgba('+Math.floor(Math.random()*255)+', '+Math.floor(Math.random()*255)+', '+Math.floor(Math.random()*255)+', 1)';
},50);
@deathowl
deathowl / gist:4577998
Created January 20, 2013 11:26
Getmxrr for windows server
/*
Workaround, because Windows hosts suck ass big time
Requires:
nslookup - ie. Windows - with access to 4.2.2.*
PHP >= 4.0.3
shell_exec() enabled - ie. safe mode disabled
*/
function getmxrr($host, &$mx, &$weight=NULL){
$res=explode("\n",strstr(shell_exec('nslookup -type=mx '.escapeshellarg($host).' 4.2.2.3'),$host));
if(!isset($res[1])){