Skip to content

Instantly share code, notes, and snippets.

View NeilHanlon's full-sized avatar

Neil Hanlon NeilHanlon

View GitHub Profile
#include <iostream>
#include <string>
#include <cctype>
#include "Helpers.h"
using namespace std;
bool is_pal(const string& s);
string remove_punct(const string& s, const string& punct);
string reverse(const string& s);
#include <iostream>
#include <regex>
#include <string>
int main(){
string s1 = "Gcc aasdlkf blah Gcc",
s2 = "Gcc asldkfjae adf Gcc";
regex rx ("Gcc");
string replace = "gcc";
#include <iostream>
#include <string>
using namespace std;
int main(){
int i = 10;
string yn;
root@vpn [~]# yum install freeradius-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 13 kB 00:00
* base: mirror.ubiquityservers.com
* epel: mirrors.servercentral.net
* extras: bay.uchicago.edu
* updates: bay.uchicago.edu
base | 3.7 kB 00:00
epel | 4.4 kB 00:00
╭─<root@bakon>-</var/log>-<7:27PM>-◇
╰─➤ rpm -qi openssl | egrep "(Release|Install)"
Release : 16.el6_5.7 Build Date: Tue 08 Apr 2014 06:43:19 AM MSD
Install Date: Tue 08 Apr 2014 07:27:35 PM MSD Build Host: c6b10.bsys.dev.centos.org
build/BUILD/kernel-2.6.32-431.3.1.el6/modules-/klibgrp/pid_group.c:242 pid_group_read_lock+0x71/0x140 [pid_group]() (Tainted: P W --------------- )
Hardware name: X9SCL/X9SCM
Modules linked in: bridge stp llc iptable_nat ipt_REDIRECT nf_nat xt_conntrack iptable_mangle nf_conntrack_ftp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables nfs_throttle(P)(U) nfs lockd fscache auth_rpcgss nfs_acl sunrpc blockio_throttle(P)(U) hcpdriver(P)(U) sch_htb cls_uid(P)(U) connlimit(P)(U) fuse cloakfs(P)(U) group_lib(P)(U) pid_group(U) klibgrp(P)(U) hlist(U) kinterval(U) cgroup_uid(P)(U) bl_license(U) xt_owner ipt_REJECT ipt_LOG xt_limit xt_multiport ses enclosure be2iscsi iscsi_boot_sysfs bnx2i cnic uio cxgb4i cxgb4 cxgb3i libcxgbi cxgb3 mdio ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr ipv6 iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi dm_multipath ext4 jbd2 ext2 microcode iTCO_wdt iTCO_vendor_support serio_raw sg i2c_i801 i2c_core lpc_ich mfd_core shpchp e1000e ptp
$list = ipcsv '.\2014respond.csv';
#$list | ForEach-Object { Write-Host ($_.LastName)($_.FirstName.Substring(0,1)) }
$process = ForEach ($user in $list)
{
$user3 = $user.LastName +""+ $user.FirstName.Substring(0,1)
try{
$user2 = Get-ADUser $user3 -Properties mail
configure: error:
You've configured extension sqlite to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build sqlite shared or build pdo statically for the
build to be successful.
root@xo2 [/home/charman/www/w]# service mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL................................................... ERROR! Manager of pid-file quit without updating file.
root@xo2 [/home/charman/www/w]# service mysql status
ERROR! MySQL is not running, but lock exists
root@xo2 [/var/lock/subsys]# tail /var/lib/mysql/____________.err
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140430 10:48:42 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Error: trying to add tablespace 4668 of name './ecagrico_moodl30/mdl_grading_areas.ibd'
InnoDB: to the tablespace memory cache, but tablespace
InnoDB: 4668 of name './charman_mw991/mw_l10n_cache.ibd' already exists in the tablespace
InnoDB: memory cache!