Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
%% socket examples from Joe Armstrong's "Programming Erlang, Second Edition". | |
-module(socket_examples). | |
-compile(export_all). | |
-import(lists, [reverse/1]). | |
string2value(Str) -> | |
{ok, Tokens, _} = erl_scan:string(Str ++ "."), | |
{ok, Exprs} = erl_parse:parse_exprs(Tokens), | |
Bindings = erl_eval:new_bindings(), | |
{value, Value, _} = erl_eval:exprs(Exprs, Bindings), |
#!/usr/bin/env python2 | |
""" | |
Other Repositories of python-ping | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
* https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
* https://bitbucket.org/delroth/python-ping | |
#!/usr/bin/escript | |
-module(options). | |
% main/1 calls main/3 with default values | |
main(Args) -> main(false, "", Args). | |
main(_, _, ["-h" | _ ] ) -> io:format("Help text...~n"); % help | |
main(_, Value, ["-f" | Args ] ) -> main(true, Value, Args); % set flag | |
main(Flag, _, ["-v", Value | Args ] ) -> main(Flag, Value, Args); % set value |
“clang”[ˈklæŋ] is the compiler based on LLVM for C, C++, Objective-C, and Objective-C++. clang is needed to install in order to Swift. Run the following code in Ubuntu terminal.
Before installing swift “libpython2.7” and “libpython2.7-dev” are needed to get Swift running. Run the following code.
public class HelloJNI { | |
static { | |
System.loadLibrary("hello"); // load libhello.so | |
} | |
private native void sayHello(); | |
public static void main(String[] args) { | |
new HelloJNI().sayHello(); | |
} |
import * as request from 'request'; | |
import * as fs from 'fs'; | |
import * as readline from 'readline'; | |
var google = require('googleapis'); | |
var googleAuth = require('google-auth-library'); | |
/*************** STEPS | |
- made a project on https://console.cloud.google.com/cloudpubsub/topicList?project=testmabs thing? |
#Database Configuration | |
spring.datasource.url=jdbc:mariadb://localhost:3306/billboard | |
spring.datasource.username=root | |
spring.datasource.password= | |
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver | |
#Hibernate Configuration | |
# Show or not log for each sql query | |
spring.jpa.show-sql=true |
Often referred to as the "swiss army of knife" for TCP/IP networking, [Netcat][1] is an extremely versatile Linux utility that allows you to do anything under the sun using TCP/UDP sockets. It is one of the most favorite tools for system admins when they need to do networking related troubleshooting and experimentation.
In this tutorial, I am sharing a few useful netcat examples, although the sky is the limit when it comes to possible netcat
use cases. If you are using netcat
regularly, feel free to share your use case.
Note that when you are binding to well-known ports (0-1023) with nc
, you need root privilege. Otherwise, run nc
as a normal user.
$ nc -vn 192.168.233.208 5000
This section outlines the necessary steps to write a simple native "Hello World!" JNI-enabled Android application.
This section assumes you have read and followed the steps in Compiling C/C++ code directly from Android Studio
File -> New -> New Project
.