Skip to content

Instantly share code, notes, and snippets.

View codecowboy's full-sized avatar

Luke Mackenzie codecowboy

  • UK
View GitHub Profile
@peterhurford
peterhurford / install_xelatex_on_mac.txt
Last active October 4, 2024 12:08
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
brew install pandoc
brew tap homebrew/cask
brew install --cask basictex
eval "$(/usr/libexec/path_helper)"
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin`
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install xelatex
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox
@widdowquinn
widdowquinn / kali_osx_persistence_wifi.md
Last active November 16, 2024 00:55
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

@zachskaggs
zachskaggs / gist:de1783feaebb70461182
Created September 12, 2014 16:17
Ninja Forms Field Chunk Wraps
<?php
function example_group_open_wrap( $field_id, $data ) {
if( $data['class'] == 'class1' ) {
echo '<div class="my-fields-group">';
}
}
add_action ( 'ninja_forms_display_before_field', 'example_group_open_wrap', 1, 2 );
function example_group_close_wrap( $field_id, $data ) {
if( $data['class'] == 'class2' ) {
@nekudo
nekudo / LoggerApplication.php
Created June 18, 2012 19:20
Monitoring PHP-CLI scripts with websockets
<?php
namespace WebSocket\Application;
/**
* Websocket-Server demo and test application.
*
* @author Simon Samtleben <[email protected]>
*/
class LoggerApplication extends Application
@joncave
joncave / endpoints.php
Created June 7, 2012 19:41
WP_Rewrite endpoints demo
<?php
/*
Plugin Name: WP_Rewrite endpoints demo
Description: A plugin giving example usage of the WP_Rewrite endpoint API
Plugin URI: http://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/
Author: Jon Cave
Author URI: http://joncave.co.uk/
*/
function makeplugins_endpoints_add_endpoint() {
<?php
/**
* Register an Admin Page - Example
*
* NOTE: MU Plugin.
*
* @author hakre <http://hakre.wordpress.com/>
* @link http://wordpress.stackexchange.com/questions/1778/admin-config-screen-without-menu
*/