This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --since='2025-01-01' --until='2025-12-31' --pretty=format:'"%h","%an","%ae","%ai","%s"' > commits.csv | |
gh pr list -R <owner>/<repo> --json "number,title,author,reviews,mergeCommit,mergedAt,createdAt,mergedBy" -s "merged" --limit 1000 | \ | |
jq -r '.[] | [.number,.author.name,.createdAt,.mergedAt,[.reviews | map(select(.state | contains("APPROVED")))][0][0].submittedAt,[.reviews | map(select(.state | contains("APPROVED")))][0][0].author.login,.mergeCommit.oid,.mergedBy.name] | @csv' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.vimrc | |
call plug#begin('~/.vim/plugged') | |
Plug 'preservim/nerdtree' | |
Plug 'mileszs/ack.vim' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
" Syntax highlighting | |
Plug 'dense-analysis/ale' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "=== Setting up MySQL ===" | |
apt-get -qqy update | |
apt-get install -qqy mysql-server | |
mysqld --version | |
service mysql start | |
mysql -uroot -e "CREATE USER '${DATABASE_USER}'@'localhost' IDENTIFIED BY '${DATABASE_PASSWORD}';" | |
mysql -uroot -e "GRANT ALL PRIVILEGES ON * . * TO '${DATABASE_USER}'@'localhost';" | |
mysql -uroot -e "UPDATE mysql.user SET authentication_string=PASSWORD('${DATABASE_PASSWORD}'), plugin='mysql_native_password' WHERE user='${DATABASE_USER}';" | |
mysql -uroot -e "CREATE DATABASE ${DATABASE_NAME};" | |
mysql -uroot -e "FLUSH PRIVILEGES;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "copy('https://composer.github.io/installer.sha384sum', 'composer-setup.sha384sum');" | |
php -r "if (hash_file('sha384', 'composer-setup.php') === explode(' ', implode('', file('composer-setup.sha384sum')))[0]) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); unlink('composer-setup.sha384sum'); } echo PHP_EOL;" | |
php composer-setup.php --filename=composer --install-dir=/usr/bin | |
php -r "unlink('composer-setup.php');" | |
php -r "unlink('composer-setup.sha384.sum');" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// | |
import UIKit | |
import SafariServices | |
class ViewController: UIViewController, NostalgiaCameraDelegate { | |
@IBOutlet var imgView: UIImageView! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NostalgiaCamera.mm | |
// | |
#import <opencv2/opencv.hpp> | |
#import <opencv2/videoio/cap_ios.h> | |
#import <opencv2/imgcodecs/ios.h> | |
#include "NostalgiaCamera.h" | |
using namespace cv; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NostalgiaCamera.h | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> | |
// Protocol for callback action | |
@protocol NostalgiaCameraDelegate <NSObject> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "metadata", | |
"children": [ | |
{ | |
"name": "..cf", | |
"children": [ | |
{ | |
"name": "cloud_controller", | |
"children": [ | |
{ "name": "system_domain", "size": 3938 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
HOURS=$1 | |
DIR="`dirname \"$0\"`" | |
DIR="`cd \"$DIR\" && pwd`" | |
KEY="$DIR/id_rsa" | |
if [ -z $HOURS ]; then | |
CURRENT_HOUR=$(date +"%H") | |
QUITTING_HOUR=18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iptables --flush | |
iptables --flush -t nat | |
export INTERNAL_NETWORK_RANGE=10.0.0.0/8 | |
export GATEWAY_INTERNAL_IP=10.1.0.1 | |
export GATEWAY_EXTERNAL_IP=88.198.252.242 | |
export PIVOTALCF_IP=10.1.0.2 | |
export HA_PROXY_IP=10.0.0.254 |
NewerOlder