Skip to content

Instantly share code, notes, and snippets.

View atog's full-sized avatar

Koen Van der Auwera atog

View GitHub Profile
#!/bin/bash
# place this shell script to
# ./
# ├── bin/
# │   └── ibdesignable-workaround.sh
# └── YourGreatApp.xcodeproj
set -euo pipefail
@mayrund
mayrund / Network Initialization Failed C:\PDOXUSERS.NET Permission Denied
Created November 21, 2016 10:57
Network Initialization Failed C:\PDOXUSERS.NET Permission Denied
EDBEngineError-Network Initialization Failed
Permission Denied
File C:\PDOXUSERS.NET
Directory: c:\
1. Create a new directory such as C:\BDEShare or use an existing folder (like My Documents).
2. Start the BDE Administration utility, located in: C:\Program Files (x86)\Common Files\Borland Shared\BDE\BDEADMIN.EXE
3. Click Configuration -> Drivers -> Native -> Paradox
4. Cick on the path next to NET DIR
5. Click the browse button to the right of the path
@aataraxiaa
aataraxiaa / UIImageWithText
Created November 17, 2015 20:41
Swift function for adding text to a UIImage
func addTextToImage(text: NSString, inImage: UIImage, atPoint:CGPoint) -> UIImage{
// Setup the font specific variables
let textColor = YOUR_COLOR
let textFont = YOUR_FONT
//Setups up the font attributes that will be later used to dictate how the text should be drawn
let textFontAttributes = [
NSFontAttributeName: textFont,
NSForegroundColorAttributeName: textColor,
<?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">
<array>
<dict>
<key>shortcut</key>
<string>:smile:</string>
<key>phrase</key>
<string>😄</string>
</dict>
@chrismdp
chrismdp / s3.sh
Last active March 5, 2024 12:57
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@HugoPresents
HugoPresents / set_cookiejar.go
Created December 29, 2014 08:37
golang set cookieJar example
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"strings"
)
@trusktr
trusktr / DefaultKeyBinding.dict
Last active April 21, 2024 06:32
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@runlevel5
runlevel5 / lotus_console.md
Last active August 29, 2015 14:02
A simple rake task that replicates the `rails console` for Lotus Framework

Lotus Console

A simple rake task that replicates the rails console for Lotus Framework

How to?

I assume that your config/application.rb is the place where you initialize all Lotus boot config

below is my config/application.rb for your interest

#! /usr/bin/env ruby
require "yaml"
require "pathname"
banner = <<BANNER
Looks for a config/database.yml file and supplies the command to get a
database dump/import. (mysql or postgres)
dumper <rails_env>
@pjaspers
pjaspers / gist:9131345
Last active April 28, 2022 07:52
ICQ list.
000787466 @bramus
006904094 @inferis
008093150 @tomklaasen
010686174 @to1ne
011006380 @tijs
023055424 @crahan
063846821 @junkiesxl
075540649 @maxvoltar
084511154 @atog
102812969 @nilo