Skip to content

Instantly share code, notes, and snippets.

View Wingless-Archangel's full-sized avatar
🏠
Working from home

Wingless-Archangel Wingless-Archangel

🏠
Working from home
  • The Matrix
View GitHub Profile
@Wingless-Archangel
Wingless-Archangel / gitlab_list.py
Created November 18, 2019 08:40
Retreive repository in Gitlab via API
import json
import requests
URL = 'https://gitlab.com/api/v4/projects'
API_KEY = ''
payload = {'private_token' : API_KEY,'simple' : True}
def main():
''' make the connection to local gitlab '''
conn = requests.get(URL,params=payload)
dict_result = json.loads(conn.text)
@Wingless-Archangel
Wingless-Archangel / decrypt.sh
Last active May 14, 2020 03:27
Simple Bash encryption/decryption operation for cron purpose
# set the Default Static Variable
# if already set Environment variable, please comment this section
SRC_PATH=/opt/b # src to read recommend full path
DEST_PATH=/opt/a # encrypted to
# assume that the expect output file format is .txt
# Also, make sure that you import the private key before running the file via
# gpg --import private.key
for FILE in $(ls *.gpg)
@Wingless-Archangel
Wingless-Archangel / Vagrantfile
Created May 31, 2020 02:41
Vagrant with windows 10 trial from Microsoft with some analysis tool installation with Chocolatey
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.