Skip to content

Instantly share code, notes, and snippets.

for i in {100000..220000}; do
getent passwd "e${i}" >> /home502/e147200/db
done
@ilhanyumer
ilhanyumer / students.sql
Created May 14, 2014 08:30
order by unique given name
SELECT
COUNT(*),
SUBSTRING_INDEX(`fullname`, ' ', 1)AS givenname
FROM
studentstable
GROUP BY
givenname
ORDER BY
COUNT(givenname);
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
@ilhanyumer
ilhanyumer / group
Created May 17, 2014 20:16
getent group >> /home502/e147200/groups
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
for i in {0..100000}; do
getent group ${i} >> /home502/e147200/groups
done
@ilhanyumer
ilhanyumer / noname
Created September 27, 2014 09:08
ntlp
[root@185 ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LIST EN 4796/java
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LIST EN 4796/java
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LIST EN 21409/mysqld
tcp 0 0 0.0.0.0:970
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'ZendAmf' => array($vendorDir . '/zendframework/zendamf/library'),
'Twig_' => array($vendorDir . '/twig/twig/lib'),
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "b385581edc337509ad9d22d7c5a73fa1",
"packages": [
{
"name": "firebase/php-jwt",
<?php
namespace Pomm;
use Pomm\Connection\Database;
use Pomm\Exception\Exception;
/**
* Service
* This is the service for the Pomm API.
<?php
spl_autoload_register(function ($class)
{
if (0 === strpos($class, 'Pomm\\'))
{
$class = str_replace('\\', '/', $class);
require sprintf("%s/%s.php", __DIR__, $class);
}
});