security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain /Library/Keychains/System.keychain > /tmp/nscacert_combined.pem
&& sudo cp /tmp/nscacert_combined.pem /Library/Application\ Support/Netskope/STAgent/data/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell: | |
" | |
" Basics { | |
set nocompatible " always first...no Vi mode! | |
filetype off | |
" } | |
" Infect with Vundle (Plugin command) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+q", | |
"command": "editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.peekDefinition", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin; | |
select mxact_create(:scale); | |
-- select mxact_create_and_select(:scale); | |
commit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION mxact_create(SCALE integer) RETURNS void AS $body$ | |
declare | |
default_rows_per_scale integer := 100000; | |
gap integer := 3000; | |
range integer := 100; | |
create_base_id integer; | |
segment_id integer; | |
begin | |
-- Generate a random number to use as a segment to offset concurrent connections from hitting the same exact range of ids | |
select (trunc(extract(millisecond from current_timestamp) * default_rows_per_scale, 0) % (100000 * scale)) into create_base_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION mxact_create_and_select(SCALE integer) RETURNS void AS $body$ | |
declare | |
default_rows_per_scale integer := 100000; | |
gap integer := 3000; | |
range integer := 100; | |
create_base_id integer; | |
read_base_id integer; | |
segment_id integer; | |
insert_timsetamp timestamp; | |
read_timestamp timestamp; |
- Determine profile folder:
Help > More troubleshooting information > Profile Folder
- Create a folder called chrome in the profile directory
- Create a file userChrome.css in the chrome directory with the following contents:
#TabsToolbar { visibility: collapse !important; }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
This is an outdated draft that was used to review the content with FreeBSD contributors. For the latest revision, vist http://shawndebnath.com/articles/2016/03/27/freebsd-jails-with-vlan-howto.html.
This article discusses how to set up jails on a FreeBSD 11-CURRENT system utilizing VIMAGE (aka VNET) to provide a virtualized independent network stack for each jail with support for VLAN tagging.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int is_unique(char* str) { | |
/* | |
* Bit check array for 256 values | |
* Rationale: 256 / 32 = 8. 32 for 32 bits in an integer | |
*/ | |
int check[8] = {0}; | |
int i, val, idx1, idx2; |
NewerOlder