By Gabriel Staples
TODO:
- Look into this one: https://gist.github.com/juanca/669c59f15a17e20022b8bd78b12889e6.
References:
By Gabriel Staples
TODO:
References:
git filter-branch --tree-filter 'git ls-files -z | xargs -0 dos2unix' -- --all |
# -*- coding: utf8 -*- | |
""" | |
A simple monkeypath for the pstats module to be able to see sub-millisecond timings | |
If display value is 0.000, display the time in microseconds | |
""" | |
import pstats | |
def f8(x): |
/** | |
* Example: | |
* | |
* <ng-container *rerender='changingInput'> | |
* this content will be re-rendered everytime `changingInput` changes | |
* </ng-container> | |
*/ | |
import { Directive, | |
Input, |
mkdir /tmp/www | |
cd /tmp/www; touch "$(hostname).txt" | |
sudo nohup python -m SimpleHTTPServer 80 > simplehttpserver.out & | |
#Start an HTTPS listener with some debug responses (I wonder if you can pipe to the HTTP server) | |
openssl req -x509 -newkey rsa:4096 -nodes -sha256 -keyout /tmp/key.pem -out /tmp/cert.pem -days 365 #Create self signed key. Only need this once and it will ask a few questions | |
sudo nohup openssl s_server -key /tmp/key.pem -cert /tmp/cert.pem -accept 443 -cipher kRSA+RSA -www > openssl.out & |
{ | |
"type": "object", | |
"required": ["Statement"], | |
"additionalProperties": false, | |
"properties": { | |
"Version": { | |
"type": "string", | |
"enum": ["2008-10-17", "2012-10-17"] | |
}, | |
"Id": { |
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
#!/usr/bin/env python | |
# https://github.com/jfsanchez91/pystun3/blob/py3-support/stun/__init__.py | |
import binascii | |
import logging | |
import random | |
import socket | |
import sys |
class A {
public x;
constructor(x: number) {
this.x =x
}
Foo(){
}
}
pipeline { | |
agent { | |
label 'jenkins-worker-light' | |
} | |
triggers { | |
cron(env.BRANCH_NAME == 'master' ? '*/15 * * * *' : '') | |
} | |
options { | |
timeout(time: 60, unit: 'SECONDS', activity: false) | |
} |