0000000000001145 <main>:
1145: 55 push %rbp
1146: 48 89 e5 mov %rsp,%rbp
1149: 48 83 ec 20 sub $0x20,%rsp
114d: 89 7d ec mov %edi,-0x14(%rbp)
1150: 48 89 75 e0 mov %rsi,-0x20(%rbp)
1154: c7 45 fc 79 00 00 00 movl $0x79,-0x4(%rbp)
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
| /* Copyright 2021 Jeong Min Lim <[email protected]> | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
| def print_list(list): | |
| # check for empty list | |
| if not list: | |
| print("") | |
| return | |
| print(list[0], end="") | |
| if len(list) > 1: | |
| for index, item in enumerate(list[1:-1]): |
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
| // Place your key bindings in this file to override the defaults | |
| [ | |
| { | |
| "key": "ctrl+y", | |
| "command": "editor.action.deleteLines", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+z", | |
| "command": "redo", |
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
| ## | |
| # This module requires Metasploit: https://metasploit.com/download | |
| # Current source: https://github.com/rapid7/metasploit-framework | |
| ## | |
| class MetasploitModule < Msf::Exploit::Remote | |
| Rank = NormalRanking | |
| include Msf::Exploit::Seh | |
| include Msf::Exploit::Remote::HttpServer::HTML |
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
| :: Chocolatey install script | |
| @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
| :: Install all the packages in packages.txt | |
| for /F "eol=#" %%G in (packages.txt) do choco install %%G -fy | |
mostly the ones that are not supported by GitHub Desktop, not in the order of StackOverflow votes
git rm -r --cached .: stop tracking all files that are already tracked because.gitignoreis not applied to those files (source)git log --graph --decorate --oneline: visualize branch topology (source)git commit --amend --no-edit: modify a commit without changing the commit message (source)git reset --soft HEAD~3: undo the last 3 commits but keep the files (so that you can squash the commits) (source)git stash
- Azure lets me add ssh key pair on initialization, while AWS gives me a
.pemfile. - So I was able to ssh into my Azure instance rightaway, without setting up putty or key or anything.
- This time I configured Ubuntu as my web server insted of using AMI.
- All packages were up-to-date.
- Username was what I set when initializing the instance, I just set a new password.
- Root is still accessible.
sudo apt install build-essentialto install necessary development related tools.curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -and thensudo apt-get install -y nodejsto install node
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
#endif
cin.tie(0);
ios_base::sync_with_stdio(0);
//code here
return 0;
NewerOlder