Skip to content

Instantly share code, notes, and snippets.

View cedricdekimpe's full-sized avatar

Cédric Dekimpe cedricdekimpe

View GitHub Profile
@cedricdekimpe
cedricdekimpe / chroot-to-pi.sh
Created April 7, 2022 10:03 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
[cedric][ITW-JAVAWS][WARNING_ALL][Thu Apr 23 08:46:48 CEST 2020][net.sourceforge.jnlp.util.logging.FileLog.getHeadlineHeader(FileLog.java:59)] NETX Thread# 7852b78b, name Output controller consumer daemon writer-based impl.
[MESSAGE_ALL][Thu Apr 23 08:46:48 CEST 2020] Thu Apr 23 08:46:48 CEST 2020 [DEBUG ] net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialogMessageHandler: Starting security dialog thread
[MESSAGE_ALL][Thu Apr 23 08:46:48 CEST 2020] Thu Apr 23 08:46:48 CEST 2020 [DEBUG ] net.sourceforge.jnlp.util.logging.FileLog: Attempting to log into: /home/cedric/.config/icedtea-web/log/itw-clienta-2020-04-23_08:46:48.786.log
[MESSAGE_ALL][Thu Apr 23 08:46:48 CEST 2020] Thu Apr 23 08:46:48 CEST 2020 [DEBUG ] net.sourceforge.jnlp.security.KeyStores: Keystore file /home/cedric/.config/icedtea-web/security/trusted.clientcerts exists.
[MESSAGE_ALL][Thu Apr 23 08:46:48 CEST 2020] Thu Apr 23 08:46:48 CEST 2020 [DEBUG ] net.sourceforge.jnlp.security.SecurityUtil: Loading Keystore /home/cedr
class Grid
attr_reader :grid
def initialize(cols = 12, rows = 12, default_value = 0)
@grid = Array.new(cols) { Array.new(rows) { default_value } }
@x, @y = 0, 0
end
def add_paths(paths)
# puts "add_paths, #{paths}"
paths = paths.split(",")
diff --cc app/javascript/src/apps/Dashboard/index.tsx
index f7e201298,070ea9009..000000000
--- a/app/javascript/src/apps/Dashboard/index.tsx
+++ b/app/javascript/src/apps/Dashboard/index.tsx
@@@ -1,13 -1,216 +1,230 @@@
++<<<<<<< HEAD
+import React from "react";
+//import MainNavigationBar from "@components/Navigation/MainNavigationBar";
+import AppIntelligence from "./AppIntelligence";
++=======
import React, { PureComponent, ReactNode } from "react";
import ReactTable from "react-table";
import TableColumnHeader from "@apps/shared/TableColumnHeader";
import FollowedAppSummary from "@apps/models/FollowedAppSummary";
import AppTweakSpinner from "@apps/shared/AppTweakSpinner";
import { listFollowedApps, deleteFollowedApp } from "@apps/Account/services/FollowedAppsService"
import { pluralize } from "@apps/utils/strings";
const totalKeywords = (app: FollowedAppSummary): number => {
return app.keyword_categories.reduce(
#!/bin/sh
# Luke's Auto Rice Boostrapping Script (LARBS)
# by Luke Smith <luke@lukesmith.xyz>
# License: GNU GPLv3
### OPTIONS AND VARIABLES ###
while getopts ":a:r:p:h" o; do case "${o}" in
h) printf "Optional arguments for custom use:\\n -r: Dotfiles repository (local file or url)\\n -p: Dependencies and programs csv (local file or url)\\n -a: AUR helper (must have pacman-like syntax)\\n -h: Show this message\\n" && exit ;;
r) dotfilesrepo=${OPTARG} && git ls-remote "$dotfilesrepo" || exit ;;
diff --git a/app/assets/javascripts/backbone/views/keywords/keywords_position_chart.js.coffee b/app/assets/javascripts/backbone/views/keywords/keywords_position_chart.js.coffee
index 46c4132f6..c13f62ae4 100644
--- a/app/assets/javascripts/backbone/views/keywords/keywords_position_chart.js.coffee
+++ b/app/assets/javascripts/backbone/views/keywords/keywords_position_chart.js.coffee
@@ -127,7 +127,7 @@ class Apptweak.Views.Keywords.KeywordsPositionChart extends Backbone.View
marginBottom: 70
backgroundColor: "#fff"
style:
- fontFamily: 'Robotolight, sans-serif'
+ fontFamily: 'Roboto, sans-serif'
@cedricdekimpe
cedricdekimpe / rails-composer.rb
Created February 4, 2019 09:07
rails-composer.rb
# >---------------------------------------------------------------------------<
#
# _____ _ _
# | __ \ (_) | /\
# | |__) |__ _ _| |___ / \ _ __ _ __ ___
# | _ // _` | | / __| / /\ \ | '_ \| '_ \/ __|
# | | \ \ (_| | | \__ \/ ____ \| |_) | |_) \__ \
# |_| \_\__,_|_|_|___/_/ \_\ .__/| .__/|___/
# | | | |
# |_| |_|
### Keybase proof
I hereby claim:
* I am cedricdekimpe on github.
* I am akyrho (https://keybase.io/akyrho) on keybase.
* I have a public key ASD2qI63nLEFZ_s5U2KPPzYp_UVEN6SRKYFvjZKYTUWbAwo
To claim this, I am signing this object:
{
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme",
"font_size": 14,
"ignored_packages":
[
"Markdown",
"Vintage"
]
}