Skip to content

Instantly share code, notes, and snippets.

:shipit:
Mixin ID: 31911

Crossle Song crossle

:shipit:
Mixin ID: 31911
Block or report user

Report or block crossle

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 Mixin testnet
1. Mixin testnet launch
$ ./mixin setuptestnet
$ mixin kernel -dir /tmp/mixin-7001 -port 7001
$ mixin kernel -dir /tmp/mixin-7002 -port 7002
$ mixin kernel -dir /tmp/mixin-7003 -port 7003
$ mixin kernel -dir /tmp/mixin-7004 -port 7004
$ mixin kernel -dir /tmp/mixin-7005 -port 7005
$ mixin kernel -dir /tmp/mixin-7006 -port 7006
View cosmos.go
package main
import (
"encoding/base64"
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
View gist:ba645c467550e0a1af3d280e529b2173
CREATE DATABASE database_name;
CREATE USER my_username WITH PASSWORD 'my_password';
GRANT ALL PRIVILEGES ON DATABASE "database_name" to my_username;
psql -U postgres
ALTER TABLE <tablename> OWNER TO <username>
ALTER DATABASE name OWNER TO new_owner;
sudo su - postgres
View gist:46ea0fd617f8286e87791c42be4d6fc7
POST /pair-setup RTSP/1.0
Content-Length: 32
Content-Type: application/octet-stream
CSeq: 0
DACP-ID: 5E094CBFFD22A7E
@crossle
crossle / EXIFdate2photo.sh
Last active Feb 19, 2017 — forked from unabridgedxcrpt/EXIFdate2photo.sh
Grab the EXIF date from original date time field and overlay it on a photo with white text with black stroke font.
View EXIFdate2photo.sh
#!/bin/sh
#Credit: http://dptnt.com/2009/08/add-date-time-stamp-to-jpeg-photos-using-free-software-mac-linux-nix-edition/
# I added:
# 1. formatting the EXIF date to use the month name and remove the seconds from the time display
# 2. outline the text for lighter backgrounds and better contrast in more images.
#Dependencies: imagemagick, exiftool
# Change the font variable to point to your font location
##font="~/Library/Fonts/digital-7 (mono).ttf"
## digital 7 for to make date time like the *olden days*: http://www.dafont.com/digital-7.font
View APNS pem generate
1. https://github.com/grocer/grocer
2. `openssl pkcs12 -in apns-export-cert.p12 -out cert.pem -nodes -clcerts`
View How to compile Windows ffmpeg
1. Install MSYS2 from https://msys2.github.io/
2. Install Mingw-W64 `pacman -S mingw-w64-i686-gcc`
3. Install git autoconf automake libtool make pkg-config
`pacman -S git`
`pacman -S autoconf`
`pacman -S automake`
`pacman -S libtool`
`pacman -S make`
`pacman -S pkg-config`
4. yasm:http://yasm.tortall.net/,change to yasm.exe,move to C:\msys32\usr\bin
@crossle
crossle / windows_openssl
Last active Mar 28, 2016
Windows OpenSSL compile
View windows_openssl
Open VS2015 x86 Native Tools Command Prompt.bat
git clone https://github.com/openssl/openssl.git
cd openssl
git checkout OpenSSL_1_0_1-stable
perl Configure VC-WIN32 --prefix=E:\Build\Libraries\openssl
ms\do_ms
nmake -f ms\nt.mak
nmake -f ms\nt.mak install
View MAC address generator
#define RANDOM(x) (rand()%x)
#define MAC_ADDR_LENGTH 6
void macGen() {
uint8_t HEXCHAR[256];
uint8_t MACAddr[MAC_ADDR_LENGTH];
for (int j = 0; j < 256; j ++) {
HEXCHAR[j] = j;
}
@crossle
crossle / install_theos.sh
Created Oct 21, 2015 — forked from tom-go/install_theos.sh
Theos install script
View install_theos.sh
#!/bin/bash
export THEOS=/opt/theos
# clone theos.git
cd /opt
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd $THEOS
mv include include.bak
You can’t perform that action at this time.