Skip to content

Instantly share code, notes, and snippets.

View wisdman's full-sized avatar

Dmitrii Poliakov wisdman

View GitHub Profile
openssl req -x509 -nodes -days 3650 -newkey ec:<(openssl ecparam -name prime256v1) \
-out localhost.crt -keyout localhost.key \
-subj '/CN=localhost' -extensions EXT -config <( \printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
@wisdman
wisdman / Preferences.sublime-settings
Created February 16, 2020 08:04
Sublime text configuration
{
"auto_complete_cycle": true,
"auto_find_in_selection": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"default_line_ending": "unix",
"drag_text": false,
"file_exclude_patterns":
[
".DS_Store",
@wisdman
wisdman / keybase.md
Last active September 15, 2019 09:07
keybase.md

Keybase proof

I hereby claim:

  • I am wisdman on github.
  • I am wisdman (https://keybase.io/wisdman) on keybase.
  • I have a public key ASDjK4oW8lMCUe1d4U34PFIpLu_OAjqkWQc7P4rF9lYzuQo

To claim this, I am signing this object:

@wisdman
wisdman / gx80-cined.html
Created January 16, 2019 01:05
Panasonic GX80 Cinelike D Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE>GX85 Cine D Hack</TITLE>
<META NAME="AUTHOR" CONTENT="Tommy Callaway">
</HEAD>
<BODY LANG="en-GB" DIR="LTR">
<P><A HREF="http://192.168.54.1/cam.cgi?mode=accctrl&amp;type=req_acc&amp;value=4D454930-0100-1000-8001-020A000270B8&amp;value2=D2304">HANDSHAKE</A></P>
<P><A HREF="http://192.168.54.1/cam.cgi?mode=camcmd&amp;value=recmode">CONNECT</A></P>
@wisdman
wisdman / CrowdsaleFlattened.sol
Last active July 12, 2018 19:16
Science Token (ST) Crowdsale contract
pragma solidity ^0.4.24;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic {
@wisdman
wisdman / ScienceTokenFlattened.sol
Last active June 1, 2018 14:36
ScienceTokenFlattened
pragma solidity ^0.4.13;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract BasicToken is ERC20Basic {
@wisdman
wisdman / font-family.css
Created March 4, 2018 09:44
Use system fonts for web
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
"Helvetica Neue", Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
@wisdman
wisdman / encode.sh
Created January 12, 2018 08:35 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
@wisdman
wisdman / favicon.sh
Created July 14, 2017 11:58
Create favicon from svg
convert -background none -resize 96x favicon.svg favicon.png
convert -background none -resize 180x favicon.svg apple-touch-icon.png
convert -background none -resize 196x favicon.svg android-chrome-icon.png
convert -background none favicon.svg -define icon:auto-resize="256,128,96,64,48,32,16" favicon.ico