Skip to content

Instantly share code, notes, and snippets.

<?php
// bu dosyayı çalıştırmak için CMD'ye
// php April4.php
// yazınız.
// .mp3 uzantılı dosyaların içeriği Base64'e dönüştürülecek.
// ve .base64 uzantılı yeni dosyalar oluşturulacak.
$iterator = new \GlobIterator(__DIR__ . '/*.mp3', FilesystemIterator::KEY_AS_FILENAME);
$files = iterator_to_array($iterator);
@ilhanyumer
ilhanyumer / create-plpg.sql
Last active November 30, 2019 08:38
Simple PL/pgSQL
create or replace procedure test()
as $body$
declare
variable integer := 0;
begin
raise notice 'variable: %', variable;
end;
$body$
language plpgsql

Keybase proof

I hereby claim:

  • I am ilhanyumer on github.
  • I am ilhan (https://keybase.io/ilhan) on keybase.
  • I have a public key ASBihPs3GDJ-MRCWoIagO4qItP1hyEg1bNa88Ozy111kcAo

To claim this, I am signing this object:

@ilhanyumer
ilhanyumer / backupschema.bat
Last active July 16, 2020 09:59
Backup MySQL Schema
mysqldump -d -h 127.0.0.1 -u the_user_name -pThePassword DATABASE_NAME --skip-add-drop-table | sed 's/AUTO_INCREMENT=[0-9]*\b//' > the_database_backup.sql

Keybase proof

I hereby claim:

  • I am ilhanyumer on github.
  • I am ilhan (https://keybase.io/ilhan) on keybase.
  • I have a public key ASDPL0_i9Lkg1U_-XwrtvW8l5XWzT0vbijudbmKqHEM1rwo

To claim this, I am signing this object:

{
"_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
// 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'),
@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
for i in {0..100000}; do
getent group ${i} >> /home502/e147200/groups
done
@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: