Skip to content

Instantly share code, notes, and snippets.

View cakuki's full-sized avatar

Can Kutlu Kınay cakuki

View GitHub Profile
@cakuki
cakuki / close_notifications_applescript.js
Created April 8, 2024 07:43 — forked from lancethomps/close_notifications_applescript.js
AppleScript to close all notifications on macOS Big Sur, Monterey, and Ventura
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = "close_notifications_applescript";
const CLEAR_ALL_ACTION = "Clear All";
const CLEAR_ALL_ACTION_TOP = "Clear";
@cakuki
cakuki / hosts.txt
Last active December 5, 2017 13:47
52.85.189.59 a.tiles.mapbox.com b.tiles.mapbox.com
52.59.237.9 cloud.devu.nu console.devu.nu

Keybase proof

I hereby claim:

  • I am cakuki on github.
  • I am ckk (https://keybase.io/ckk) on keybase.
  • I have a public key ASCzqtnkYsvSf6CCMwQ-GHG8rgqjP2LGjWp5DzdzXdFEHQo

To claim this, I am signing this object:

@cakuki
cakuki / waitci.sh
Created March 3, 2016 12:21
Waiting for branch CI status success
#!/usr/bin/env bash
function waitci {
branch=${1:-"$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')"}
echo -n "Checking $branch branch..."
while :;
do cistatus=$(git ci-status $branch)
@cakuki
cakuki / angular-idToDate-filter.js
Created June 10, 2015 12:38
Angular.js ObjectId to Date filter
/**
* Extracts creation timestamp from ObjectId.
*
* Usage for default id mongoose objects in html:
* {{ object._id | idToDate | date:'medium' }}
*/
angular.module('idToDate').filter('idToDate', [function() {
return function idToDate (objectId) {
return new Date(parseInt(objectId.slice(0, 8), 16) * 1000);
};