Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#clear the terminal
clear
echo "Starting Framework Processing..."
#First remove the framework.zip if any
$(rm -f /var/www/framework.zip)
# 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 works :
$ curl -k --cert mag.pem:abcd https://something
php code does not work :
<?php
$url = "https://something";
// Create a stream
$opts = array(
'ssl' => array(
'local_cert' => "./mkaas.cer" ,
'passphrase' => 'password' ,
) ,
);
$context = stream_context_create($opts);
#include <stdio.h>
#include <sys/time.h>
int main()
{
int i;
double before_ms , after_ms;
struct timeval before , after;
gettimeofday(&before , NULL);
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(":"));
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)
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
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|
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);