Skip to content

Instantly share code, notes, and snippets.

View octplane's full-sized avatar
👨‍💻
I came here for the javascript jokes and was disappointed

Pierre Baillet octplane

👨‍💻
I came here for the javascript jokes and was disappointed
View GitHub Profile
@FradSer
FradSer / iterm2_switch_automatic.md
Last active May 3, 2024 19:58
Switch iTerm2 color preset automatic base on macOS dark mode.

The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.

Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@leolovenet
leolovenet / fishshell luarocks path
Last active June 29, 2022 07:41
luarocks path command for fishshell
for i in (luarocks path | awk '{sub(/PATH=/, "PATH ", $2); print "set -gx "$2}'); eval $i; end
@adham90
adham90 / spacemacs-keybindings
Last active April 5, 2024 14:24
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@Rm1210
Rm1210 / NSImage+Rotated.h
Created April 14, 2014 06:39
rotate a NSImage
#import <Cocoa/Cocoa.h>
@interface NSImage (Rotated)
- (NSImage *)imageRotated:(float)degrees;
- (CGImageRef)toCGImageRef;
@end
@angezanetti
angezanetti / FromSPIPtoWordpress.sql
Last active November 1, 2019 13:19
Migrate SPIP to Wordpress with SQL
-- Source http://contrib.spip.net/Export-Spip-vers-Wordpress
-- Imports terms
REPLACE INTO wp_terms(term_id, name, slug, term_group)
SELECT id_rubrique, titre, CONCAT("rub",id_rubrique), 1 FROM spip_rubriques;
-- Update urls
UPDATE wp_terms, spip_urls
@natritmeyer
natritmeyer / Usage.txt
Last active January 16, 2017 01:56
JUnit formatter for RSpec
NOTE: I've created a gem based on this: https://github.com/natritmeyer/yarjuf
---------
rspec my_spec.rb -r ./junit.rb -f JUnit -o results.xml
@sbusso
sbusso / rails_admin_fr
Created February 3, 2012 12:56 — forked from bbenezech/rails_admin_fr
French translation for RailsAdmin
fr:
home:
name: Home
views:
pagination:
previous: "&laquo; Préc."
next: "Suiv. &raquo;"
truncate: "…"
admin:
misc: