start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/perl -w # camel code | |
use strict; | |
$_='ev | |
al("seek\040D | |
ATA,0, 0;");foreach(1..3) | |
{<DATA>;}my @camel1hump;my$camel; | |
my$Camel ;while( <DATA>){$_=sprintf("%-6 | |
9s",$_);my@dromedary 1=split(//);if(defined($ | |
_=<DATA>)){@camel1hum p=split(//);}while(@dromeda |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
#!/usr/bin/env python2 | |
# coding: utf-8 | |
import os,socket,threading,time | |
#import traceback | |
allow_delete = False | |
local_ip = socket.gethostbyname(socket.gethostname()) | |
local_port = 8888 | |
currdir=os.path.abspath('.') |
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"], |
## | |
## IMAP CREDENTIALS | |
## | |
set smtp_url = "smtp://some_user@smtp.gmail.com:587/" | |
#set smtp_pass = "password" | |
set from = "someuser@example.com" | |
set realname = "Some User" | |
## | |
## IMAP SETTINGS |
#!/bin/bash | |
echo "Searching for rc packages..." | |
matches=$(find / -type d -path "*/node_modules/rc" 2>/dev/null) | |
echo -e "Checking for compromised versions...\\n" | |
for match in $matches | |
do | |
egrep 'version\":\s*\"((1.2.9)|(1.3.9)|(2.3.9))' "$match/package.json" && echo -e $match\\n | |
done |
message_scheduler = { | |
messages = {}, | |
tick = function() | |
local current_time = GetTime() | |
local next_messages_state = {} | |
for _, timed_message in ipairs(message_scheduler.messages) do | |
if current_time >= timed_message.time then | |
DebugPrint(timed_message.message) | |
else |
a simple install script to build a portable version of the [PlatformIO IDE][pioide] based on the atom editor.
referenced to [platformio/platformio-atom-ide/issues/158][ref]
wget https://gist.githubusercontent.com/janstuemmel/5dea680981d443c8d93c9c7e12f08611/raw/install.sh
chmod +x install.sh
./install.sh v1.14.4