Dictionary<string, string> animations = new Dictionary<string, string>
{
{ Animation.HIGH_PUNCH.ToString(), "Punching L" },
{ Animation.LOW_PUNCH.ToString(), "Punching R" },
{ Animation.IDLE.ToString(), "Fighting Idle" }
};
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
| abbaubarkeit | |
| abbauprodukt | |
| abbauprozess | |
| abenteurerin | |
| abfallhaufen | |
| arbeitsplatz | |
| alltagsleben | |
| abendstunden | |
| abhängigkeit | |
| buergerkrieg |
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
| #panel { | |
| background-gradient-direction: none; | |
| background-color: #1d2128; | |
| border-radius: 7px; | |
| margin-top: 3px; | |
| margin-bottom: 3px; | |
| margin-left: 10px; | |
| margin-right: 10px; | |
| height: 35px; | |
A really, REALLY SIMPLE example of how we can inject malicius code into a Python script. For learning and documentation purposes.
This is an unoffuscated version of our malicious code (actually dummy and completely safe).
import datetime
print(int(datetime.datetime.now().timestamp() * 100000))
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
| FROM alpine:latest | |
| MAINTAINER Juanjo Salvador "juanjosalvador@netc.eu" | |
| RUN apk add python3 | |
| COPY ./app.py /app/app.py | |
| ENTRYPOINT ["python3", "/app/app.py"] |
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 tweepy | |
| import csv | |
| from datetime import date, timedelta, datetime | |
| CONSUMER_KEY = '' | |
| CONSUMER_SECRET = '' | |
| ACCESS_TOKEN = '' | |
| ACCESS_TOKEN_SECRET = '' |
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 | |
| systemd-cgtop | grep mastodon* | awk 'BEGIN { printf "%-28s %s", "SERVICE", "MEMORY USAGE\n"; | |
| printf "%-28s %s", "-------", "------------\n" } | |
| { printf "%-30s %10s\n", substr($1, 15), $4 }' |
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
| [DEFAULT] | |
| API_KEY = SET YOUR BOT API KEY HERE | |
| CHANNEL_NAME = SET YOUR @channelname HERE |
- vim-plug (https://github.com/junegunn/vim-plug)
- powerline (pip install powerline)
- Copy
init.viminto your vim/neovim config (~/.vimrcor~/.config/nvim/init.vim). - Run
:PlugInstallcommand. - Reload.
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
| #%{$fg_bold[green]%}%n@%m %{$reset_color%} | |
| PROMPT=$'%{$fg[blue]%}[%~]%{$reset_color%} $(git_prompt_info) %{$fg_bold[red]%}→%{$reset_color%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" |
NewerOlder