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 | |
#clear the terminal | |
clear | |
echo "Starting Framework Processing..." | |
#First remove the framework.zip if any | |
$(rm -f /var/www/framework.zip) |
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
# yum repolist | |
Loaded plugins: fastestmirror | |
addons | 1.9 kB 00:00 | |
base | 1.1 kB 00:00 | |
base 2725/2725 | |
extras | 2.1 kB 00:00 | |
rpmforge | 1.1 kB 00:00 | |
rpmforge 11351/11351 | |
updates | 1.9 kB 00:00 | |
Excluding Packages in global exclude list |
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 works : | |
$ curl -k --cert mag.pem:abcd https://something | |
php code does not work : | |
<?php | |
$url = "https://something"; | |
// Create a stream |
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
$opts = array( | |
'ssl' => array( | |
'local_cert' => "./mkaas.cer" , | |
'passphrase' => 'password' , | |
) , | |
); | |
$context = stream_context_create($opts); |
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
#include <stdio.h> | |
#include <sys/time.h> | |
int main() | |
{ | |
int i; | |
double before_ms , after_ms; | |
struct timeval before , after; | |
gettimeofday(&before , NULL); |
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
wxStringTokenizer tkz(whois_data, wxT("\n")); | |
while ( tkz.HasMoreTokens() ) | |
{ | |
wxString token = tkz.GetNextToken(); | |
// process token here | |
if(token.Find("NetName") != wxNOT_FOUND) | |
{ | |
wxStringTokenizer tkz2(token , wxT(":")); |
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
ldd ./tcptrace | |
linux-vdso.so.1 => (0x00007fff20bc2000) | |
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fe05b4fd000) | |
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fe05b24a000) | |
libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007fe05b028000) | |
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007fe05acfd000) | |
libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007fe05aad1000) | |
libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007fe05a8c3000) | |
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fe05a6a3000) | |
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fe05a3e2000) |
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
cd /path/to/repo-name | |
git symbolic-ref HEAD refs/heads/gh-pages | |
rm .git/index | |
git clean -fdx | |
echo "My GitHub Page" > index.html | |
git add . | |
git commit -a -m "First pages commit" | |
git push origin gh-pages |
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
ld||cannot find -lwx_gtk2u_richtext-2.8| | |
ld||cannot find -lwx_gtk2u_aui-2.8| | |
ld||cannot find -lwx_gtk2u_xrc-2.8| | |
ld||cannot find -lwx_gtk2u_qa-2.8| | |
ld||cannot find -lwx_gtk2u_html-2.8| | |
ld||cannot find -lwx_gtk2u_adv-2.8| | |
ld||cannot find -lwx_gtk2u_core-2.8| | |
ld||cannot find -lwx_baseu_xml-2.8| | |
ld||cannot find -lwx_baseu_net-2.8| | |
ld||cannot find -lwx_baseu-2.8| |
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
void logger::init_ui() | |
{ | |
//Now create panel | |
wxPanel *panel = new wxPanel( this , ::wxNewId() ); | |
//btn_trace->SetToolTipString(_("Click to get whois information for the domain name.")); | |
txt_log = new wxTextCtrl(panel , -1 , _("") , wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); | |
//Add the input field and submit button to a Box Sizer since the must stay together | |
wxBoxSizer *space = new wxBoxSizer(wxHORIZONTAL); |