Skip to content

Instantly share code, notes, and snippets.

deseven deseven

Block or report user

Report or block deseven

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@deseven
deseven / MattermostUpload.sh
Last active Oct 21, 2019
Upload file to Mattermost (API v4)
View MattermostUpload.sh
#!/bin/bash
# your mattermost installation url
mattermost="https://example.com"
# bot token, get it in Integrations > Bot Accounts
token=abcdef123456
# set to true for debug output
debug=false
@deseven
deseven / source_random.c
Last active Dec 24, 2017
Randomizing srcip PoC
View source_random.c
/*
Copyright (C) 2000 Daniel Ryde
Copyright (C) 2017 deseven <de7@deseven.info>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
@deseven
deseven / jira_issues_check
Last active Dec 8, 2017
checks whether the defined JIRA user resolved some issues after previous check and sends a notification to Slack if he did not
View jira_issues_check
#!/bin/bash
# === jira_issues_check ===
# checks whether the defined JIRA user resolved some issues after previous check and sends a notification to Slack if he did not
# depends on jq and curl
# written by deseven, 2017
# http://deseven.info
# notifications language (ru/en)
notificationLang=ru
@deseven
deseven / tomp3
Created Oct 19, 2017
Simple script to convert all audio files in current directory to mp3
View tomp3
#!/bin/bash
BLUE='\033[1;34m'
NC='\033[0m'
total=0
current=0
ext=""
read -p "Please enter the extension to convert from [flac]: " ext
@deseven
deseven / phpbb-external-statistics.py
Last active Jul 28, 2017
phpbb-external-statistics
View phpbb-external-statistics.py
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import urllib2
from retry import retry
try:
from BeautifulSoup import BeautifulSoup
except ImportError:
from bs4 import BeautifulSoup
@deseven
deseven / capsSwitch.sh
Created Jul 22, 2016
Simple script to change keyboard layout with indication
View capsSwitch.sh
# capsSwitch
# depends on keyboardSwitcher and maclight
# to get the list of possible layouts, check `keyboardSwitcher list` output
# to check what layouts you use, check `keyboardSwitcher get` while switching layouts
layout1="U.S."
layout2="Russian - PC"
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
@deseven
deseven / is.zsh-theme
Created Sep 28, 2015
zsh theme used in interService
View is.zsh-theme
PROMPT='%{$fg[yellow]%}%M:%{$fg[green]%}%/%{$reset_color%}%(!.#.$) '
You can’t perform that action at this time.