sh install-docker.sh
- log out
- log back in
This file contains 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
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/polipo/polipo_1.1.1-8_amd64.deb | |
sudo dpkg -i polipo_1.1.1-8_amd64.deb |
This file contains 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
```c | |
namespace OpenGLMemory | |
{ | |
template<typename T> | |
T Read(DWORD address) | |
{ | |
return *((T*)address); | |
} | |
template<typename T> | |
void Write(DWORD address, T value) |
This file contains 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
MinHook addr: | |
https://github.com/TsudaKageyu/minhook | |
```c | |
#include "MinHook.h" | |
typedef HMODULE (WINAPI *TYPE_LoadLibraryA)(LPCSTR); | |
TYPE_LoadLibraryA g_loadLibraryA_original = NULL; | |
HMODULE WINAPI LoadLibraryA_replacement(_In_ LPCTSTR lpFileName) |
This file contains 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
```shell | |
#!/bin/bash | |
DUID=$1 | |
skill -9 dibbler-client | |
dpkg -P dibbler-client | |
rm -rvf /etc/dibbler /var/log/dibbler /var/lib/dibbler | |
apt-get install -y wide-dhcpv6-client vim-common |
This file contains 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 | |
# | |
# to restore: | |
# gunzip XXX.db.gz | |
# dokku postgres:import <dbname> < XXX.db | |
# directory to save backups in, must be rwx by postgres user | |
BASE_DIR="/var/backups/postgres" | |
YMD=$(date "+%Y-%m-%d") | |
DIR="$BASE_DIR" |
This file contains 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
# Update & Upgrade the System | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install dependencies there might be more based on your system | |
# However below instructions are for the fresh Ubuntu install/server | |
# Please carefully watch the logs because if something could not be install | |
# You have to make sure it is installed properly by trying the command or that particular | |
# dependency again |
This file contains 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
![](https://ws2.sinaimg.cn/large/006tKfTcly1fk6wgjthrej31kw0t3wo4.jpg) |
This file contains 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
``` | |
Dictionary<string, object> temp = new Dictionary<string, object>(); | |
temp.Add("Name", "金朝钱"); | |
temp["Age"] = 31; | |
temp["Birthday"] = DateTime.Now; | |
dynamic obj = new System.Dynamic.ExpandoObject(); | |
foreach (KeyValuePair<string, object> item in temp) | |
{ |