Skip to content

Instantly share code, notes, and snippets.

View cyupa's full-sized avatar
🎯
Focusing

Ciprian Redinciuc cyupa

🎯
Focusing
View GitHub Profile
@cyupa
cyupa / HotelDetailsPage.java
Created August 25, 2024 23:00
HotelDetailsage
package pageObjects;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
@cyupa
cyupa / checkpoint.sh
Created December 19, 2020 15:44 — forked from bubenkoff/checkpoint.sh
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script.
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
sqlite3 $(find /private/var/folders \( -name com.apple.dock.launchpad -a -user $USER \) 2> /dev/null)/db/db "DELETE FROM apps WHERE title='APP_NAME_CASE_SENSITIVE';" && killall Dock
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
#!/bin/bash
function showMessage() { echo "⏳`tput setaf 12` $1 `tput op`"; }
function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
function installCommandLineTools() {
showMessage "Installing Xcode command line tools."
# create the placeholder file that's checked by CLI updates' .dist code
@cyupa
cyupa / Samsung SmartTV.xml
Created January 22, 2017 16:28
Samsung UE40EH6030 Plex Profile
<?xml version="1.0" encoding="utf-8"?>
<Client name="Samsung SmartTV">
<!-- Author: holzi -->
<!-- http://www.samsungdforum.com/Guide/View/Developer_Documentation/Technical_Notes/Player/Detailed_player_specification -->
<Identification>
<DeviceDescription>
<ModelUrl substring="samsung.com" />
</DeviceDescription>
</Identification>
<TranscodeTargets>
@cyupa
cyupa / Rename.sh
Created July 23, 2015 09:56
Command to rename files contaning -100 to @3x
find . -type f -name "*-100*" -exec sh -c 'mv "$0" "${0/-100/@3x}"' '{}' \;
@cyupa
cyupa / gcovr XCode fix
Created October 15, 2014 08:35
Snippet of code for missing fopen$UNIX2003 and fwrite$UNIX2003
// Add to AppDelegate.h
#ifdef DEBUG
FILE *fopen$UNIX2003(const char *filename, const char *mode);
size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nitems, FILE *stream);
#endif
// Add to AppDelegate.m
@cyupa
cyupa / run-sonar
Created October 13, 2014 08:42
Run sonar on XCode project script
#!/bin/bash
## INSTALLATION: script to copy in your Xcode project in the same directory as the .xcodeproj file
## USAGE: ./run-sonar.sh
## DEBUG: ./run-sonar.sh -v
## WARNING: edit your project parameters in sonar-project.properties rather than modifying this script
#
trap "echo 'Script interrupted by Ctrl+C'; stopProgress; exit 1" SIGHUP SIGINT SIGTERM
function startProgress() {