Skip to content

Instantly share code, notes, and snippets.

View Jeket's full-sized avatar

Jeket Jeket

View GitHub Profile
@Jeket
Jeket / Material Theme.itermcolors
Created March 11, 2018 00:04 — forked from Revod/Material Theme.itermcolors
Material Theme For iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Color Space</key>
<string>sRGB</string>
<key>Blue Component</key>
<real>0.25882352941176473</real>
@Jeket
Jeket / TransmitOpenTerminal.txt
Created May 30, 2018 13:40 — forked from johnfmorton/TransmitOpenTerminal.txt
Use Transmit 5 to open in iTerm (instead of Terminal.app) as mentioned here https://library.panic.com/transmit5/open-in-terminal/
on openTerminal(location, remoteHost, serverPort)
tell application "System Events"
-- some versions might identify as "iTerm2" instead of "iTerm"
set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2"))
end tell
tell application "iTerm"
activate
set targetTab to ""
@Jeket
Jeket / server.sh
Created October 25, 2018 19:22 — forked from MohamedAlaa/server.sh
osx computer info in terminal
#!/bin/bash
echo "--------------------------------------------------------------------------------"
uname -a
echo "--------------------------------------------------------------------------------"
MEMORY=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $1 $2 $3}'`
echo "$MEMORY"
echo "--------------------------------------------------------------------------------"
CORES_COUNT=`sysctl hw.ncpu | awk '{print $2}'`
echo "CPU"
sysctl -n machdep.cpu.brand_string
@Jeket
Jeket / .zshrc
Last active January 6, 2019 07:11
OSX zsh config
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/Jeket/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@Jeket
Jeket / EntityBase.php
Created June 24, 2019 14:12 — forked from lelledaniele/EntityBase.php
symfony doctrine updatedAt createdAt updated_at created_at fields timestamp
<?php
namespace AppBundle\Mapping;
use Doctrine\ORM\Mapping as ORM;
use DateTime;
/**
* Class EntityBase
*

Hello,

Here's a quick and dirty way to slip a backdoor into a PHP project by abusing Namespaces.

POC:

root@ssh:~/underhanded# php index.php SUCCESS

@Jeket
Jeket / iterator.php
Created June 27, 2019 16:51 — forked from ckhampus/iterator.php
PHP Parent Array Iterator
<?php
$data = array(
array(
'id' => 1,
'children' => array(
array(
'id' => 12,
'children' => array(
@Jeket
Jeket / README.md
Created August 9, 2019 09:51 — forked from hofmannsven/README.md
Notes on working with JetBrains PhpStorm IDE on macOS.
@Jeket
Jeket / complex.php
Created November 9, 2019 10:26 — forked from yakupyavas/complex.php
PHP Complex Number Class
<?php
#Coded By Yakup Yavaş
#Complex Number PHP Class
class Complex {
public $real;
public $imaginer;
public $comp_numb;
public $degree;
function __construct() //constructor method
{
@Jeket
Jeket / example.php
Created November 9, 2019 10:27 — forked from yakupyavas/example.php
Example
<?php
require_once 'complex.php';
#Examples
$complex = new Complex(); //instance
$complex->set_comp_num(3,4); //define number(Default 0,0)
echo"Number: ".$complex->comp_numb."<br>";
echo"Real: ".$complex->real."<br>";
echo"Imaginer: ".$complex->imaginer."<br>";
echo "Modulus: ".$complex->modulus()."<br>";
echo "Polar Form: ".$complex->polar_form()."<br>";