View ssh-telegram.sh
# save it as /etc/profile.d/ssh-telegram.sh
# use jq to parse JSON from ipinfo.io
# get jq from here http://stedolan.github.io/jq/
USERID="<target_user_id>"
KEY="<bot_private_key>"
TIMEOUT="10"
URL="https://api.telegram.org/bot$KEY/sendMessage"
DATE_EXEC="$(date "+%d %b %Y %H:%M")"
TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt'
if [ -n "$SSH_CLIENT" ]; then
View main.go
package main
import (
"fmt"
"sync"
)
func main() {
var wg sync.WaitGroup
done := make(chan struct{})
View perfectaudience
<script type="text/javascript">
(function() {
window._pa = window._pa || {};
// _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions
// _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions
// _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/584981c812f0dba7a10000d5.js";
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
})();
View Main.elm
module Main exposing (..)
import Html exposing (h1, text)
import Html.Attributes exposing (id)
main : Html.Html msg
main =
h1 [ id "title" ] [ text "Hello World" ]
View security_provider.php
<?php
$security_provider = getenv('SECURITY_PROVIDER');
if (empty($security_provider)) {
if ('dev' === getenv('APP_ENVIRONMENT')) {
$security_provider = 'chain_provider';
} else {
$security_provider = 'ldap';
}
}
View sendPackageBasic.js
function packBox(item){
// Code that puts item in the box
console.log('Put ' +item+ ' in the box');
function addressPackage(address){
// Code that writes the address label
console.log('Addressed the box to ' +address+' and ready to send the '+item+' gift');
}
return addressPackage;
}
View gist:0cffaf74d1abc1a9a0afd3c00fbfe23f
/bin/bash /tmp/php_excel-master/libtool --mode=compile cc -I. -I/tmp/php_excel-master -DPHP_ATOM_INC -I/tmp/php_excel-master/include -I/tmp/php_excel-master/main -I/tmp/php_excel-master -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/opt/libxl/include_c/ -I/usr/include/libxml2 -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -c /tmp/php_excel-master/excel.c -o excel.lo
mkdir .libs
cc -I. -I/tmp/php_excel-master -DPHP_ATOM_INC -I/tmp/php_excel-master/include -I/tmp/php_excel-master/main -I/tmp/php_excel-master -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/opt/libxl/include_c/ -I/usr/include/libxml2 -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H -fstack-protector-strong -
View AccountController.cs
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Register(RegisterViewModel model)
{
if (ModelState.IsValid)
{
var user = new ApplicationUser { UserName = model.Email, Email = model.Email, Tag = model.tag};
var person = new Person(model.tag);
_context.Persons.Add(person);
View himalaya-strip-whitespace.js
function removeEmptyNodes (nodes) {
return nodes.filter(node => {
if (node.type === 'Element') {
node.children = removeEmptyNodes(node.children);
return true
}
return node.content.length
})
}