Skip to content

Instantly share code, notes, and snippets.

@chandanpasunoori
chandanpasunoori / curiefense-lua-build.error
Created July 23, 2022 09:01
curiefense-lua arm64 build error
cargo build
Compiling curiefense v0.1.0 (/Users/repo/curiefense/curiefense/curieproxy/rust/curiefense)
warning: field is never read: `active`
--> curiefense/src/config/flow.rs:20:5
|
20 | active: bool,
| ^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
note: `FlowEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
@chandanpasunoori
chandanpasunoori / index.html
Created March 29, 2022 04:34
Shaka 3.1.2 Fairplay
<video id="player" controls></video>
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: DEPLOYMENT_NAME
name: DEPLOYMENT_NAME
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"Name","URL","Username","Password"';
for(i=0; i<model.length; i++){
# Select <scm> tag
xml sel \
-N x=http://maven.apache.org/POM/4.0.0 \
-t \
-c '/x:project/x:scm' \
pom.xml
# Output with updated <scm> tag
@chandanpasunoori
chandanpasunoori / update-version
Created August 21, 2016 07:45 — forked from nacx/update-version
Update the Abiquo version in all pom.xml
#!/bin/bash
if [[ -z `which xmlstarlet` ]]; then
echo "xmlstarlet must be installed to run the script."
exit 1
fi
function usage() {
cat << EOF
Usage: ${0} -p <project root> -c <current version> -n <next version> [-h]
@chandanpasunoori
chandanpasunoori / monit-tweet.pl
Last active September 12, 2015 17:10 — forked from voodoojello/monit-tweet.pl
This is a simple script fired from the 'exec' function in monit [http://mmonit.com/monit/] that will scrape the monit log and tweet (DM) a message to the specified recipient(s).
#!/usr/bin/perl -w
#
# File: monit-tweet.pl
# App Version: 0.0.2.2a
# Created: Sat Nov 22 23:48:18 CDT 2010
# Modified: Thu Nov 17 20:38:06 CST 2011
# Authored: mark page [m.e.page@voodoojello.net]
#
# This is a simple script fired from the 'exec' function
# in monit [http://mmonit.com/monit/] that will scrape
import csv
from collections import defaultdict
with open('/Users/adam/Downloads/languages-2014.csv', 'r') as f:
results_2014 = [row for row in csv.reader(f)][1:]
with open('/Users/adam/Downloads/languages-2013.csv', 'r') as f:
results_2013 = [row for row in csv.reader(f)][1:]
with open('/Users/adam/Downloads/languages-2012.csv', 'r') as f:
mixin loadJQuery(version)
script(src='https://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js')
- var jQueryFallbacks = [];
- jQueryFallbacks[0] = 'http://code.jquery.com/jquery-' + version + '.min.js';
- jQueryFallbacks[1] = 'http://ajax.aspnetcdn.com/ajax/jQuery/jquery-' + version + '.min.js';
- jQueryFallbacks[2] = 'js/jquery' + (version.charAt(0) === '1'? '1': '') +'.js';
each url in jQueryFallbacks
script.
<?php
$menu_name = 'main_nav';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="main-nav">
<?php