Skip to content

Instantly share code, notes, and snippets.

View platinumthinker's full-sized avatar
🌐
Waiting

PlatinumThinker platinumthinker

🌐
Waiting
View GitHub Profile
1) проброс с текущего компа с порта 8888 на порт 192.168.23.30:8889 :
ssh -N -R 127.0.0.1:8889:0.0.0.0:8888 mixo@192.168.23.30
mvn compile
mvn package
nohup java -jar $JAR_FILE
@platinumthinker
platinumthinker / sh
Created July 15, 2016 08:43
sed magic delimiter
magic_sed() {
local INPUT_FILE=$1
local REGEXP=$3
local REPLACE=$4
sed -e 's'$'\001'"$REGEXP"$'\001'"$REPLACE"$'\001''g' $INPUT_FILE
}
@platinumthinker
platinumthinker / compact.cpp
Created December 30, 2015 10:16 — forked from Wunkolo/compact.cpp
Ascii Raymarcher
#include <math.h>
#include <algorithm>
#include <string>
#include <pmmintrin.h>
using namespace std;typedef float R;
#define _W 79
#define _H 39
#define EP 0.01f
#define OP operator
#define C const