This file contains hidden or 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
#!/bin/bash | |
# Copyright (c) 2019-2020 by Pulse Secure, LLC. All rights reserved | |
HOMEDIR=$HOME | |
INSTALLDIR=/usr/local/pulse | |
PULSEDIR=$HOME/.pulse_secure/pulse | |
PULSECERTDIR=$PULSEDIR/certificates | |
SVCNAME=pulsesvc | |
UTILNAME=pulseutil |
This file contains hidden or 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
Name: blacklist | |
Type: hash:net | |
Revision: 6 | |
Header: family inet hashsize 2048 maxelem 65536 | |
Size in memory: 132248 | |
References: 0 | |
Number of entries: 4769 | |
Members: | |
1.203.115.64 | |
1.213.195.154 |
This file contains hidden or 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
PAPER := main | |
# remember to add \usepackage[dvipdfm]{graphicx} to your $(PAPER).tex | |
pdf: | |
latex $(PAPER).tex | |
dvipdfm $(PAPER).dvi | |
.PHONY: pdf |
This file contains hidden or 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
SOURCE := paper.tex | |
mk: | |
latexmk -cd -f -pdf -interaction=nonstopmode -synctex=1 $(SOURCE) | |
pdf: | |
pdflatex $(SOURCE) | |
clean: | |
$(call clean) |
This file contains hidden or 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
// .jupyter/custom/custom.js | |
require(["codemirror/keymap/sublime", "notebook/js/cell", "base/js/namespace"], | |
function(sublime_keymap, cell, IPython) { | |
cell.Cell.options_default.cm_config.keyMap = 'sublime'; | |
cell.Cell.options_default.cm_config.extraKeys['Ctrl-Enter'] = function() { console.log('ctrl-enter') }; | |
var cells = IPython.notebook.get_cells(); | |
for (var cl = 0; cl < cells.length; cl++) { | |
cells[cl].code_mirror.setOption('extraKeys', { | |
'Ctrl-Enter': function () {} |
This file contains hidden or 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
export QT_SCALE_FACTOR=2 | |
export QT_AUTO_SCREEN_SCALE_FACTOR=0 | |
cat << EOF > /dev/null | |
Below is an example of *.desktop file (Ubuntu 16.04) | |
[Desktop Entry] | |
Name=Roto3T | |
Exec=env QT_SCALE_FACTOR=2 QT_AUTO_SCREEN_SCALE_FACTOR=0 /opt/robo3t/bin/robo3t |
This file contains hidden or 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
TARGET := $(MAKECMDGOALS) | |
CXX_FLAGS := -std=c++11 | |
$(TARGET): force-clean | |
g++ $(TARGET).cpp $(CXX_FLAGS) -o $(TARGET) && ./$(TARGET) | |
force-clean: | |
\rm -f $(TARGET) | |
This file contains hidden or 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
#!/bin/bash | |
# Assuming this script is put in the same folder with rdp.sh | |
host=<your-host-address> | |
user=<your-account> | |
password=<your-pwd> | |
cwd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
source $cwd/rdp.sh |
This file contains hidden or 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
# reference: https://forums.virtualbox.org/viewtopic.php?f=7&t=29861 | |
# get guest's IP address | |
guest_name=full-name-of-vbox | |
VBoxManage --nologo guestproperty get "${guest_name}" /VirtualBox/GuestInfo/Net/0/V4/IP | |
VBoxManage --nologo guestproperty get "${guest_name}" /VirtualBox/GuestInfo/Net/1/V4/IP |
This file contains hidden or 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
[Desktop Entry] | |
Name=Roto3T | |
Exec=/opt/robo3t/bin/robo3t | |
Type=Application | |
Terminal=false | |
Comment=Robo3T | |
Icon=/opt/robo3t/bin/robo3t.png |