curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
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 | |
templatefilters=("all" "featured" "self" "selfexecutable" "sharedexecutable" "executable" "community") | |
accounts=("admin" "test" "test2") | |
if [[ '-h' == $1 ]]; then | |
echo -e "Usage explained:" | |
echo -e "\t-h shows this help" | |
echo -e "\t'./listTemplates.sh' list all filter" |
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
/** | |
<dependency> | |
<groupId>org.apache.pdfbox</groupId> | |
<artifactId>pdfbox</artifactId> | |
<version>2.0.19</version> | |
</dependency> | |
*/ | |
import java.io.File; | |
import java.io.IOException; |
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
import docker | |
import dockerpty | |
client = docker.APIClient(base_url='unix://var/run/docker.sock') | |
container = client.create_container( | |
image='mininet', | |
stdin_open=True, | |
tty=True | |
# command='/bin/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
# Put your id_rsa.pub and autologin file at the same folder. Run `chmode +x autologin.sh` then `./autologin` to automate | |
# your login. | |
#!/bin/bash | |
mkdir -p ~/.ssh && \ | |
chmod 700 ~/.ssh && \ | |
touch ~/.ssh/authorized_keys2 && \ | |
chmod 600 ~/.ssh/authorized_keys2 && \ | |
cat ./id_rsa.pub >> ~/.ssh/authorized_keys2 |
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
### Slim version | |
FROM python:2.7-slim | |
MAINTAINER Nick Janetakis <[email protected]> | |
RUN apt-get update && apt-get install -qq -y \ | |
build-essential libpq-dev libffi-dev --no-install-recommends | |
ENV INSTALL_PATH /bsawf | |
RUN mkdir -p $INSTALL_PATH |
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
# Run below command to start new nginx docker container which hosted files in /home/asa/downloads/ directory on http://<Host IP>:8090 | |
# Keep in mind that this file (nginx.conf) should be in `/home/asa/desktop/nginx/` directory. | |
# `docker run --name nginx -p 8080:80 -v $HOME/downloads/:/usr/share/nginx/html/:ro -v $HOME/desktop/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -d --rm nginx` | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; |
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 2018 Sina Kashipazha ([email protected]) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
alias cisco='sudo cp /opt/cisco/anyconnect/profile/profile.xml.backup /opt/cisco/anyconnect/profile/profile.xml' | |
alias rand='java -jar ~/.my_programs/rand-command.jar' | |
alias shamir='java -jar ~/.my_programs/secretshare.jar' | |
alias dec_m='sh ~/.my_programs/minecraft/dec_m.sh' | |
alias enc_m='sh ~/.my_programs/minecraft/enc_m.sh' | |
alias pg_start="launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist" | |
alias pg_stop="launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist" | |
alias add_ut_net="sudo route -n add -net 172.18.0.0/16 $(netstat -nr | grep default | awk '{print $2}')" | |
alias del_ut_net="sudo route -n delete -net 172.18.0.0/16 $(netstat -nr | grep default | awk '{print $2}')" | |
alias hpc="ssh pipe -t 'ssh hpc'" |
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
38,0-1 84% | |
#!/bin/bash | |
# Copyright 2018 Sina Kashipazha ([email protected]) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |