Skip to content

Instantly share code, notes, and snippets.

View Jeket's full-sized avatar

Jeket Jeket

View GitHub Profile
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
@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>";
@Jeket
Jeket / daemon.cpp
Last active October 13, 2020 23:24 — forked from faberyx/c++ daemon
C++ daemon
#include <stdio.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
@Jeket
Jeket / mac-setup.md
Created September 5, 2020 12:09 — forked from todc/mac-setup.md
Fresh Mac OS Setup

1. Run Software Update

Make sure everything is up to date.

Software Update

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
@Jeket
Jeket / youtube-dl.md
Last active October 13, 2020 23:05
Default configuration for youtube-dl

youtube-dl

Default configuration for youtube-dl

echo "-f 'best[height<=720][ext=mp4]' -o ~/Downloads/%(title)s.%(ext)s" >> ~/.config/youtube-dl/config
@Jeket
Jeket / osx_settings.md
Last active October 16, 2020 05:36
OSX settings

OSX settings

#avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

#avoid creating .DS_Store files on USB Volumes
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

#Show what WIFI related components have debug logging enabled with
@Jeket
Jeket / osx-for-hackers.sh
Created November 26, 2020 20:42 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents