This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain(twitter.com) { | |
.HeartAnimationContainer { | |
visibility: hidden; | |
} | |
.HeartAnimationContainer:after { | |
content: '🍔'; | |
visibility: visible; | |
display: block; | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python 3.5 | |
>>> (80**65)%133 | |
54 | |
# Python 2.7 | |
>>> (80**65)%133 | |
54L | |
# Julia 0.4.1 | |
julia> (80^65)%133 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ socat - TCP4:10.168.168.1:11880 | |
������!���� | |
(none) login: root | |
root | |
Password: zsun1188 | |
Welcome to | |
------- | / /--/ ___ | | |
/ | /| \/ _____ --|--| | |
/_____\ |--- --|-- //--/ / / | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/LuaJIT/LuaJIT/issues/34 | |
git clone https://github.com/LuaJIT/LuaJIT | |
cd LuaJIT | |
git checkout v2.1 | |
#toolchain | |
PREFIX=/home/markus/Downloads/buildroot-2015.11.1/output/host/usr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/luajit | |
local turbo = require("turbo") | |
turbo.log.categories.success = true | |
local df = "test/" | |
local index = class("index", turbo.web.RequestHandler) | |
function index:get() | |
self:write("Hello World!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ENVIRONMENT | |
local home = os.getenv ("HOME") | |
-- path go local geanylua conf | |
local _gldb = home .. "/.config/geany/plugins/geanylua/geany-lua-sql/?.lua;" | |
-- lua rock path | |
package.path = dldb .. home .. "/.luarocks/share/lua/" .. string.match (_VERSION, "%d.%d") .. "/?.lua;" .. package.path | |
package.cpath = home .. "/.luarocks/lib/lua/" .. string.match (_VERSION, "%d.%d") .. "/?.so;" .. package.cpath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@arch markus]# lsof -i|grep redis | |
redis-ser 9452 redis 4u IPv4 101278 0t0 TCP localhost.localdomain:redis (LISTEN) | |
[root@arch markus]# grep bind /etc/redis.conf | |
# interfaces using the "bind" configuration directive, followed by one or | |
# bind 192.168.1.100 10.0.0.1 | |
bind 127.0.0.1 | |
[root@arch markus]# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt update \ | |
&& apt install -y cargo wget unzip bash redis-tools | |
RUN wget https://github.com/NicolasLM/nucleon/archive/master.zip -O /tmp/nucleon.zip \ | |
&& unzip /tmp/nucleon.zip \ | |
&& cd nucleon-master \ | |
&& cargo build --release \ | |
&& cp -a target/release /opt \ | |
&& rm /tmp/nucleon.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
-- resp = require "resp" | |
-- resp ("set", "A", 1) | |
-- *3\r\n$3\r\nset\r\n$1\r\nA\r\n$1\r\n1\r\n | |
re_resp = function (...) | |
local arg = {...} | |
if (#arg == 0) then io.write ("\n") return end | |
io.write (string.format ("$%d\r\n%s\r\n", #tostring (arg[1]), tostring (arg[1]))) |